emailuis/nmframeworkadapter/inc/nmfwamessagepartfetchingoperation.h
changeset 18 578830873419
child 20 ecc8def7944a
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     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         QObject *parent = NULL);
       
    38     
       
    39     virtual ~NmFwaMessagePartFetchingOperation();
       
    40     
       
    41     // from MFSMailRequestObserver
       
    42     void RequestResponseL(TFSProgress aEvent, TInt aRequestId);
       
    43 
       
    44 protected slots:
       
    45     void runAsyncOperation();
       
    46     
       
    47 protected:
       
    48     void doCancelOperation();
       
    49     
       
    50 private:
       
    51     void runAsyncOperationL();
       
    52 
       
    53 private:
       
    54     NmId mMailboxId;
       
    55     NmId mFolderId;
       
    56     NmId mMessageId;
       
    57     NmId mMessagePartId;
       
    58     
       
    59     CFSMailClient &mMailClient;
       
    60     
       
    61     int mLastProgressValue;
       
    62     
       
    63     TInt mRequestId;
       
    64 };
       
    65 
       
    66 #endif /* NMFWAMESSAGEPARTFETCHINGOPERATION_H_ */