30 |
30 |
31 |
31 |
32 class CFreestyleMessageHeaderHTML : public CBase |
32 class CFreestyleMessageHeaderHTML : public CBase |
33 { |
33 { |
34 public: |
34 public: |
35 IMPORT_C static void ExportL( CFSMailMessage& aMailMessage, RWriteStream& aWriteStream ); |
35 IMPORT_C static void ExportL( CFSMailMessage& aMailMessage, RWriteStream& aWriteStream, TInt aVisibleWidth ); |
36 IMPORT_C static void ExportL( CFSMailMessage& aMailMessage, RFile& aFile ); |
36 IMPORT_C static void ExportL( CFSMailMessage& aMailMessage, RFile& aFile, TInt aVisibleWidth ); |
37 IMPORT_C static void ExportL( CFSMailMessage& aMailMessage, RFs& aFs, const TPath& aFilePath); |
37 IMPORT_C static void ExportL( CFSMailMessage& aMailMessage, RFs& aFs, const TPath& aFilePath, TInt aVisibleWidth ); |
38 |
38 |
39 IMPORT_C static CFreestyleMessageHeaderHTML* NewL( CFSMailMessage& aMailMessage ); |
39 IMPORT_C static CFreestyleMessageHeaderHTML* NewL( CFSMailMessage& aMailMessage, TInt aVisibleWidth ); |
40 |
40 |
41 ~CFreestyleMessageHeaderHTML(); |
41 ~CFreestyleMessageHeaderHTML(); |
42 |
42 |
43 IMPORT_C void ExportL( RWriteStream& aWriteStream ) const; |
43 IMPORT_C void ExportL( RWriteStream& aWriteStream ) const; |
44 IMPORT_C void ExportL( RFile& aFile ) const; |
44 IMPORT_C void ExportL( RFile& aFile ) const; |
45 IMPORT_C void ExportL( RFs& aFs, const TPath& aFilePath) const; |
45 IMPORT_C void ExportL( RFs& aFs, const TPath& aFilePath) const; |
46 |
46 |
47 private: |
47 private: |
48 CFreestyleMessageHeaderHTML( CFSMailMessage& aMailMessage ); |
48 CFreestyleMessageHeaderHTML( CFSMailMessage& aMailMessage, TInt aVisibleWidth ); |
49 void ConstructL(); |
49 void ConstructL(); |
50 |
50 |
51 void HTMLStartL( RWriteStream& aWriteStream ) const; |
51 void HTMLStartL( RWriteStream& aWriteStream ) const; |
52 void HTMLEndL( RWriteStream& aWriteStream ) const; |
52 void HTMLEndL( RWriteStream& aWriteStream ) const; |
53 |
53 |
68 void ExportSentTimeL( RWriteStream& aWriteStream ) const; |
68 void ExportSentTimeL( RWriteStream& aWriteStream ) const; |
69 void ExportAttachmentsL( RWriteStream& aWriteStream ) const; |
69 void ExportAttachmentsL( RWriteStream& aWriteStream ) const; |
70 |
70 |
71 void ExportEmailAddressesL( RWriteStream& aWriteStream, |
71 void ExportEmailAddressesL( RWriteStream& aWriteStream, |
72 FreestyleMessageHeaderURLFactory::TEmailAddressType aEmailAddressType, |
72 FreestyleMessageHeaderURLFactory::TEmailAddressType aEmailAddressType, |
73 const RPointerArray<CFSMailAddress>& aEmailAddresses ) const; |
73 const RPointerArray<CFSMailAddress>& aEmailAddresses, |
|
74 const TDesC8& aRowId, |
|
75 const TDesC8& aTableId, |
|
76 TInt aHeaderTextResourceId ) const; |
74 |
77 |
75 void AddEmailAddressL( RWriteStream& aWriteStream, |
78 void AddEmailAddressL( RWriteStream& aWriteStream, |
76 FreestyleMessageHeaderURLFactory::TEmailAddressType aEmailAddressType, |
79 FreestyleMessageHeaderURLFactory::TEmailAddressType aEmailAddressType, |
77 const CFSMailAddress& aEmailAddress ) const; |
80 const CFSMailAddress& aEmailAddress ) const; |
78 |
81 |
105 void StartDivL( RWriteStream& aWriteStream ) const; |
108 void StartDivL( RWriteStream& aWriteStream ) const; |
106 void EndDivL( RWriteStream& aWriteStream ) const; |
109 void EndDivL( RWriteStream& aWriteStream ) const; |
107 |
110 |
108 private: |
111 private: |
109 CFSMailMessage& iMailMessage; |
112 CFSMailMessage& iMailMessage; |
|
113 TInt iVisibleWidth; |
110 |
114 |
111 RPointerArray<CFSMailMessagePart> iAttachments; |
115 RPointerArray<CFSMailMessagePart> iAttachments; |
112 }; |
116 }; |
113 |
117 |
114 #endif //__CFREESTYLE_MESSAGE_HEADER_HTML_H__ |
118 #endif //__CFREESTYLE_MESSAGE_HEADER_HTML_H__ |