ipsservices/ipssosplugin/src/ipsplgimap4fetchattachmentop.cpp
branchRCL_3
changeset 37 c3c9c6dcfb80
parent 33 da5135c61bad
child 63 d189ee25cf9d
equal deleted inserted replaced
36:e8f259fad141 37:c3c9c6dcfb80
   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;