emailuis/nmframeworkadapter/inc/nmfwastoreenvelopesoperation.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 NMFASTOREENVELOPESOPERATION_H_
       
    19 #define NMFASTOREENVELOPESOPERATION_H_
       
    20 
       
    21 #include <nmstoreenvelopesoperation.h>
       
    22 #include <nmcommon.h>
       
    23 #include <MFSMailRequestObserver.h>
       
    24 
       
    25 class CFSMailClient;
       
    26 class CFSMailMessage;
       
    27 
       
    28 class NmFwaStoreEnvelopesOperation : public NmStoreEnvelopesOperation, public MFSMailRequestObserver
       
    29 {
       
    30     Q_OBJECT
       
    31 public:
       
    32     NmFwaStoreEnvelopesOperation(
       
    33             const NmId &mailboxId,
       
    34             RPointerArray<CFSMailMessage> messages,
       
    35             CFSMailClient &mailClient);
       
    36     
       
    37     virtual ~NmFwaStoreEnvelopesOperation();
       
    38     
       
    39     // from MFSMailRequestObserver
       
    40     void RequestResponseL(TFSProgress aEvent, TInt aRequestId);
       
    41 
       
    42 protected slots:
       
    43     void runAsyncOperation();
       
    44     
       
    45 protected:
       
    46     void doCancelOperation();
       
    47 
       
    48 private:
       
    49     NmId                            mMailboxId;
       
    50     CFSMailClient                   &mMailClient;
       
    51     RPointerArray<CFSMailMessage>   mMessages;
       
    52     TInt                            mRequestId;
       
    53 };
       
    54 
       
    55 #endif //NMFASTOREENVELOPESOPERATION_H_