emailuis/nmframeworkadapter/inc/nmfwaaddattachmentsoperation.h
changeset 18 578830873419
child 20 ecc8def7944a
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     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 
       
    29 class NmFwaAddAttachmentsOperation : public NmAddAttachmentsOperation,
       
    30                                      public MFSMailRequestObserver
       
    31 {
       
    32     Q_OBJECT
       
    33 public:
       
    34     NmFwaAddAttachmentsOperation(const NmMessage &message,
       
    35                                  const QList<QString> &fileList,
       
    36                                  CFSMailClient &mailClient);
       
    37     
       
    38     virtual ~NmFwaAddAttachmentsOperation();
       
    39 
       
    40 public: // from MFSMailRequestObserver
       
    41     virtual void RequestResponseL(TFSProgress aEvent, TInt aRequestId);
       
    42     
       
    43 protected slots:
       
    44     virtual void runAsyncOperation();
       
    45 
       
    46 private:
       
    47     const NmMessage &mMessage;
       
    48 
       
    49     QList<QString> mFileList;
       
    50     
       
    51     CFSMailClient &mMailClient;
       
    52     
       
    53     QList<int> mRequestIds;
       
    54 };
       
    55 
       
    56 #endif /* NMFWAADDATTACHMENTSOPERATION_H_ */