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 |
103 TMsgStoreId aMailBoxId, |
98 TMsgStoreId aMailBoxId, |
104 TMsgStoreId aFolderId ); |
99 TMsgStoreId aFolderId ); |
105 |
100 |
106 CDelayedDeleteMessagesOp( const CDelayedDeleteMessagesOp& ); |
101 CDelayedDeleteMessagesOp( const CDelayedDeleteMessagesOp& ); |
107 CDelayedDeleteMessagesOp& operator= ( const CDelayedDeleteMessagesOp& ); |
102 CDelayedDeleteMessagesOp& operator= ( const CDelayedDeleteMessagesOp& ); |
108 |
103 |
109 private: |
104 private: |
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(); |