emailuis/nmframeworkadapter/src/nmfwaaddattachmentsoperation.cpp
changeset 27 9ba4404ef423
parent 23 2dc6caa42ec3
child 30 759dc5235cdb
equal deleted inserted replaced
23:2dc6caa42ec3 27:9ba4404ef423
   190         doRunAsyncOperation();
   190         doRunAsyncOperation();
   191     }
   191     }
   192 }
   192 }
   193 
   193 
   194 /*!
   194 /*!
       
   195  * Complete the operation
       
   196  */
       
   197 void NmFwaAddAttachmentsOperation::doCompleteOperation()
       
   198 {
       
   199     mRequestId = NmNotFoundError;
       
   200 }
       
   201 
       
   202 /*!
   195     Cancels the async operation. \sa NmOperation
   203     Cancels the async operation. \sa NmOperation
   196  */
   204  */
   197 void NmFwaAddAttachmentsOperation::doCancelOperation()
   205 void NmFwaAddAttachmentsOperation::doCancelOperation()
   198 {
   206 {
   199     if (mRequestId != KErrNotFound) {
   207     if (mRequestId >= 0) {
   200         TRAP_IGNORE(mMailClient.CancelL(mRequestId));
   208         TRAP_IGNORE(mMailClient.CancelL(mRequestId));
   201     }
   209         mRequestId = NmNotFoundError;
   202     mRequestId = NmCancelError;
   210     }
   203 }
   211 }