emailuis/nmframeworkadapter/src/nmfwamessagepartfetchingoperation.cpp
changeset 27 9ba4404ef423
parent 23 2dc6caa42ec3
child 30 759dc5235cdb
equal deleted inserted replaced
23:2dc6caa42ec3 27:9ba4404ef423
   117     }
   117     }
   118     CleanupStack::PopAndDestroy(message);
   118     CleanupStack::PopAndDestroy(message);
   119 }
   119 }
   120 
   120 
   121 /*!
   121 /*!
       
   122  * Complete the operation
       
   123  */
       
   124 void NmFwaMessagePartFetchingOperation::doCompleteOperation()
       
   125 {
       
   126     mRequestId = NmNotFoundError;
       
   127 }
   122 
   128 
       
   129 /*!
       
   130     Cancels the async operation. \sa NmOperation
   123  */
   131  */
   124 void NmFwaMessagePartFetchingOperation::doCancelOperation()
   132 void NmFwaMessagePartFetchingOperation::doCancelOperation()
   125 {
   133 {
   126     TRAP_IGNORE(mMailClient.CancelL(mRequestId));
   134     if (mRequestId >= 0) {
       
   135         TRAP_IGNORE(mMailClient.CancelL(mRequestId));
       
   136         mRequestId = NmNotFoundError;
       
   137     }
   127 }
   138 }