90 * @return pointer created fs message object |
87 * @return pointer created fs message object |
91 */ |
88 */ |
92 CFSMailMessage* CreateNewSmtpMessageL( |
89 CFSMailMessage* CreateNewSmtpMessageL( |
93 const TFSMailMsgId& aMailBoxId ); |
90 const TFSMailMsgId& aMailBoxId ); |
94 |
91 |
95 // <qmail> |
|
96 /** |
|
97 * Creates new email message to message store asynchronously |
|
98 * |
|
99 * @param aMailBoxId msv entry id to mailbox which setting are used |
|
100 * @param aOperationObserver Observer for the operation |
|
101 * @param aRequestId Id of the operation |
|
102 */ |
|
103 void CreateNewSmtpMessageL( |
|
104 const TFSMailMsgId& aMailBoxId, |
|
105 MFSMailRequestObserver& aOperationObserver, |
|
106 const TInt aRequestId ); |
|
107 // </qmail> |
|
108 |
|
109 CFSMailMessage* CreateForwardSmtpMessageL( |
92 CFSMailMessage* CreateForwardSmtpMessageL( |
110 const TFSMailMsgId& aMailBoxId, |
93 const TFSMailMsgId& aMailBoxId, |
111 const TFSMailMsgId& aOriginalMessageId ); |
94 const TFSMailMsgId& aOriginalMessageId ); |
112 |
95 |
113 // <qmail> |
|
114 void CreateForwardSmtpMessageL( |
|
115 const TFSMailMsgId& aMailBoxId, |
|
116 const TFSMailMsgId& aOriginalMessageId, |
|
117 MFSMailRequestObserver& aOperationObserver, |
|
118 const TInt aRequestId ); |
|
119 // </qmail> |
|
120 |
|
121 CFSMailMessage* CreateReplySmtpMessageL( |
96 CFSMailMessage* CreateReplySmtpMessageL( |
122 const TFSMailMsgId& aMailBoxId, |
97 const TFSMailMsgId& aMailBoxId, |
123 const TFSMailMsgId& aOriginalMessageId, |
98 const TFSMailMsgId& aOriginalMessageId, |
124 TBool aReplyToAll ); |
99 TBool aReplyToAll ); |
125 |
100 |
126 // <qmail> |
101 // <qmail> moved for public access |
127 void CreateReplySmtpMessageL( |
|
128 const TFSMailMsgId& aMailBoxId, |
|
129 const TFSMailMsgId& aOriginalMessageId, |
|
130 TBool aReplyToAll, |
|
131 MFSMailRequestObserver& aOperationObserver, |
|
132 const TInt aRequestId ); |
|
133 // </qmail> |
|
134 |
|
135 // <qmail> |
|
136 /** |
102 /** |
137 * Creates proper fs message object and set flags |
103 * Creates proper fs message object and set flags |
138 * to correspond orginal message flags |
104 * to correspond orginal message flags |
139 * |
105 * |
140 * @since FS 1.0 |
106 * @since FS 1.0 |
147 CFSMailMessage* CreateFSMessageAndSetFlagsL( |
113 CFSMailMessage* CreateFSMessageAndSetFlagsL( |
148 TMsvId aMessageId, |
114 TMsvId aMessageId, |
149 TMsvId aOriginalMsgId, |
115 TMsvId aOriginalMsgId, |
150 TMsvId aMailboxId, |
116 TMsvId aMailboxId, |
151 TBool aCopyOriginalMsgProperties = EFalse ); |
117 TBool aCopyOriginalMsgProperties = EFalse ); |
|
118 |
|
119 /** |
|
120 * Changes messages service id |
|
121 * |
|
122 * @since FS 1.0 |
|
123 * @param aEntry Original message entry |
|
124 * @return None |
|
125 */ |
|
126 void ChangeServiceIdL( TMsvEntry& aEntry ); |
152 // </qmail> |
127 // </qmail> |
153 |
128 |
154 // <qmail> |
|
155 public: //from MIpsPlgSingleOpWatcher |
|
156 |
|
157 void OpCompleted( |
|
158 CIpsPlgSingleOpWatcher& aOpWatcher, |
|
159 TInt aCompletionCode ); |
|
160 // </qmail> |
|
161 protected: |
129 protected: |
162 |
130 |
163 /** |
131 /** |
164 * Class constructor |
132 * Class constructor |
165 * |
133 * |
190 */ |
158 */ |
191 HBufC* CreateDisplayStringLC( const TDesC& aDisplayName, |
159 HBufC* CreateDisplayStringLC( const TDesC& aDisplayName, |
192 const TDesC& aEmailName ); |
160 const TDesC& aEmailName ); |
193 |
161 |
194 /** |
162 /** |
195 * Changes messages service id |
|
196 * |
|
197 * @since FS 1.0 |
|
198 * @param aEntry Original message entry |
|
199 * @return None |
|
200 */ |
|
201 void ChangeServiceIdL( TMsvEntry& aEntry ); |
|
202 |
|
203 /** |
|
204 * Gets MsvId from msv operations final progress |
163 * Gets MsvId from msv operations final progress |
205 * descriptor, leaves if msvId is null entry |
164 * descriptor, leaves if msvId is null entry |
206 * |
165 * |
207 * @since FS 1.0 |
166 * @since FS 1.0 |
208 * @param aProg progress descriptor |
167 * @param aProg progress descriptor |
221 * @param aEntry message where the charset is to be set |
180 * @param aEntry message where the charset is to be set |
222 * @param aCharset the charset to be set |
181 * @param aCharset the charset to be set |
223 */ |
182 */ |
224 void SetCharactersetL( CMsvEntry& aEntry, TUid aCharset ); |
183 void SetCharactersetL( CMsvEntry& aEntry, TUid aCharset ); |
225 |
184 |
226 // <qmail> |
|
227 /** |
|
228 * Cancel, delete and remove operation from iOperations array. |
|
229 * Send Sync Completed event to plugin if operation is sync op |
|
230 */ |
|
231 void DeleteAndRemoveOperation( const TInt aOpArrayIndex ); |
|
232 // </qmail> |
|
233 |
|
234 private: // data |
185 private: // data |
235 |
186 |
236 CIpsPlgSosBasePlugin& iPlugin; |
187 CIpsPlgSosBasePlugin& iPlugin; |
237 |
188 |
238 CMsvSession& iSession; |
189 CMsvSession& iSession; |
239 |
190 |
240 CIpsPlgMsgMapper* iMsgMapper; |
191 CIpsPlgMsgMapper* iMsgMapper; |
241 |
|
242 // <qmail> array of operation watchers |
|
243 RPointerArray<CIpsPlgSingleOpWatcher> iOperations; |
|
244 // </qmail> |
|
245 }; |
192 }; |
246 |
193 |
247 #endif /* IPSPLGSMTPSERVICE_H*/ |
194 #endif /* IPSPLGSMTPSERVICE_H*/ |
248 |
195 |
249 // End of File |
196 // End of File |