messagingfw/wappushfw/MiscPushMsgUtils/inc/CMultiPartPushMsgEntry.h
changeset 62 db3f5fa34ec7
parent 0 8e480a14352b
equal deleted inserted replaced
60:9f5ae1728557 62:db3f5fa34ec7
       
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 /**
       
    17  @file
       
    18  @publishedPartner
       
    19  @released
       
    20 */
       
    21 
       
    22 #ifndef __CMULTIPARTPUSHMSGENTRY_H__
       
    23 #define __CMULTIPARTPUSHMSGENTRY_H__
       
    24 
       
    25 #include <pushentry.h>
       
    26 
       
    27 
       
    28 /** 
       
    29 Handles storage of multipart WAP Push Messages in the message server.
       
    30 
       
    31 The message can take a number of forms: Multipart/alternative, Multipart/mixed, 
       
    32 or Multipart/related. Related entries will be stored as children of the 
       
    33 current entry. 
       
    34 
       
    35 The only additional data stored to that in the base class are the Content-Type, and the time
       
    36 sent.
       
    37 
       
    38 @see CPushMsgEntryBase
       
    39   
       
    40 @publishedPartner
       
    41 @released
       
    42 */
       
    43 class CMultiPartPushMsgEntry:public CPushMsgEntryBase
       
    44 	{
       
    45 public:
       
    46 	IMPORT_C static	CMultiPartPushMsgEntry* NewL();
       
    47 	IMPORT_C static CMultiPartPushMsgEntry* NewL(const TPtrC8& aAppURI);
       
    48 	IMPORT_C static CMultiPartPushMsgEntry* NewL(TInt& aAppID);
       
    49 	IMPORT_C ~CMultiPartPushMsgEntry();
       
    50 	
       
    51 	IMPORT_C void SetContentTypeL(const TDesC& aContentType);
       
    52 	inline const TDesC& ContentType() const;
       
    53 	inline void	SetTimeSent(const TTime& aTime);
       
    54 	inline const TTime& TimeSent( ) const;
       
    55 	TInt32 PushMsgType() const;
       
    56 
       
    57 private:
       
    58 	CMultiPartPushMsgEntry();
       
    59 	void SetPushMsgType();
       
    60 	void ExternalizeL(RMsvWriteStream& aStream);
       
    61 	void InternalizeL(RMsvReadStream& aStream);
       
    62 
       
    63 private:
       
    64 	TTime iTimeSent;
       
    65 	HBufC* iContentType;   	
       
    66 	};
       
    67 
       
    68 #include <push/cmultipartpushmsgentry.inl>
       
    69 
       
    70 #endif  // __CMULTIPARTPUSHMSGENTRY_H__
       
    71 
       
    72