equal
deleted
inserted
replaced
109 * If problem with NewMailbox this function will be called |
109 * If problem with NewMailbox this function will be called |
110 * by CDelayMailboxCreationHelper to try it after some delay |
110 * by CDelayMailboxCreationHelper to try it after some delay |
111 */ |
111 */ |
112 void DeleayMailboxCreationEventL( TFSMailMsgId &aMailbox ); |
112 void DeleayMailboxCreationEventL( TFSMailMsgId &aMailbox ); |
113 |
113 |
114 private: |
114 private: |
115 |
115 |
116 /** |
116 /** |
117 * Constructor |
117 * Constructor |
118 */ |
118 */ |
119 CPsMruAdapter(); |
119 CPsMruAdapter(); |
124 void ConstructL(MDataStoreObserver* aObserverForDataStore, |
124 void ConstructL(MDataStoreObserver* aObserverForDataStore, |
125 MStoreListObserver* aStoreListObserver); |
125 MStoreListObserver* aStoreListObserver); |
126 |
126 |
127 /** |
127 /** |
128 * Updates given data store |
128 * Updates given data store |
129 */ |
129 */ |
130 TBool FillDataStoreL( TDesC& aDataStoreURI ); |
130 TBool FillDataStoreL( TDesC& aDataStoreURI ); |
131 |
131 |
132 /** |
132 /** |
133 * Updates given data store |
133 * Updates given data store |
134 */ |
134 */ |
135 TBool FillDataStoreL( TFSMailMsgId& aId ); |
135 TBool FillDataStoreL( TFSMailMsgId& aId ); |
136 |
136 |
137 /** |
137 /** |
138 * Updates a list of supported data stores |
138 * Updates a list of supported data stores |
139 */ |
139 */ |
140 void UpdateSupportedDataStoresList(); |
140 void UpdateSupportedDataStoresList(); |
141 |
141 |
142 /** |
142 /** |
143 * Starts observing mailbox |
143 * Starts observing mailbox |
144 */ |
144 */ |
145 TBool AddMailboxObserverL( TFSMailMsgId& aId ); |
145 TBool AddMailboxObserverL( TFSMailMsgId& aId ); |
164 */ |
164 */ |
165 TBool GetUriFromMailboxIdentifier( TFSMailMsgId& aId, HBufC& aUri ); |
165 TBool GetUriFromMailboxIdentifier( TFSMailMsgId& aId, HBufC& aUri ); |
166 |
166 |
167 /** |
167 /** |
168 * Updates given data store |
168 * Updates given data store |
169 */ |
169 */ |
170 TBool FillDataStoreL( TFSMailMsgId& aId, TDesC& aDataStoreURI ); |
170 TBool FillDataStoreL( TFSMailMsgId& aId, TDesC& aDataStoreURI ); |
171 |
171 |
172 /** |
172 /** |
173 * Calls MDataStoreObserver::AddData for every mru email - used for trapping |
173 * Calls MDataStoreObserver::AddData for every mru email - used for trapping |
174 */ |
174 */ |
175 void AddMruEmailsL( MDesCArray* aMruList, TDesC& aDataStoreURI ); |
175 void AddMruEmailsL( MDesCArray* aMruList, TDesC& aDataStoreURI ); |
176 |
176 |
177 private: // data |
177 private: // data |
178 |
178 |
179 /** |
179 /** |
183 MDataStoreObserver* iDataStoreObserver; |
183 MDataStoreObserver* iDataStoreObserver; |
184 |
184 |
185 /** |
185 /** |
186 * An observer instance used to send the datastore to the adapter |
186 * An observer instance used to send the datastore to the adapter |
187 */ |
187 */ |
188 MStoreListObserver* iStoreListObserver; |
188 MStoreListObserver* iStoreListObserver; |
189 |
189 |
190 /** |
190 /** |
191 * Supported Uris(data stores) |
191 * Supported Uris(data stores) |
192 */ |
192 */ |
193 RPointerArray<HBufC> iSupportedUris; |
193 RPointerArray<HBufC> iSupportedUris; |
194 |
194 |
195 /** |
195 /** |
196 * List of mailboxes currently being observed |
196 * List of mailboxes currently being observed |
197 */ |
197 */ |
198 RArray<TFSMailMsgId> iObservedMailboxes; |
198 RArray<TFSMailMsgId> iObservedMailboxes; |
210 /** |
210 /** |
211 * This mailboxes should be handled by CDelayMailboxCreationHelper |
211 * This mailboxes should be handled by CDelayMailboxCreationHelper |
212 */ |
212 */ |
213 RArray<TFSMailMsgId> iDelayedCreatedMailboxes; |
213 RArray<TFSMailMsgId> iDelayedCreatedMailboxes; |
214 |
214 |
|
215 TFSMailMsgId iPreviousMailboxId; |
|
216 TFSMailMsgId iPreviousParentFolderId; // not owned |
|
217 /* folder type for a mailbox referenced by iPreviousMailbox and iPreviousParentFolderId */ |
|
218 TFSFolderType iPreviousParentFolderType; |
215 }; // class CPsMruAdapter |
219 }; // class CPsMruAdapter |
216 |
220 |
217 //----------------------------------------------------------------------------- |
221 //----------------------------------------------------------------------------- |
218 //----------------------------------------------------------------------------- |
222 //----------------------------------------------------------------------------- |
219 |
223 |
234 static CDelayMailboxCreationHelper* NewLC( CPsMruAdapter *aPsMruAdapterPtr ); |
238 static CDelayMailboxCreationHelper* NewLC( CPsMruAdapter *aPsMruAdapterPtr ); |
235 static CDelayMailboxCreationHelper* NewL( CPsMruAdapter *aPsMruAdapterPtr ); |
239 static CDelayMailboxCreationHelper* NewL( CPsMruAdapter *aPsMruAdapterPtr ); |
236 // d-tor |
240 // d-tor |
237 virtual ~CDelayMailboxCreationHelper(); |
241 virtual ~CDelayMailboxCreationHelper(); |
238 // Start timer to call CPsMruAdapter::DeleayedMailboxCreationEventL by RunL |
242 // Start timer to call CPsMruAdapter::DeleayedMailboxCreationEventL by RunL |
239 void StartDelayedCall(); |
243 void StartDelayedCall(); |
240 protected: |
244 protected: |
241 // on timer event - calls CPsMruAdapter::DeleayedMailboxCreationEventL |
245 // on timer event - calls CPsMruAdapter::DeleayedMailboxCreationEventL |
242 virtual void RunL(); |
246 virtual void RunL(); |
243 // when leave from RunL, if err handled return KErrNone |
247 // when leave from RunL, if err handled return KErrNone |
244 TInt RunError( TInt aError ); |
248 TInt RunError( TInt aError ); |