activityfw/storage/client/s60/inc/afasyncrequest_p.h
changeset 104 9b022b1f357c
equal deleted inserted replaced
103:b99b84bcd2d1 104:9b022b1f357c
       
     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 #ifndef AFASYNCREQUESTPRIVATE_H
       
    18 #define AFASYNCREQUESTPRIVATE_H
       
    19 #include <e32base.h>
       
    20 #include <QVariant>
       
    21 #include <QPixmap>
       
    22 #include "afasyncrequestobserver.h"
       
    23 #include "afstorageclientimp.h"
       
    24 #include "afcmd.h"
       
    25 
       
    26 class CAfAsyncRequestPrivate : public CActive
       
    27 
       
    28 {
       
    29 public:
       
    30     static void NewLD(MAfAsyncRequestObserver &observer, 
       
    31                       RAfStorageClientImplementation & session,
       
    32                       ActivityCmd cmd);
       
    33 
       
    34     ~CAfAsyncRequestPrivate();
       
    35 
       
    36 protected:
       
    37     void DoCancel();
       
    38 
       
    39     void RunL();
       
    40 
       
    41     TInt RunError(TInt error);
       
    42 
       
    43 private:
       
    44     CAfAsyncRequestPrivate(MAfAsyncRequestObserver &, 
       
    45                            RAfStorageClientImplementation &,
       
    46                            ActivityCmd);
       
    47     void ConstructL();
       
    48 
       
    49 private:
       
    50     MAfAsyncRequestObserver &mObserver;
       
    51     RAfStorageClientImplementation &mSession;
       
    52     const ActivityCmd mCmd;
       
    53     TPckgBuf<TInt> mIds[4];
       
    54 };
       
    55 #endif // AFASYNCREQUESTPRIVATE_H