|
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 AFSTORAGEPROXY_H |
|
19 #define AFSTORAGEPROXY_H |
|
20 |
|
21 #include <QObject> |
|
22 #include <QVariant> |
|
23 #include <QStringList> |
|
24 |
|
25 class AfStorageProxyPrivate; |
|
26 |
|
27 class AfStorageProxy : public QObject |
|
28 { |
|
29 Q_OBJECT |
|
30 |
|
31 public: |
|
32 AfStorageProxy(QObject *parent = 0); |
|
33 virtual ~AfStorageProxy(); |
|
34 |
|
35 public: |
|
36 bool addActivity(int applicationId, const QString &activityId, const QVariant &activityData, const QVariantHash &metadata, const QPixmap &screenshot); |
|
37 bool updateActivity(int applicationId, const QString &activityId, const QVariant &activityData, const QVariantHash &metadata, const QPixmap &screenshot); |
|
38 bool saveActivity(int applicationId, const QString &activityId, const QVariant &activityData, const QVariantHash &metadata, const QPixmap &screenshot); |
|
39 bool removeActivity(int applicationId, const QString &activityId); |
|
40 bool removeApplicationActivities(int applicationId); |
|
41 bool activities(QList<QVariantHash> &list); |
|
42 bool applicationActivities(QStringList &list, int applicationId); |
|
43 bool activityData(QVariant &data, int applicationId, const QString &activityId); |
|
44 bool activityMetaData(QVariantHash &metadata, int applicationId, const QString &activityId); |
|
45 bool waitActivity(); |
|
46 bool launchActivity(int applicationId, const QString &activityUri); |
|
47 bool getThumbnail(const QSize &size, const QString &imagePath, void *userData); |
|
48 bool notifyDataChange(); |
|
49 |
|
50 signals: |
|
51 void activityRequested(const QString &activityUri); |
|
52 void thumbnailRequested(const QPixmap &thumbnailPixmap, void *userData); |
|
53 void dataChanged(); |
|
54 |
|
55 private: |
|
56 AfStorageProxyPrivate *d_ptr; |
|
57 |
|
58 friend class AfStorageProxyPrivate; |
|
59 |
|
60 }; |
|
61 |
|
62 #endif //AFSTORAGEPROXY_H |