40 const TDataOwner aOwner ); |
40 const TDataOwner aOwner ); |
41 |
41 |
42 ~CEmailMultipart(); |
42 ~CEmailMultipart(); |
43 |
43 |
44 public: // from MEmailInterface |
44 public: // from MEmailInterface |
45 TEmailTypeId InterfaceId() const; |
45 virtual TEmailTypeId InterfaceId() const; |
46 |
46 |
47 void Release(); |
47 virtual void Release(); |
48 |
48 |
49 public: // from MEmailMessageContent |
49 public: // from MEmailMessageContent |
50 |
50 |
51 TMessageContentId Id() const; |
51 virtual TMessageContentId Id() const; |
52 |
52 |
53 TPtrC ContentType() const; |
53 virtual TPtrC ContentType() const; |
54 |
54 |
55 void SetContentType( const TDesC& aContentType ); |
55 virtual void SetContentType( const TDesC& aContentType ); |
56 |
56 |
57 TPtrC ContentId() const; |
57 virtual TPtrC ContentId() const; |
58 |
58 |
59 void SetContentId( const TDesC& aContentId ); |
59 virtual void SetContentId( const TDesC& aContentId ); |
60 |
60 |
61 TPtrC ContentDescription() const; |
61 virtual TPtrC ContentDescription() const; |
62 |
62 |
63 void SetContentDescription( const TDesC& aContentDescription ); |
63 virtual void SetContentDescription( const TDesC& aContentDescription ); |
64 |
64 |
65 TPtrC ContentDisposition() const; |
65 virtual TPtrC ContentDisposition() const; |
66 |
66 |
67 void SetContentDisposition( const TDesC& aContentDisposition ); |
67 virtual void SetContentDisposition( const TDesC& aContentDisposition ); |
68 |
68 |
69 TPtrC ContentClass() const; |
69 virtual TPtrC ContentClass() const; |
70 |
70 |
71 void SetContentClass( const TDesC& aContentClass ); |
71 virtual void SetContentClass( const TDesC& aContentClass ); |
72 |
72 |
73 TInt AvailableSize() const; |
73 virtual TInt AvailableSize() const; |
74 |
74 |
75 TInt TotalSize() const; |
75 virtual TInt TotalSize() const; |
76 |
76 |
77 TPtrC ContentL() const; |
77 virtual TPtrC ContentL() const; |
78 |
78 |
79 void SetContentL( const TDesC& aContent ); |
79 virtual void SetContentL( const TDesC& aContent ); |
80 |
80 |
81 void FetchL( MEmailFetchObserver& aObserver ); |
81 virtual void FetchL( MEmailFetchObserver& aObserver ); |
82 |
82 |
83 void CancelFetch(); |
83 virtual void CancelFetch(); |
84 |
84 |
85 void SaveToFileL( const TDesC& aPath ); |
85 virtual void SaveToFileL( const TDesC& aPath ); |
86 |
86 |
87 MEmailMultipart* AsMultipartOrNull() const; |
87 virtual MEmailMultipart* AsMultipartOrNull() const; |
88 |
88 |
89 MEmailTextContent* AsTextContentOrNull() const; |
89 virtual MEmailTextContent* AsTextContentOrNull() const; |
90 |
90 |
91 MEmailAttachment* AsAttachmentOrNull() const; |
91 virtual MEmailAttachment* AsAttachmentOrNull() const; |
92 |
92 |
93 public: // from MEmailMultipart |
93 public: // from MEmailMultipart |
94 TInt PartCountL(); |
94 virtual TInt PartCountL(); |
95 |
95 |
96 MEmailMessageContent* PartByIndexL( const TUint aIndex ) const; |
96 virtual MEmailMessageContent* PartByIndexL( const TUint aIndex ) const; |
97 |
97 |
98 void DeletePartL( const TUint aIndex ); |
98 virtual void DeletePartL( const TUint aIndex ); |
99 |
99 |
100 void AddPartL( |
100 virtual void AddPartL( |
101 const MEmailMessageContent& aPart, |
101 const MEmailMessageContent& aPart, |
102 const TUint aPos ); |
102 const TUint aPos ); |
103 |
103 |
104 public: // for internal usage |
104 public: // for internal usage |
105 void SetOwner( const TDataOwner aOwner ); |
105 void SetOwner( const TDataOwner aOwner ); |
106 |
106 |
107 |
107 |
108 private: |
108 private: |
109 CEmailMultipart( const TDataOwner aOwner ); |
109 CEmailMultipart( const TDataOwner aOwner ); |
110 |
110 |
111 void ConstructL( CPluginData& aPluginData, const TMessageContentId& aMsgContentId, CFSMailMessagePart* aPart ); |
111 void ConstructL( CPluginData& aPluginData, const TMessageContentId& aMsgContentId, CFSMailMessagePart* aPart); |
112 |
112 |
113 private: // Private data |
113 private: // Private data |
114 CEmailMessageContent* iEmailMsgContent; |
114 CEmailMessageContent* iEmailMsgContent; |
115 RArray<TFSMailMsgId> iChildParts; |
115 RArray<TFSMailMsgId> iChildParts; |
116 TUint iChildPartCount; |
116 TUint iChildPartCount; |
117 TDataOwner iOwner; |
117 TDataOwner iOwner; |
118 }; |
118 }; |
119 |
119 |
120 #endif // EMAILMULTIPART_H_ |
120 #endif /* EMAILMULTIPART_H_ */ |
121 |
|
122 // End of file |
|
123 |
|