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 AfStorageEntry; |
|
26 class AfAsyncRequestPrivate; |
|
27 |
|
28 class AfStorageClientPrivate |
|
29 { |
|
30 public: |
|
31 AfStorageClientPrivate(MAfAsyncRequestObserver & observer); |
|
32 |
|
33 ~AfStorageClientPrivate(); |
|
34 |
|
35 int connect(); |
|
36 |
|
37 int addActivity(const AfStorageEntry &sourceEntry, const QPixmap& sourceImage); |
|
38 |
|
39 int updateActivity(const AfStorageEntry &sourceEntry, const QPixmap& sourceImage); |
|
40 |
|
41 int removeActivity(const AfStorageEntry &templateEntry); |
|
42 |
|
43 int removeApplicationActivities(const AfStorageEntry &templateEntry); |
|
44 |
|
45 int activities(QList<AfStorageEntry> &dst); |
|
46 |
|
47 int applicationActivities(QList<AfStorageEntry> &dst, |
|
48 const AfStorageEntry &entry); |
|
49 |
|
50 int activityData(AfStorageEntry &resultEntry, const AfStorageEntry &templateEntry); |
|
51 |
|
52 int waitActivity(); |
|
53 |
|
54 int getThumbnail(QSize size, QString imagePath , void *userDdata); |
|
55 |
|
56 int notifyDataChange(); |
|
57 |
|
58 int launchActivity(const AfStorageEntry &templateEntry); |
|
59 |
|
60 int cancelWaitActivity(); |
|
61 |
|
62 int cancelNotifyDataChange(); |
|
63 |
|
64 private: |
|
65 int execute(int function, const AfStorageEntry &sourceEntry, const QPixmap& sourceImage); |
|
66 int execute(int function, QList<AfStorageEntry>& resultsList,const AfStorageEntry& templateEntry); |
|
67 |
|
68 private: |
|
69 RAfStorageClientImplementation mImplementation; |
|
70 }; |
|
71 #endif // AFSTORAGECLIENTPRIVATE_H |
|