--- a/homescreenapp/hsapplication/inc/hshomescreenclientserviceprovider.h Thu Jun 24 13:11:40 2010 +0100
+++ b/homescreenapp/hsapplication/inc/hshomescreenclientserviceprovider.h Fri Jun 25 19:19:22 2010 +0300
@@ -22,6 +22,12 @@
#include <xqserviceprovider.h>
#include "hswidgetcomponentdescriptor.h"
+#include "hstest_global.h"
+
+HOMESCREEN_TEST_CLASS(t_hsapplication)
+
+class HsSpinnerDialog;
+class HsWallpaper;
class HsHomeScreenClientServiceProvider : public XQServiceProvider
{
@@ -30,14 +36,29 @@
public:
HsHomeScreenClientServiceProvider(QObject *parent = 0);
~HsHomeScreenClientServiceProvider();
+private:
+ void startAnimation();
+ void stopAnimation();
+
+signals:
+ void requestFinished();
public slots:
bool addWidget(const QString &uri,const QVariantHash &preferences);
- bool setWallpaper(const QString &fileName);
+ void setWallpaper(const QString &fileName);
bool widgetUninstalled(const QVariantHash &widgetDescriptor);
+ void onImageSet();
+ void onImageSetFailed();
private:
HsWidgetComponentDescriptor widgetComponentDescriptor(const QVariantHash& widgetDescriptor);
+ HsSpinnerDialog *mWaitDialog;
+ bool mShowAnimation;
+ int mAsyncRequestIndex;
+ QVariant mReturnValue;
+ HsWallpaper *mWallpaper;
+
+ HOMESCREEN_TEST_FRIEND_CLASS(t_hsapplication)
};
#endif // HSHOMESCREENCLIENTSERVICEPROVIDER_H