emailuis/nmframeworkadapter/inc/nmfwaaddattachmentsoperation.h
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     1 /*
       
     2  * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef NMFWAADDATTACHMENTSOPERATION_H_
       
    19 #define NMFWAADDATTACHMENTSOPERATION_H_
       
    20 
       
    21 #include <nmaddattachmentsoperation.h>
       
    22 #include <QObject>
       
    23 #include <nmcommon.h>
       
    24 #include <MFSMailRequestObserver.h>
       
    25 
       
    26 class NmMessage;
       
    27 class CFSMailClient;
       
    28 class CFSMailMessage;
       
    29 
       
    30 class NmFwaAddAttachmentsOperation : public NmAddAttachmentsOperation,
       
    31                                      public MFSMailRequestObserver
       
    32 {
       
    33     Q_OBJECT
       
    34     
       
    35 public:
       
    36     NmFwaAddAttachmentsOperation(const NmMessage &message,
       
    37                                  const QList<QString> &fileList,
       
    38                                  CFSMailClient &mailClient);
       
    39 
       
    40 public: // from MFSMailRequestObserver
       
    41     void RequestResponseL(TFSProgress aEvent, TInt aRequestId);
       
    42     
       
    43 protected:
       
    44     void doRunAsyncOperation();
       
    45     void doCompleteOperation();
       
    46     void doCancelOperation();
       
    47 
       
    48 private:
       
    49     ~NmFwaAddAttachmentsOperation();
       
    50     void doRunAsyncOperationL();	
       
    51 
       
    52 private:
       
    53     TInt mRequestId;
       
    54     QList<QString> mFileList;
       
    55     CFSMailClient &mMailClient;
       
    56     CFSMailMessage *mFSMessage;
       
    57 };
       
    58 
       
    59 #endif /* NMFWAADDATTACHMENTSOPERATION_H_ */