equal
deleted
inserted
replaced
13 * |
13 * |
14 * Description: |
14 * Description: |
15 * Contains mailbox specified always online logic |
15 * Contains mailbox specified always online logic |
16 * |
16 * |
17 */ |
17 */ |
18 |
18 //<Qmail> |
19 #ifndef IPSSOSAOMBOXLOGIC_CPP_ |
19 #ifndef IPSSOSAOMBOXLOGIC_H |
20 #define IPSSOSAOMBOXLOGIC_CPP_ |
20 #define IPSSOSAOMBOXLOGIC_H |
21 |
21 //</Qmail> |
22 #include <e32base.h> |
22 #include <e32base.h> |
23 #include <msvapi.h> |
23 #include <msvapi.h> |
24 |
24 |
25 //<cmail> removing internal dependency |
|
26 /*#ifdef _DEBUG |
|
27 #include "../../internal/IpsSosAOPluginTester/inc/IpsSosAOPluginTester.hrh" |
|
28 #endif // _DEBUG*/ |
|
29 //</cmail> |
|
30 |
25 |
31 #include "IpsSosAOBaseAgent.h" |
26 #include "IpsSosAOBaseAgent.h" |
32 #include "ipssetdataextension.h" |
27 //<QMail> |
|
28 |
|
29 //</QMail> |
33 #include "IpsSosAOPluginTimer.h" |
30 #include "IpsSosAOPluginTimer.h" |
34 //<cmail> |
31 |
35 //</cmail> |
32 //<QMail> |
36 |
33 |
37 class CIpsSetDataApi; |
34 //</QMail> |
38 class CIpsSosAOBaseAgent; |
35 class CIpsSosAOBaseAgent; |
39 class CIpsSetDataExtension; |
36 //<QMail> |
|
37 |
|
38 //</QMail> |
40 class CIpsSosAOImapPopLogic; |
39 class CIpsSosAOImapPopLogic; |
41 |
40 |
42 /** |
41 /** |
43 * class CIpsSosAOImapPopLogic; |
42 * class CIpsSosAOImapPopLogic; |
44 * |
43 * |
45 */ |
44 */ |
46 class CIpsSosAOMBoxLogic : |
45 //<Qmail> |
|
46 NONSHARABLE_CLASS (CIpsSosAOMBoxLogic) : |
|
47 //</Qmail> |
47 public CBase, |
48 public CBase, |
48 public MIpsSosAOPluginTimerCallBack, |
49 public MIpsSosAOPluginTimerCallBack, |
49 public MIpsSosAOAgentOperationResponse |
50 public MIpsSosAOAgentOperationResponse |
50 { |
51 { |
51 |
52 |
52 public: |
53 public: |
53 |
54 |
54 /** |
55 /** |
180 /* |
181 /* |
181 * Sets new value to emn received but no synced flag in |
182 * Sets new value to emn received but no synced flag in |
182 * mailbox settings |
183 * mailbox settings |
183 * @param aNewValue new value of flag |
184 * @param aNewValue new value of flag |
184 */ |
185 */ |
185 //<cmail> |
|
186 void SetEmnReceivedFlagL( TBool aNewValue ); |
186 void SetEmnReceivedFlagL( TBool aNewValue ); |
187 //</cmail> |
|
188 |
187 |
189 /* |
188 /* |
190 * Gets mailbox roaming stopped status |
189 * Gets mailbox roaming stopped status |
191 * @return ETrue if roaming and mailbox logic is stopped during roaming |
190 * @return ETrue if roaming and mailbox logic is stopped during roaming |
192 */ |
191 */ |
193 //<cmail> |
|
194 TBool IsMailboxRoamingStoppedL(); |
192 TBool IsMailboxRoamingStoppedL(); |
195 //</cmail> |
193 |
196 |
|
197 /** |
194 /** |
198 * Has mailbox ever received and OMA EMN |
195 * Has mailbox ever received and OMA EMN |
199 */ |
196 */ |
200 TBool FirstEMNReceived(); |
197 TBool FirstEMNReceived(); |
201 |
198 |
257 TInt HandleOperationCompletionL(); |
254 TInt HandleOperationCompletionL(); |
258 |
255 |
259 /* |
256 /* |
260 * checks is operation completion error fatal and should timed sync swithc off |
257 * checks is operation completion error fatal and should timed sync swithc off |
261 */ |
258 */ |
262 //<cmail> |
|
263 TBool IsErrorFatalL( TInt aError ); |
259 TBool IsErrorFatalL( TInt aError ); |
264 //</cmail> |
|
265 |
260 |
266 /* |
261 /* |
267 * Suspends ongoing sync (or fetch) and swiths logic to suspend state |
262 * Suspends ongoing sync (or fetch) and swiths logic to suspend state |
268 */ |
263 */ |
269 void SuspendOperations(); |
264 void SuspendOperations(); |
297 /* |
292 /* |
298 * checks from settings is connect allowed in roaming state |
293 * checks from settings is connect allowed in roaming state |
299 */ |
294 */ |
300 TBool CanConnectIfRoamingL(); |
295 TBool CanConnectIfRoamingL(); |
301 |
296 |
302 // <cmail> removing flags |
|
303 /*#ifdef IPSSOSIMAPPOLOGGING_ON |
|
304 void WriteDebugData( TInt aEvent ); |
|
305 #endif*/ |
|
306 //</cmail> |
|
307 |
297 |
308 private: |
298 private: |
309 |
299 |
310 CMsvSession& iSession; |
300 CMsvSession& iSession; |
311 TMsvId iMailboxId; |
301 TMsvId iMailboxId; |
312 TMBoxLogicState iState; |
302 TMBoxLogicState iState; |
313 TInt iErrorCounter; |
303 TInt iErrorCounter; |
314 TInt iError; |
304 TInt iError; |
315 CIpsSosAOPluginTimer* iTimer; |
305 //<Qmail> |
|
306 CIpsSosAOPluginTimer* iTimer;//owned |
316 // message fetch is not currently used |
307 // message fetch is not currently used |
317 RArray<TMsvId> iFetchMsgArray; |
308 RArray<TMsvId> iFetchMsgArray;//owned |
318 CIpsSetDataApi* iDataApi; |
309 //<QMail> |
319 CIpsSosAOBaseAgent* iAgent; |
310 |
320 CIpsSetDataExtension* iExtendedSettings; |
311 //</QMail> |
|
312 CIpsSosAOBaseAgent* iAgent;//owned |
|
313 //</Qmail> |
|
314 //<QMail> |
|
315 |
|
316 //</QMail> |
321 TBool iIsRoaming; |
317 TBool iIsRoaming; |
322 }; |
318 }; |
323 |
319 |
324 #endif /*IPSSOSAOMBOXLOGIC_CPP_*/ |
320 #endif /*IPSSOSAOMBOXLOGIC_H*/ |