29 |
29 |
30 */ |
30 */ |
31 class CFSMailFolderBase : public CExtendableEmail |
31 class CFSMailFolderBase : public CExtendableEmail |
32 { |
32 { |
33 public: |
33 public: |
34 |
34 |
35 /** |
35 /** |
36 * Two-phased constructor. |
36 * Two-phased constructor. |
37 * |
37 * |
38 * @param aFolderId folder id in plugin containing folder |
38 * @param aFolderId folder id in plugin containing folder |
39 */ |
39 */ |
40 IMPORT_C static CFSMailFolderBase* NewL(const TFSMailMsgId aFolderId); |
40 IMPORT_C static CFSMailFolderBase* NewL(const TFSMailMsgId aFolderId); |
41 |
41 |
42 /** |
42 /** |
43 * Two-phased constructor. |
43 * Two-phased constructor. |
44 * |
44 * |
45 * @param aFolderId folder id in plugin containing folder |
45 * @param aFolderId folder id in plugin containing folder |
46 */ |
46 */ |
180 * @param aFolderTypes blocked folder types |
180 * @param aFolderTypes blocked folder types |
181 * @param aMailBoxStatus mailbox status (online / offline) when |
181 * @param aMailBoxStatus mailbox status (online / offline) when |
182 * blocking is done |
182 * blocking is done |
183 */ |
183 */ |
184 IMPORT_C void BlockCopyFromL( RArray<TFSFolderType> aFolderTypes, |
184 IMPORT_C void BlockCopyFromL( RArray<TFSFolderType> aFolderTypes, |
185 TFSMailBoxStatus aMailBoxStatus ); |
185 TFSMailBoxStatus aMailBoxStatus ); |
186 /** |
186 /** |
187 * blocks moving to this folder from given folder types |
187 * blocks moving to this folder from given folder types |
188 * |
188 * |
189 * @param aFolderTypes blocked folder types |
189 * @param aFolderTypes blocked folder types |
190 * @param aMailBoxStatus mailbox status (online / offline) when |
190 * @param aMailBoxStatus mailbox status (online / offline) when |
191 * blocking is done |
191 * blocking is done |
192 */ |
192 */ |
193 IMPORT_C void BlockMoveFromL( RArray<TFSFolderType> aFolderTypes, |
193 IMPORT_C void BlockMoveFromL( RArray<TFSFolderType> aFolderTypes, |
194 TFSMailBoxStatus aMailBoxStatus ); |
194 TFSMailBoxStatus aMailBoxStatus ); |
195 |
195 |
196 protected: |
196 protected: |
197 |
197 |
198 /** |
198 /** |
199 * C++ default constructor. |
199 * C++ default constructor. |
200 */ |
200 */ |
201 CFSMailFolderBase(); |
201 CFSMailFolderBase(); |
202 |
202 |
203 /** |
203 /** |
204 * folder id |
204 * folder id |
205 */ |
205 */ |
206 TFSMailMsgId iFolderId; |
206 TFSMailMsgId iFolderId; |
207 |
207 |
208 /** |
208 /** |
209 * blocked folders in copying |
209 * blocked folders in copying |
210 */ |
210 */ |
211 RArray<TFSFolderType> iCopyOfflineBlocked; |
211 RArray<TFSFolderType> iCopyOfflineBlocked; |
212 RArray<TFSFolderType> iCopyOnlineBlocked; |
212 RArray<TFSFolderType> iCopyOnlineBlocked; |
213 |
213 |
214 /** |
214 /** |
215 * blocked folders in moving |
215 * blocked folders in moving |
216 */ |
216 */ |
217 RArray<TFSFolderType> iMoveOfflineBlocked; |
217 RArray<TFSFolderType> iMoveOfflineBlocked; |
218 RArray<TFSFolderType> iMoveOnlineBlocked; |
218 RArray<TFSFolderType> iMoveOnlineBlocked; |
219 |
219 |
220 private: |
220 private: |
221 |
221 |
222 /** |
222 /** |
223 * Two-phased constructor |
223 * Two-phased constructor |
224 */ |
224 */ |
225 void ConstructL( const TFSMailMsgId aFolderId ); |
225 void ConstructL( const TFSMailMsgId aFolderId ); |
226 |
226 |
227 private: // data |
227 private: // data |
228 |
228 |
229 /** |
229 /** |
230 * folder name |
230 * folder name |
231 */ |
231 */ |
232 HBufC* iFolderName; |
232 HBufC* iFolderName; |
233 |
233 |
234 /** |
234 /** |
235 * folder type |
235 * folder type |
236 */ |
236 */ |
237 TFSFolderType iFolderType; |
237 TFSFolderType iFolderType; |
238 |
238 |
239 /** |
239 /** |
240 * folder total message count |
240 * folder total message count |
241 */ |
241 */ |
242 TUint iMessageCount; |
242 TUint iMessageCount; |
243 |
243 |
244 /** |
244 /** |
245 * folder unread message count |
245 * folder unread message count |
246 */ |
246 */ |
247 TUint iUnreadMessageCount; |
247 TUint iUnreadMessageCount; |
248 |
248 |
249 /** |
249 /** |
250 * folder unseen message count |
250 * folder unseen message count |
251 */ |
251 */ |
252 TUint iUnseenCount; |
252 TUint iUnseenCount; |
253 |
253 |
254 /** |
254 /** |
255 * mailbox id |
255 * mailbox id |
256 */ |
256 */ |
257 TFSMailMsgId iMailBoxId; |
257 TFSMailMsgId iMailBoxId; |
258 |
258 |
259 |
259 |
260 /** |
260 /** |
261 * parent folder id |
261 * parent folder id |
262 */ |
262 */ |
263 TFSMailMsgId iParentFolderId; |
263 TFSMailMsgId iParentFolderId; |
264 |
264 |
265 /** |
265 /** |
266 * subfolder count |
266 * subfolder count |
267 */ |
267 */ |
268 TUint iSubFolderCount; |
268 TUint iSubFolderCount; |
269 }; |
269 }; |
270 |
270 |
271 #endif // __FSMAILFOLDERBASE_H |
271 #endif // __FSMAILFOLDERBASE_H |