equal
deleted
inserted
replaced
144 case ECommandCancelAndDisconnect: |
144 case ECommandCancelAndDisconnect: |
145 iAgent->CancelAllAndDisconnectL(); |
145 iAgent->CancelAllAndDisconnectL(); |
146 CalculateToNextIntervalL(); |
146 CalculateToNextIntervalL(); |
147 break; |
147 break; |
148 case ECommandCancelDoNotDiconnect: |
148 case ECommandCancelDoNotDiconnect: |
149 if ( iAgent->GetState() != CIpsSosAOBaseAgent::EStateCompleted || |
149 if ( iAgent->GetState() != CIpsSosAOBaseAgent::EStateCompleted && |
150 iAgent->GetState() != CIpsSosAOBaseAgent::EStateIdle ) |
150 iAgent->GetState() != CIpsSosAOBaseAgent::EStateIdle ) |
151 { |
151 { |
152 iAgent->CancelAllAndDoNotDisconnect(); |
152 iAgent->CancelAllAndDoNotDisconnect(); |
153 CalculateToNextIntervalL(); |
153 CalculateToNextIntervalL(); |
154 } |
154 } |
450 } |
450 } |
451 |
451 |
452 // ---------------------------------------------------------------------------- |
452 // ---------------------------------------------------------------------------- |
453 // ---------------------------------------------------------------------------- |
453 // ---------------------------------------------------------------------------- |
454 // |
454 // |
455 TInt CIpsSosAOMBoxLogic::GetCurrentError() const |
|
456 { |
|
457 FUNC_LOG; |
|
458 return iError; |
|
459 } |
|
460 |
|
461 // ---------------------------------------------------------------------------- |
|
462 // ---------------------------------------------------------------------------- |
|
463 // |
|
464 TInt CIpsSosAOMBoxLogic::HandleTimerFiredL() |
455 TInt CIpsSosAOMBoxLogic::HandleTimerFiredL() |
465 { |
456 { |
466 FUNC_LOG; |
457 FUNC_LOG; |
467 // panic if we are in wrong state; |
458 // panic if we are in wrong state; |
468 __ASSERT_DEBUG( ( iState == EStateWaitSyncStart || |
459 __ASSERT_DEBUG( ( iState == EStateWaitSyncStart || |
926 TBool CIpsSosAOMBoxLogic::FirstEMNReceived() |
917 TBool CIpsSosAOMBoxLogic::FirstEMNReceived() |
927 { |
918 { |
928 //<QMail> |
919 //<QMail> |
929 CIpsSosAOSettingsHandler* settings = NULL; |
920 CIpsSosAOSettingsHandler* settings = NULL; |
930 TBool ret = EFalse; |
921 TBool ret = EFalse; |
931 TRAP_IGNORE(CIpsSosAOSettingsHandler::NewL(iSession, iMailboxId)); |
922 TRAP_IGNORE(settings = CIpsSosAOSettingsHandler::NewL(iSession, iMailboxId)); |
932 if(settings){ |
923 if(settings){ |
933 ret = settings->FirstEmnReceived(); |
924 ret = settings->FirstEmnReceived(); |
934 delete settings; |
925 delete settings; |
935 } |
926 } |
936 |
927 |