activityfw/storage/client/s60/inc/afstorageclientimp.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 AFSTORAGECLIENTIMPLEMENTATION_H
       
    18 #define AFSTORAGECLIENTIMPLEMENTATION_H
       
    19 #include <e32base.h>
       
    20 #include "afasyncrequestobserver.h"
       
    21 
       
    22 class CAfEntry;
       
    23 class CFbsBitmap;
       
    24 
       
    25 class RAfStorageClientImplementation: protected RSessionBase
       
    26 {
       
    27 public:
       
    28     RAfStorageClientImplementation(MAfAsyncRequestObserver &observer);
       
    29 
       
    30     ~RAfStorageClientImplementation();
       
    31 
       
    32     void Close();
       
    33 
       
    34     void executeL(int function);
       
    35 
       
    36     void executeL(int function, 
       
    37                   const CAfEntry &sourceEntry,
       
    38                   int userData =0);
       
    39 
       
    40     void executeL(int function, 
       
    41                   RPointerArray<CAfEntry> &resultsList, 
       
    42                   const CAfEntry& templateEntry);
       
    43     
       
    44     void getThumbnailL(TSize size, 
       
    45                       const TDesC& source,
       
    46                       TAny *userData );
       
    47 
       
    48     void connectL();
       
    49 
       
    50 public:
       
    51     void PushL(CBase* asyncTask);
       
    52 
       
    53     void Pop(CBase* asyncTask);
       
    54 
       
    55     void sendAsync(int function, const TIpcArgs &args, TRequestStatus& status);
       
    56 
       
    57     void getDataL(int id, TDes8& buffer);
       
    58 
       
    59 private:
       
    60     void startServerL();
       
    61 
       
    62 private:
       
    63     RPointerArray<CBase> mAsyncTasks;
       
    64     MAfAsyncRequestObserver &mObserver;
       
    65 };
       
    66 
       
    67 #endif //AFSTORAGECLIENTIMPLEMENTATION_H