cmessagedata.h

Go to the documentation of this file.
00001 /*
00002 * ============================================================================
00003 *  Name        : CMessageData.h
00004 *  Part of     : Messaging / SendUI?Subsystem_name / ?Module_name       *** Info from the SWAD
00005 *  Description : Encapsulates the message data for sending services.
00006 *  Version     : %version: 9 % << Don't touch! Updated by Synergy at check-out.
00007 *
00008 *  Copyright © 2002-2006 Nokia.  All rights reserved.
00009 *  This material, including documentation and any related computer
00010 *  programs, is protected by copyright controlled by Nokia.  All
00011 *  rights are reserved.  Copying, including reproducing, storing,
00012 *  adapting or translating, any or all of this material requires the
00013 *  prior written consent of Nokia.  This material also contains
00014 *  confidential information which may not be disclosed to others
00015 *  without the prior written consent of Nokia.
00016 * ============================================================================
00017 * Template version: 4.1
00018 */
00019 #ifndef C_MESSAGEDATA_H
00020 #define C_MESSAGEDATA_H
00021 
00022 #include <e32Base.h>
00023 #include <badesca.h>
00024 #include <f32file.h>
00025 #include <msvstd.h>
00026 #include "CMessageAddress.h"
00027 
00028 class MDesC16Array;
00029 class CRichText;
00030 class CMessageDataImpl;
00031 
00042 class CMessageData : public CBase
00043 {
00044 public:  // Constructors and destructor
00045 
00051     IMPORT_C static CMessageData* NewL();
00052     
00058     IMPORT_C static CMessageData* NewLC();
00059 
00063     IMPORT_C virtual ~CMessageData();
00064 
00065 public: // New functions
00066 
00074     IMPORT_C void SetSubjectL( const TDesC* aSubject );
00075 
00082     IMPORT_C const TPtrC Subject() const;
00083 
00097     IMPORT_C void AppendAttachmentL( const TDesC& aFilePath );
00098 
00105     IMPORT_C const CDesCArray& AttachmentArray() const;
00106     
00113     IMPORT_C void ClearAttachmentArray();
00114 
00123     IMPORT_C void AppendToAddressL(
00124         const TDesC& aAddress,
00125         const TDesC& aAlias = KNullDesC);
00126 
00133     IMPORT_C const CMessageAddressArray& ToAddressArray() const;
00134 
00144     IMPORT_C void AppendCcAddressL(
00145         const TDesC& aCcAddress,
00146         const TDesC& aCcAlias = KNullDesC);
00147 
00154     IMPORT_C const CMessageAddressArray& CcAddressArray() const;
00155 
00165     IMPORT_C void AppendBccAddressL(
00166         const TDesC& aBccAddress,
00167         const TDesC& aBccAlias = KNullDesC);
00168 
00175     IMPORT_C const CMessageAddressArray& BccAddressArray() const;
00176 
00184     IMPORT_C void SetBodyTextL( const CRichText* aBodyText );
00185 
00192     IMPORT_C const CRichText* BodyText() const;
00193     
00207     IMPORT_C void AppendAttachmentHandleL( const RFile& aFileHandle );
00208 
00215     IMPORT_C const RArray<RFile>& AttachmentHandleArray() const;
00216 
00224     IMPORT_C TUid DataType() const;
00225 
00232     IMPORT_C void ClearAddresses();
00233 
00241    IMPORT_C void ExternalizeL( RWriteStream& aStream ) const;
00242     
00249     IMPORT_C void InternalizeL( RReadStream& aStream );
00250 
00259     IMPORT_C void SetOpaqueDataL( const TDesC8* aData, TUid aDataType );
00260     
00267     IMPORT_C const TPtrC8 OpaqueData() const;
00268 
00269  protected:
00270 
00274     IMPORT_C CMessageData();
00275 
00279     IMPORT_C void ConstructL();
00280 
00281 protected:  // Data
00282 
00287     TUid iDataType;
00288 
00289 private:  // Data
00290 
00295     CMessageDataImpl* iMessageDataImpl;
00296 
00300     TAny* iReserved1;
00301     TAny* iReserved2;
00302     TAny* iReserved3;
00303     TAny* iReserved4;
00304     TAny* iReserved5;
00305     RArray<TAny*> iReserved6;
00306 
00307 };
00308 
00309 // C_MESSAGEDATA_H
00310 #endif
00311 
00312 // End of File
00313 

Copyright © Nokia Corporation 2001-2008
Back to top