email/imap4mtm/imapprotocolcontroller/src/cimapprotocolcontroller.cpp
branchRCL_3
changeset 54 fa1df4b99609
parent 18 a9c7e5670d17
child 57 ebe688cedc25
child 76 60a8a215b0ec
equal deleted inserted replaced
53:696bfeff199e 54:fa1df4b99609
  3508  
  3508  
  3509 	{
  3509 	{
  3510 	__LOG_TEXT(KDefaultLog, "CImapProtocolController::UpdateFlagL()");
  3510 	__LOG_TEXT(KDefaultLog, "CImapProtocolController::UpdateFlagL()");
  3511 	__ASSERT_DEBUG(iImapCompound==NULL, TImapServerPanic::ImapPanic(TImapServerPanic::ECreateCompoundIsNotNull));
  3511 	__ASSERT_DEBUG(iImapCompound==NULL, TImapServerPanic::ImapPanic(TImapServerPanic::ECreateCompoundIsNotNull));
  3512 	ResetProgress();
  3512 	ResetProgress();
  3513 	if (!CompleteIfBackgroundOpInProgress(aStatus))	
  3513 	
  3514 		{
  3514     if (!CompleteIfBackgroundOpInProgress(aStatus)) 
  3515 		iImapCompound = CImapUpdateFlagOperation::NewL(*iImapSyncManager,
  3515             {
  3516 												   iEntry,
  3516         
  3517 												   *iImapSettings
  3517             iImapCompound = CImapUpdateFlagOperation::NewL(*iImapSyncManager,
  3518 												   );
  3518                                                        iEntry,
  3519 		iRequestedOp = EUpdateFlag;
  3519                                                        *iImapSettings
  3520 		StartPrimaryOperation();
  3520                                                        );
  3521 		Queue(aStatus);
  3521             
  3522 		SetActive();
  3522             iRequestedOp = EUpdateFlag;
  3523 		}
  3523             StartPrimaryOperation();
  3524 	}
  3524             Queue(aStatus);
  3525 	
  3525             SetActive();
  3526 
  3526             }
       
  3527 
       
  3528 	    }	
       
  3529 
       
  3530 
       
  3531 
       
  3532 /**
       
  3533 Updates  the selection of  messages read/unread status from the remote server.
       
  3534 @param aStatus
       
  3535 */  
       
  3536 EXPORT_C void CImapProtocolController::UpdateEntriesFlagL( TRequestStatus& aStatus,const CMsvEntrySelection& aSourceSel ,TBool aFlagChanged)
       
  3537  
       
  3538     {
       
  3539     __LOG_TEXT(KDefaultLog, "CImapProtocolController::UpdateEntriesFlagL()");
       
  3540     __ASSERT_DEBUG(iImapCompound==NULL, TImapServerPanic::ImapPanic(TImapServerPanic::ECreateCompoundIsNotNull));
       
  3541     ResetProgress();
       
  3542     
       
  3543    if (!CompleteIfBackgroundOpInProgress(aStatus)) 
       
  3544         {
       
  3545     
       
  3546         iImapCompound = CImapUpdateFlagOperation::NewL(*iImapSyncManager,
       
  3547                                                    iEntry,
       
  3548                                                    *iImapSettings,
       
  3549                                                    aSourceSel,
       
  3550                                                    aFlagChanged);
       
  3551         iRequestedOp = EUpdateFlag;
       
  3552         StartPrimaryOperation();
       
  3553         Queue(aStatus);
       
  3554         SetActive();
       
  3555         }
       
  3556         
       
  3557     }   
       
  3558