emailuis/nmframeworkadapter/inc/nmfwamessagefetchingoperation.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 NMFAMESSAGEFETCHINGOPERATION_H_
       
    19 #define NMFAMESSAGEFETCHINGOPERATION_H_
       
    20 
       
    21 #include <nmoperation.h>
       
    22 #include <MFSMailRequestObserver.h>
       
    23 
       
    24 class NmMessage;
       
    25 class CFSMailClient;
       
    26 
       
    27 class NmFwaMessageFetchingOperation : public NmOperation, public MFSMailRequestObserver
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     NmFwaMessageFetchingOperation(
       
    32         const NmId &mailboxId,
       
    33         const NmId &folderId,
       
    34         const NmId &messageId,
       
    35         CFSMailClient &mailClient,
       
    36         QObject *parent = NULL);
       
    37     
       
    38     ~NmFwaMessageFetchingOperation();
       
    39     
       
    40     // from MFSMailRequestObserver
       
    41     void RequestResponseL(TFSProgress aEvent, TInt aRequestId);
       
    42 
       
    43 protected slots:
       
    44     virtual void runAsyncOperation();
       
    45     
       
    46 protected:
       
    47     virtual void doCancelOperation();
       
    48 
       
    49 protected:
       
    50     NmId mMailboxId;
       
    51     NmId mFolderId;
       
    52     NmId mMessageId;
       
    53 
       
    54     CFSMailClient &mMailClient;
       
    55     
       
    56     TInt mRequestId;
       
    57 };
       
    58 
       
    59 #endif /* NMFAMESSAGEFETCHINGOPERATION_H_ */