|
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 |
|
18 #ifndef AFSTORAGECLIENTPRIVATE_H |
|
19 #define AFSTORAGECLIENTPRIVATE_H |
|
20 |
|
21 #include <e32base.h> |
|
22 #include "afstorageglobals.h" |
|
23 #include "afstorageclientimp.h" |
|
24 |
|
25 class CAfStorageClientPrivate : public CBase |
|
26 { |
|
27 |
|
28 public: |
|
29 static CAfStorageClientPrivate *NewL(MAfAsyncRequestObserver &observer); |
|
30 static CAfStorageClientPrivate *NewLC(MAfAsyncRequestObserver &observer); |
|
31 virtual ~CAfStorageClientPrivate(); |
|
32 |
|
33 private: |
|
34 CAfStorageClientPrivate(MAfAsyncRequestObserver &observer); |
|
35 void ConstructL(); |
|
36 |
|
37 public: |
|
38 int connect(); |
|
39 int addActivity(const CAfEntry &sourceEntry, TInt imageHandle); |
|
40 int updateActivity(const CAfEntry &sourceEntry, TInt imageHandle); |
|
41 int saveActivity(const CAfEntry &entry, TInt imageHandle); |
|
42 int removeActivity(const CAfEntry &templateEntry); |
|
43 int removeApplicationActivities(const CAfEntry &templateEntry); |
|
44 int activities(RPointerArray<CAfEntry> &dst); |
|
45 int applicationActivities(RPointerArray<CAfEntry> &dst, const CAfEntry &entry); |
|
46 int activityData(CAfEntry *&resultEntry, const CAfEntry &templateEntry); |
|
47 int waitActivity(); |
|
48 int getThumbnail(const TSize &size, const TDesC &imagePath, void *userData); |
|
49 int notifyDataChange(); |
|
50 int launchActivity(const CAfEntry &templateEntry); |
|
51 |
|
52 private: |
|
53 int execute(int function, const CAfEntry &sourceEntry, TInt imageHandle); |
|
54 int execute(int function, RPointerArray<CAfEntry> &resultsList,const CAfEntry &templateEntry); |
|
55 |
|
56 private: |
|
57 RAfStorageClientImplementation mImplementation; |
|
58 }; |
|
59 |
|
60 #endif // AFSTORAGECLIENTPRIVATE_H |