emailservices/nmclientapi/inc/nmapioperationsendmessage.h
changeset 74 6c59112cfd31
child 76 38bf5461e270
equal deleted inserted replaced
69:4e54af54a4a1 74:6c59112cfd31
       
     1 /*
       
     2  * Copyright (c) 2010 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  *      Send message operation header.
       
    16  */
       
    17 
       
    18 #ifndef NMAPIOPERATIONSENDMESSAGE_H_
       
    19 #define NMAPIOPERATIONSENDMESSAGE_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <nmapioperation.h>
       
    23 #include <nmapimessage.h>
       
    24 #include <MFSMailRequestObserver.h>
       
    25 
       
    26 class CFSMailBox;
       
    27 namespace EmailClientApi
       
    28 {
       
    29 
       
    30 class NmApiMessage;
       
    31 
       
    32 class NmApiOperationSendMessage : public NmApiOperation, public MFSMailRequestObserver
       
    33 {
       
    34     Q_OBJECT
       
    35 public:
       
    36     NmApiOperationSendMessage(const NmApiMessage &message, CFSMailBox &mailBox, QObject *parent = 0);
       
    37     virtual ~NmApiOperationSendMessage();
       
    38     
       
    39     void RequestResponseL( TFSProgress aEvent, TInt aRequestId );
       
    40 
       
    41 private slots:
       
    42     void start();
       
    43 
       
    44 public slots:
       
    45     void cancel();
       
    46     
       
    47 private:
       
    48     NmApiMessage mMessage;
       
    49     CFSMailBox &mMailBox;
       
    50     TInt mRequestId;
       
    51 };
       
    52 }
       
    53 
       
    54 #endif /* NMAPIOPERATIONSENDMESSAGE_H_ */