ipsservices/ipssosplugin/src/ipsplgimap4fetchattachmentop.cpp
branchRCL_3
changeset 17 67369d1b217f
parent 12 4ce476e64c59
child 24 d189ee25cf9d
equal deleted inserted replaced
16:b5fbb9b25d57 17:67369d1b217f
   229     FUNC_LOG;
   229     FUNC_LOG;
   230     switch( iState )
   230     switch( iState )
   231         {
   231         {
   232         case EStateConnecting:
   232         case EStateConnecting:
   233             {
   233             {
   234             TBool connected = STATIC_CAST(
   234             // get result of connect operation
   235                 CIpsPlgImap4ConnectOp*, iOperation)->Connected();
   235             TInt err = iStatus.Int();
   236             if(!connected)
   236 
       
   237             if( err != KErrNone )
   237                 {
   238                 {
   238                 CompleteObserver( KErrCouldNotConnect );
   239                 CompleteObserver( err == KErrCancel ? err : KErrCouldNotConnect );
   239                 return;
   240                 return;
   240                 }
   241                 }
   241             iRetryCount = 0;
   242             iRetryCount = 0;
   242             DoFetchAttachmentL();
   243             DoFetchAttachmentL();
   243             break;
   244             break;