emailuis/nmframeworkadapter/inc/nmfwamessagecreationoperation.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 NMFAMESSAGECREATIONOPERATION_H_
       
    19 #define NMFAMESSAGECREATIONOPERATION_H_
       
    20 
       
    21 #include <nmmessagecreationoperation.h>
       
    22 #include <nmcommon.h>
       
    23 #include <CFSMailCommon.h>
       
    24 #include <MFSMailRequestObserver.h>
       
    25 
       
    26 class NmMessage;
       
    27 class CFSMailClient;
       
    28 
       
    29 class NmFwaMessageCreationOperation : public NmMessageCreationOperation,
       
    30                                       public MFSMailRequestObserver
       
    31 {
       
    32     Q_OBJECT
       
    33 public:
       
    34     NmFwaMessageCreationOperation(
       
    35         const NmId &mailboxId,
       
    36         CFSMailClient &mailClient);
       
    37        
       
    38     NmMessage *getMessage();
       
    39     NmId getMessageId();
       
    40 
       
    41     // from MFSMailRequestObserver
       
    42     void RequestResponseL(TFSProgress aEvent, TInt aRequestId);
       
    43 
       
    44 protected:
       
    45     virtual void doRunAsyncOperation();    
       
    46     virtual void doCompleteOperation();
       
    47     virtual void doCancelOperation();
       
    48     virtual ~NmFwaMessageCreationOperation();
       
    49 protected:
       
    50     NmId mMailboxId;
       
    51     NmMessage *mMessage;   
       
    52     CFSMailClient &mMailClient;   
       
    53     TInt mRequestId;
       
    54     
       
    55 };
       
    56 
       
    57 #endif /* NMFAMESSAGECREATIONOPERATION_H_ */