emailuis/nmframeworkadapter/inc/nmfwamessagepartfetchingoperation.h
branchRCL_3
changeset 63 d189ee25cf9d
equal deleted inserted replaced
61:dcf0eedfc1a3 63:d189ee25cf9d
       
     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  *
       
    16  */
       
    17 
       
    18 #ifndef NMFWAMESSAGEPARTFETCHINGOPERATION_H_
       
    19 #define NMFWAMESSAGEPARTFETCHINGOPERATION_H_
       
    20 
       
    21 #include <nmoperation.h>
       
    22 #include <MFSMailRequestObserver.h>
       
    23 
       
    24 class NmMessage;
       
    25 class CFSMailClient;
       
    26 
       
    27 class NmFwaMessagePartFetchingOperation : public NmOperation, public MFSMailRequestObserver
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     NmFwaMessagePartFetchingOperation(
       
    32         const NmId &mailboxId,
       
    33         const NmId &folderId,
       
    34         const NmId &messageId,
       
    35         const NmId &messagePartId,
       
    36         CFSMailClient &mailClient);
       
    37     
       
    38     // from MFSMailRequestObserver
       
    39     void RequestResponseL(TFSProgress aEvent, TInt aRequestId);
       
    40 
       
    41 protected:
       
    42     void doRunAsyncOperation();
       
    43     void doCompleteOperation();
       
    44     void doCancelOperation();
       
    45     
       
    46 private:
       
    47     ~NmFwaMessagePartFetchingOperation();
       
    48     void doRunAsyncOperationL();
       
    49 
       
    50 private:
       
    51     NmId mMailboxId;
       
    52     NmId mFolderId;
       
    53     NmId mMessageId;
       
    54     NmId mMessagePartId;   
       
    55     CFSMailClient &mMailClient;  
       
    56     int mLastProgressValue;   
       
    57     TInt mRequestId;
       
    58 };
       
    59 
       
    60 #endif /* NMFWAMESSAGEPARTFETCHINGOPERATION_H_ */