|
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 #include "afasyncsession.h" |
|
22 |
|
23 class CAfEntry; |
|
24 class CFbsBitmap; |
|
25 |
|
26 class RAfStorageClientImplementation: protected RSessionBase, |
|
27 public MAfAsyncSession |
|
28 { |
|
29 public: |
|
30 RAfStorageClientImplementation(MAfAsyncRequestObserver &observer); |
|
31 |
|
32 ~RAfStorageClientImplementation(); |
|
33 |
|
34 void Close(); |
|
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 executeL(int function); |
|
56 |
|
57 void sendAsync(int function, const TIpcArgs &args, TRequestStatus& status); |
|
58 |
|
59 void getDataL(int id, TDes8& buffer); |
|
60 |
|
61 private: |
|
62 void startServerL(); |
|
63 |
|
64 private: |
|
65 RPointerArray<CBase> mAsyncTasks; |
|
66 MAfAsyncRequestObserver &mObserver; |
|
67 }; |
|
68 |
|
69 #endif //AFSTORAGECLIENTIMPLEMENTATION_H |