20 |
20 |
21 #include <QVariant> |
21 #include <QVariant> |
22 |
22 |
23 #include <xqserviceprovider.h> |
23 #include <xqserviceprovider.h> |
24 #include "hswidgetcomponentdescriptor.h" |
24 #include "hswidgetcomponentdescriptor.h" |
|
25 #include "hstest_global.h" |
|
26 |
|
27 HOMESCREEN_TEST_CLASS(t_hsapplication) |
|
28 |
|
29 class HsSpinnerDialog; |
|
30 class HsWallpaper; |
25 |
31 |
26 class HsHomeScreenClientServiceProvider : public XQServiceProvider |
32 class HsHomeScreenClientServiceProvider : public XQServiceProvider |
27 { |
33 { |
28 Q_OBJECT |
34 Q_OBJECT |
29 |
35 |
30 public: |
36 public: |
31 HsHomeScreenClientServiceProvider(QObject *parent = 0); |
37 HsHomeScreenClientServiceProvider(QObject *parent = 0); |
32 ~HsHomeScreenClientServiceProvider(); |
38 ~HsHomeScreenClientServiceProvider(); |
|
39 private: |
|
40 void startAnimation(); |
|
41 void stopAnimation(); |
|
42 |
|
43 signals: |
|
44 void requestFinished(); |
33 |
45 |
34 public slots: |
46 public slots: |
35 bool addWidget(const QString &uri,const QVariantHash &preferences); |
47 bool addWidget(const QString &uri,const QVariantHash &preferences); |
36 bool setWallpaper(const QString &fileName); |
48 void setWallpaper(const QString &fileName); |
37 bool widgetUninstalled(const QVariantHash &widgetDescriptor); |
49 bool widgetUninstalled(const QVariantHash &widgetDescriptor); |
|
50 void onImageSet(); |
|
51 void onImageSetFailed(); |
38 |
52 |
39 private: |
53 private: |
40 HsWidgetComponentDescriptor widgetComponentDescriptor(const QVariantHash& widgetDescriptor); |
54 HsWidgetComponentDescriptor widgetComponentDescriptor(const QVariantHash& widgetDescriptor); |
|
55 HsSpinnerDialog *mWaitDialog; |
|
56 bool mShowAnimation; |
|
57 int mAsyncRequestIndex; |
|
58 QVariant mReturnValue; |
|
59 HsWallpaper *mWallpaper; |
|
60 |
|
61 HOMESCREEN_TEST_FRIEND_CLASS(t_hsapplication) |
41 }; |
62 }; |
42 |
63 |
43 #endif // HSHOMESCREENCLIENTSERVICEPROVIDER_H |
64 #endif // HSHOMESCREENCLIENTSERVICEPROVIDER_H |