emailuis/nmframeworkadapter/src/nmfwaaddattachmentsoperation.cpp
changeset 40 2c62ef3caffd
parent 39 b0b89ca206b5
child 43 99bcbff212ad
equal deleted inserted replaced
39:b0b89ca206b5 40:2c62ef3caffd
   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 }