pimappservices/calendar/shared/inc/agmcontent.h
changeset 0 f979ecb2b13e
equal deleted inserted replaced
-1:000000000000 0:f979ecb2b13e
       
     1 // Copyright (c) 2005-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 #ifndef __AGMCONTENT_H__
       
    17 #define __AGMCONTENT_H__
       
    18 
       
    19 #include "calcontent.h"
       
    20 
       
    21 class RReadStream;
       
    22 class RWriteStream;
       
    23 
       
    24 NONSHARABLE_CLASS(CAgnContent) : public CBase
       
    25 /**
       
    26 @capability None
       
    27 @internalAll
       
    28 @released
       
    29 */
       
    30 	{
       
    31 public:
       
    32 	IMPORT_C CAgnContent();
       
    33 	IMPORT_C ~CAgnContent();
       
    34 	IMPORT_C void SetContentL(TDesC8* aSmallContent, TDesC8* aContentMIMEType, CCalContent::TDisposition aContentDisposition);
       
    35 	IMPORT_C const TDesC8& Content() const;
       
    36 	IMPORT_C const TDesC8& MimeType() const;
       
    37 	IMPORT_C CCalContent::TDisposition Type() const;
       
    38 	IMPORT_C CAgnContent* CloneL() const;
       
    39 	IMPORT_C void InternalizeL(RReadStream& aStream);
       
    40 	IMPORT_C void ExternalizeL(RWriteStream& aStream) const;
       
    41 	
       
    42 protected:
       
    43 	CAgnContent(CCalContent::TDisposition aType);
       
    44 
       
    45 	void SetContent(TDesC8* aContent);
       
    46 	void SetMimeType(TDesC8* aMimeType);
       
    47 
       
    48 private:	
       
    49 	TDesC8* iContent;
       
    50 	TDesC8* iMimeType;
       
    51 	CCalContent::TDisposition iType;
       
    52 	};
       
    53 
       
    54 
       
    55 #endif // __AGMCONTENT_H__
       
    56