equal
deleted
inserted
replaced
639 } |
639 } |
640 break; |
640 break; |
641 } |
641 } |
642 |
642 |
643 case KIMAP4MTMConnect: |
643 case KIMAP4MTMConnect: |
|
644 case KIMAP4MTMSilentConnect: |
644 { |
645 { |
645 __LOG_TEXT(KDefaultLog, " - KIMAP4MTMConnect"); |
646 __LOG_TEXT(KDefaultLog, " - KIMAP4MTMConnect"); |
646 // Completes with KErrServerBusy if already connected, otherwise |
647 if(aCommand==KIMAP4MTMSilentConnect) |
647 // establishes a connected IMAP session. |
648 { |
|
649 iImapProtocolController->SetSilentConnection(ETrue); |
|
650 } |
|
651 else |
|
652 { |
|
653 iImapProtocolController->SetSilentConnection(EFalse); |
|
654 } |
|
655 // Completes with KErrServerBusy if already connected, otherwise |
|
656 // establishes a connected IMAP session. |
648 if (iImapProtocolController->Connected()) |
657 if (iImapProtocolController->Connected()) |
649 { |
658 { |
650 Queue(aStatus); |
659 Queue(aStatus); |
651 User::RequestComplete(iRequest, KErrServerBusy); |
660 User::RequestComplete(iRequest, KErrServerBusy); |
652 } |
661 } |
663 } |
672 } |
664 break; |
673 break; |
665 } |
674 } |
666 |
675 |
667 case KIMAP4MTMConnectAndSynchronise: |
676 case KIMAP4MTMConnectAndSynchronise: |
|
677 case KIMAP4MTMSilentConnectAndSynchronise: |
668 { |
678 { |
669 __LOG_TEXT(KDefaultLog, " - KIMAP4MTMConnectAndSynchronise"); |
679 __LOG_TEXT(KDefaultLog, " - KIMAP4MTMConnectAndSynchronise"); |
|
680 if(aCommand==KIMAP4MTMSilentConnectAndSynchronise) |
|
681 { |
|
682 iImapProtocolController->SetSilentConnection(ETrue); |
|
683 } |
|
684 else |
|
685 { |
|
686 iImapProtocolController->SetSilentConnection(EFalse); |
|
687 } |
670 // Completes with KErrServerBusy if already connected, otherwise |
688 // Completes with KErrServerBusy if already connected, otherwise |
671 // establishes a connected IMAP session. |
689 // establishes a connected IMAP session. |
672 |
690 |
673 // The Protocol Controller will start the synchronise operation as |
691 // The Protocol Controller will start the synchronise operation as |
674 // a background operation on completion of the connect operation. |
692 // a background operation on completion of the connect operation. |