equal
deleted
inserted
replaced
17 |
17 |
18 |
18 |
19 #ifndef CMAILCPSSETTINGS_H_ |
19 #ifndef CMAILCPSSETTINGS_H_ |
20 #define CMAILCPSSETTINGS_H_ |
20 #define CMAILCPSSETTINGS_H_ |
21 |
21 |
|
22 #include "PSSubscriber.h" |
|
23 #include "PSSubscribeHandler.h" |
|
24 |
22 class CRepository; |
25 class CRepository; |
23 class CMailExternalAccount; |
26 class CMailExternalAccount; |
24 |
27 |
25 /* |
28 /* |
26 * Callback interface for observer |
29 * Callback interface for observer |
45 * Class implementing interface towards cenrep and email widget settings |
48 * Class implementing interface towards cenrep and email widget settings |
46 * |
49 * |
47 * @lib fsmailserver.exe |
50 * @lib fsmailserver.exe |
48 * @since S60 v5.1 |
51 * @since S60 v5.1 |
49 */ |
52 */ |
50 NONSHARABLE_CLASS( CMailCpsSettings ) : public CActive |
53 NONSHARABLE_CLASS( CMailCpsSettings ) : public CActive, |
|
54 public MPSSubscribeHandler |
51 { |
55 { |
52 public: |
56 public: |
53 /** |
57 /** |
54 * Two-phased constructor. |
58 * Two-phased constructor. |
55 * @param aMailClient reference to CFSMailClient class. Mailserver offers |
59 * @param aMailClient reference to CFSMailClient class. Mailserver offers |
192 * Find next free CenRep key to store setting. |
196 * Find next free CenRep key to store setting. |
193 * @param aContentId Id of widget instance |
197 * @param aContentId Id of widget instance |
194 * @return true if account is associated to content id, false if not |
198 * @return true if account is associated to content id, false if not |
195 */ |
199 */ |
196 TBool Associated( const TDesC& aContentId ); |
200 TBool Associated( const TDesC& aContentId ); |
|
201 |
|
202 /** |
|
203 * Callback from PSSubscriber about a PS key event |
|
204 * @param aCategory defines the key category |
|
205 * @param aKey defines the changed key |
|
206 */ |
|
207 void HandlePropertyChangedL( const TUid& aCategory, TInt aKey ); |
|
208 |
|
209 /** |
|
210 * |
|
211 */ |
|
212 TBool BackupOrRestoreMode(); |
197 |
213 |
198 protected: |
214 protected: |
199 /** |
215 /** |
200 * From CActive |
216 * From CActive |
201 * Cancellation logic for the asynchronous request |
217 * Cancellation logic for the asynchronous request |
294 RArray<TFSMailMsgId> iMailboxArray; |
310 RArray<TFSMailMsgId> iMailboxArray; |
295 // Internal configuration data |
311 // Internal configuration data |
296 TInt32 iConfigData; |
312 TInt32 iConfigData; |
297 // large buffer for reading cenrep data |
313 // large buffer for reading cenrep data |
298 TBuf<KMaxFileName> iCenrepText; |
314 TBuf<KMaxFileName> iCenrepText; |
|
315 // PubSub subsriber for notifying restore operation |
|
316 CPSSubscriber* iBackupRestoreSubscriber; |
|
317 // Indicates if restore operation is started |
|
318 TBool iRestoreStarted; |
|
319 // Indicates if backup operation is ongoing |
|
320 TBool iBackupOngoing; |
299 }; |
321 }; |
300 |
322 |
301 #endif /*CMAILCPSSETTINGS_H_*/ |
323 #endif /*CMAILCPSSETTINGS_H_*/ |