emailuis/nmframeworkadapter/inc/nmfwamessagepartsfetchingoperation.h
changeset 27 9ba4404ef423
equal deleted inserted replaced
23:2dc6caa42ec3 27:9ba4404ef423
       
     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 NMFWAMESSAGEPARTSFETCHINGOPERATION_H_
       
    19 #define NMFWAMESSAGEPARTSFETCHINGOPERATION_H_
       
    20 
       
    21 #include <nmoperation.h>
       
    22 #include <MFSMailRequestObserver.h>
       
    23 
       
    24 class NmMessage;
       
    25 class CFSMailClient;
       
    26 
       
    27 class NmFwaMessagePartsFetchingOperation : public NmOperation, public MFSMailRequestObserver
       
    28 {
       
    29     Q_OBJECT
       
    30 public:
       
    31     NmFwaMessagePartsFetchingOperation(
       
    32         const NmId &mailboxId,
       
    33         const NmId &folderId,
       
    34         const NmId &messageId,
       
    35         const QList<NmId> &messagePartIds,
       
    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     ~NmFwaMessagePartsFetchingOperation();
       
    48     void doRunAsyncOperationL();
       
    49 
       
    50 private:
       
    51     NmId mMailboxId;
       
    52     NmId mFolderId;
       
    53     NmId mMessageId;
       
    54     RArray<TFSMailMsgId> mMessagePartIds;
       
    55     
       
    56     CFSMailClient &mMailClient;
       
    57     
       
    58     int mLastProgressValue;
       
    59     
       
    60     TInt mRequestId;
       
    61 };
       
    62 
       
    63 #endif /* NMFWAMESSAGEPARTSFETCHINGOPERATION_H_ */