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 HSACTIVITYSTORAGE_H |
|
18 #define HSACTIVITYSTORAGE_H |
|
19 #include "hsactivitydbclientinterface.h" |
|
20 class HsActivityStoragePrivate; |
|
21 |
|
22 /** |
|
23 * Class implements HsActivityDbClientInterface and storage functionality |
|
24 */ |
|
25 class HsActivityStorage: public HsActivityDbClientInterface |
|
26 { |
|
27 public: |
|
28 /** |
|
29 * Constructor |
|
30 */ |
|
31 HsActivityStorage(); |
|
32 |
|
33 /** |
|
34 * Destructor |
|
35 */ |
|
36 ~HsActivityStorage(); |
|
37 |
|
38 /** |
|
39 * Interface implementation. |
|
40 * @see int HsActivityDbClientInterface::addActivity(const QVariantHash&) |
|
41 */ |
|
42 int addActivity(const QVariantHash &activity); |
|
43 |
|
44 /** |
|
45 * Interface implementation. |
|
46 * @see int HsActivityDbClientInterface::updateActivity(const QVariantHash&) |
|
47 */ |
|
48 int updateActivity(const QVariantHash &activity); |
|
49 |
|
50 /** |
|
51 * Interface implementation. |
|
52 * @see int HsActivityDbClientInterface::removeActivity(const QVariantHash &) |
|
53 */ |
|
54 int removeActivity(const QVariantHash &activity); |
|
55 |
|
56 /** |
|
57 * Interface implementation. |
|
58 * @see int HsActivityDbClientInterface::removeApplicationActivities(const QVariantHash &) |
|
59 */ |
|
60 int removeApplicationActivities(const QVariantHash &activity); |
|
61 |
|
62 /** |
|
63 * Interface implementation. |
|
64 * @see int HsActivityDbClientInterface::activities(QList<QVariantHash> &) |
|
65 */ |
|
66 int activities(QList<QVariantHash>& result); |
|
67 |
|
68 /** |
|
69 * Interface implementation. |
|
70 * @see int HsActivityDbClientInterface::applicationActivities(QList<QVariantHash> &, const QVariantHash &) |
|
71 */ |
|
72 int applicationActivities(QList<QVariantHash>& result, |
|
73 const QVariantHash &activity); |
|
74 |
|
75 /** |
|
76 * Interface implementation. |
|
77 * @see int HsActivityDbClientInterface::waitActivity(const QVariantHash &) |
|
78 */ |
|
79 int waitActivity(const QVariantHash &activity); |
|
80 |
|
81 /** |
|
82 * Interface implementation. |
|
83 * @see int HsActivityDbClientInterface::launchActivity(const QVariantHash &) |
|
84 */ |
|
85 int launchActivity(const QVariantHash &activity); |
|
86 private: |
|
87 /** |
|
88 * Private storage implementation |
|
89 * Own. |
|
90 */ |
|
91 HsActivityStoragePrivate *d_ptr; |
|
92 }; |
|
93 #endif //HSACTIVITYSTORAGE_H |
|