activityfw/storage/client/s60/inc/afthumbnailrequest_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 AFTHUMBNAILREQUESTPRIVATE_H
       
    18 #define AFTHUMBNAILREQUESTPRIVATE_H
       
    19 #include <e32base.h>
       
    20 #include <QVariant>
       
    21 #include <QPixmap>
       
    22 #include "afasyncrequestobserver.h"
       
    23 #include "afstorageclientimp.h"
       
    24 
       
    25 class CAfThumbnailRequestPrivate : public CActive
       
    26 
       
    27 {
       
    28 public:
       
    29     static void NewLD(MAfAsyncRequestObserver &observer, 
       
    30                       RAfStorageClientImplementation & session,
       
    31                       TSize resolution,
       
    32                       const TDesC& source,
       
    33                       TAny* userData);
       
    34 
       
    35     ~CAfThumbnailRequestPrivate();
       
    36 
       
    37 protected:
       
    38     void DoCancel();
       
    39 
       
    40     void RunL();
       
    41 
       
    42     TInt RunError(TInt error);
       
    43 
       
    44 private:
       
    45     CAfThumbnailRequestPrivate(MAfAsyncRequestObserver &, 
       
    46                                RAfStorageClientImplementation &, 
       
    47                                TAny*);
       
    48 
       
    49     void ConstructL(TSize resolution, const TDesC& source);
       
    50 
       
    51 private:
       
    52     MAfAsyncRequestObserver &mObserver;
       
    53     RAfStorageClientImplementation &mSession;
       
    54     TPckgBuf<TInt> mIds[4]; 
       
    55     RBuf mImgSrc;
       
    56     TAny* mUserData;
       
    57 };
       
    58 #endif // AFTHUMBNAILREQUESTPRIVATE_H