equal
deleted
inserted
replaced
17 #ifndef BASEPLUGINDELAYEDOPSPRIVATE_H |
17 #ifndef BASEPLUGINDELAYEDOPSPRIVATE_H |
18 #define BASEPLUGINDELAYEDOPSPRIVATE_H |
18 #define BASEPLUGINDELAYEDOPSPRIVATE_H |
19 |
19 |
20 |
20 |
21 #include "baseplugindelayedops.h" |
21 #include "baseplugindelayedops.h" |
22 #include "nestedao.h" |
|
23 |
22 |
24 /** |
23 /** |
25 * Lets the user enqueue and dequeue asynchronous jobs for handling |
24 * Lets the user enqueue and dequeue asynchronous jobs for handling |
26 * plugin-related actions. |
25 * plugin-related actions. |
27 */ |
26 */ |
68 |
67 |
69 |
68 |
70 /** |
69 /** |
71 * |
70 * |
72 */ |
71 */ |
73 NONSHARABLE_CLASS( CDelayedDeleteMessagesOp ) : public CDelayedOp, public MDeletionHandler |
72 NONSHARABLE_CLASS( CDelayedDeleteMessagesOp ) : public CDelayedOp |
74 { |
73 { |
75 |
74 |
76 public: |
75 public: |
77 |
76 |
78 static CDelayedDeleteMessagesOp* NewLC( |
77 static CDelayedDeleteMessagesOp* NewLC( |
86 TMsgStoreId aMsgId ); |
85 TMsgStoreId aMsgId ); |
87 |
86 |
88 virtual ~CDelayedDeleteMessagesOp(); |
87 virtual ~CDelayedDeleteMessagesOp(); |
89 |
88 |
90 //CDelayedOp::ExecuteOpL |
89 //CDelayedOp::ExecuteOpL |
91 virtual void ExecuteOpL(); |
90 virtual TBool ExecuteOpL(); |
92 |
91 |
93 //From MDeletionHandler |
|
94 //Used to delete messages in chunks starting from aStartIndex |
|
95 TBool DeleteMessagesInChunksL( TInt aStartIndex ); |
|
96 |
|
97 private: |
92 private: |
98 |
93 |
99 void ConstructL( const RArray<TFSMailMsgId>& aMessages ); |
94 void ConstructL( const RArray<TFSMailMsgId>& aMessages ); |
100 void ConstructL( TMsgStoreId aMsgId ); |
95 void ConstructL( TMsgStoreId aMsgId ); |
101 |
96 |
110 |
105 |
111 TMsgStoreId iMailBoxId; |
106 TMsgStoreId iMailBoxId; |
112 TMsgStoreId iFolderId; |
107 TMsgStoreId iFolderId; |
113 RArray<TMsgStoreId> iMessages; |
108 RArray<TMsgStoreId> iMessages; |
114 TBool iImmediateDelete; |
109 TBool iImmediateDelete; |
115 TState iState; |
110 TInt iIndex; |
116 __LOG_DECLARATION |
111 __LOG_DECLARATION |
117 }; |
112 }; |
118 |
113 |
119 |
114 |
120 /** |
115 /** |
140 TInt aContentLength ); |
135 TInt aContentLength ); |
141 |
136 |
142 virtual ~CDelayedSetContentOp(); |
137 virtual ~CDelayedSetContentOp(); |
143 |
138 |
144 //CDelayedOp::ExecuteOpL |
139 //CDelayedOp::ExecuteOpL |
145 virtual void ExecuteOpL(); |
140 virtual TBool ExecuteOpL(); |
146 |
141 |
147 private: |
142 private: |
148 |
143 |
149 void ConstructL( const TDesC& aContent ); |
144 void ConstructL( const TDesC& aContent ); |
150 void ConstructL(); |
145 void ConstructL(); |
198 const TInt aRequestId); |
193 const TInt aRequestId); |
199 |
194 |
200 virtual ~CDelayedMessageStorerOp(); |
195 virtual ~CDelayedMessageStorerOp(); |
201 |
196 |
202 //CDelayedOp::ExecuteOpL |
197 //CDelayedOp::ExecuteOpL |
203 virtual void ExecuteOpL(); |
198 virtual TBool ExecuteOpL(); |
204 |
199 |
205 private: |
200 private: |
206 |
201 |
207 void ConstructL(); |
202 void ConstructL(); |
208 |
203 |
252 const TInt aRequestId ); |
247 const TInt aRequestId ); |
253 |
248 |
254 virtual ~CDelayedMessageToSendOp(); |
249 virtual ~CDelayedMessageToSendOp(); |
255 |
250 |
256 //CDelayedOp::ExecuteOpL |
251 //CDelayedOp::ExecuteOpL |
257 virtual void ExecuteOpL(); |
252 virtual TBool ExecuteOpL(); |
258 |
253 |
259 private: |
254 private: |
260 |
255 |
261 void ConstructL(); |
256 void ConstructL(); |
262 |
257 |
300 const TInt aRequestId); |
295 const TInt aRequestId); |
301 |
296 |
302 virtual ~CDelayedAddNewOrRemoveChildPartOp(); |
297 virtual ~CDelayedAddNewOrRemoveChildPartOp(); |
303 |
298 |
304 //CDelayedOp::ExecuteOpL |
299 //CDelayedOp::ExecuteOpL |
305 virtual void ExecuteOpL(); |
300 virtual TBool ExecuteOpL(); |
306 |
301 |
307 private: |
302 private: |
308 |
303 |
309 void ConstructL( const TDesC& aContentType, const TDesC& aFilePath ); |
304 void ConstructL( const TDesC& aContentType, const TDesC& aFilePath ); |
310 |
305 |