60 */ |
60 */ |
61 void asyncRequestCompleated(int, int, const QString &); |
61 void asyncRequestCompleated(int, int, const QString &); |
62 |
62 |
63 /** |
63 /** |
64 * Interface implementation. |
64 * Interface implementation. |
|
65 * @see int HsActivityDbAsyncRequestObserver::asyncRequestCompleated(int, int, QPixmap&) |
|
66 */ |
|
67 void asyncRequestCompleated(int, int, const QPixmap&, void*); |
|
68 |
|
69 /** |
|
70 * Interface implementation. |
65 * @see int HsActivityDbClientInterface::saveActivity(const QVariantHash&) |
71 * @see int HsActivityDbClientInterface::saveActivity(const QVariantHash&) |
66 */ |
72 */ |
67 int addActivity(const QVariantHash &); |
73 int addActivity(const QVariantHash &); |
68 |
74 |
69 /** |
75 /** |
108 * @see int HsActivityDbClientInterface::launchActivity(const QVariantHash &) |
114 * @see int HsActivityDbClientInterface::launchActivity(const QVariantHash &) |
109 */ |
115 */ |
110 int launchActivity(const QVariantHash &); |
116 int launchActivity(const QVariantHash &); |
111 |
117 |
112 /** |
118 /** |
113 * Read thumbnail from file |
|
114 * @param dst - destination QPixmap instance |
|
115 * @param src - thumbnail file path |
|
116 * @return 0 on success, error code otherwise |
|
117 */ |
119 */ |
118 int getThumbnail(QPixmap &dst, const QString & src); |
120 //getThumbnail(resolution, thumbnailPath, "image/png", data) |
|
121 int getThumbnail(QSize size, QString imagePath, QString mimeType, void* userDdata); |
119 |
122 |
120 signals: |
123 signals: |
121 /** |
124 /** |
122 * Function notify about runtime activity change |
125 * Function notify about runtime activity change |
123 * @param activityId - requested activity name |
126 * @param activityId - requested activity name |
124 */ |
127 */ |
125 void activityRequested(const QString &activityId); |
128 void activityRequested(const QString &activityId); |
|
129 |
|
130 /** |
|
131 * Function notify about runtime activity change |
|
132 * @param thumbnailPixmap - requested thumbnail |
|
133 */ |
|
134 void thumbnailRequested(QPixmap thumbnailPixmap, void *userData); |
|
135 |
126 private: |
136 private: |
127 /** |
137 /** |
128 * Private client implementation. |
138 * Private client implementation. |
129 * Own. |
139 * Own. |
130 */ |
140 */ |
131 HsActivityDbClientPrivate *d_ptr; |
141 HsActivityDbClientPrivate *d_ptr; |
|
142 |
|
143 friend class HsActivityDbClientPrivate; |
132 }; |
144 }; |
133 |
145 |
134 #endif //HSACTIVITYDBCLIENT_H |
146 #endif //HSACTIVITYDBCLIENT_H |