emailuis/nmframeworkadapter/src/nmfwaaddattachmentsoperation.cpp
changeset 39 b0b89ca206b5
parent 38 b4618f2cf6ac
child 40 2c62ef3caffd
equal deleted inserted replaced
38:b4618f2cf6ac 39:b0b89ca206b5
    58     mFileList.clear(); 
    58     mFileList.clear(); 
    59     delete mFSMessage;
    59     delete mFSMessage;
    60 }
    60 }
    61 
    61 
    62 /*!
    62 /*!
    63     Called after base object construction via timer event, runs the
    63     Called after base object construction, runs the
    64     async operation.
    64     async operation.
    65     
    65     
    66     \sa NmOperation
    66     \sa NmOperation
    67  */
    67  */
    68 void NmFwaAddAttachmentsOperation::doRunAsyncOperation()
    68 void NmFwaAddAttachmentsOperation::doRunAsyncOperation()
   107     if (mFileList.count() > 0) {
   107     if (mFileList.count() > 0) {
   108         // Add new attachment from first file in the list.
   108         // Add new attachment from first file in the list.
   109         HBufC *fileName = NmConverter::qstringToHBufCLC(mFileList.first());
   109         HBufC *fileName = NmConverter::qstringToHBufCLC(mFileList.first());
   110         mRequestId = mFSMessage->AddNewAttachmentL(*fileName, *this);
   110         mRequestId = mFSMessage->AddNewAttachmentL(*fileName, *this);
   111         CleanupStack::PopAndDestroy(fileName);   
   111         CleanupStack::PopAndDestroy(fileName);   
   112     }
   112     } else {
       
   113         completeOperation(NmNoError);
       
   114     }
       
   115         
   113 }
   116 }
   114 
   117 
   115 /*!
   118 /*!
   116     Asynchronous request response message.
   119     Asynchronous request response message.
   117     
   120