emailuis/nmframeworkadapter/src/nmfwamessagefetchingoperation.cpp
changeset 27 9ba4404ef423
parent 23 2dc6caa42ec3
child 30 759dc5235cdb
equal deleted inserted replaced
23:2dc6caa42ec3 27:9ba4404ef423
    60     else {
    60     else {
    61         completeOperation(NmNotFoundError);
    61         completeOperation(NmNotFoundError);
    62     }
    62     }
    63 }
    63 }
    64 
    64 
       
    65 /*!
       
    66  * Complete the operation
       
    67  */
       
    68 void NmFwaMessageFetchingOperation::doCompleteOperation()
       
    69 {
       
    70     mRequestId = NmNotFoundError;
       
    71 }
       
    72 
       
    73 /*!
       
    74     Cancels the async operation. \sa NmOperation
       
    75  */
    65 void NmFwaMessageFetchingOperation::doCancelOperation()
    76 void NmFwaMessageFetchingOperation::doCancelOperation()
    66 {
    77 {
    67     TRAP_IGNORE(mMailClient.CancelL(mRequestId));
    78     if (mRequestId >= 0) {
       
    79         TRAP_IGNORE(mMailClient.CancelL(mRequestId));
       
    80         mRequestId = NmNotFoundError;
       
    81     }
    68 }
    82 }
    69 
    83 
    70 /*!
    84 /*!
    71  asynchronous request response message
    85  asynchronous request response message
    72  
    86