equal
deleted
inserted
replaced
42 */ |
42 */ |
43 HsHomeScreenClientServiceProvider::HsHomeScreenClientServiceProvider(QObject *parent) |
43 HsHomeScreenClientServiceProvider::HsHomeScreenClientServiceProvider(QObject *parent) |
44 : XQServiceProvider(gInterfaceName, parent), |
44 : XQServiceProvider(gInterfaceName, parent), |
45 mWaitDialog(0), |
45 mWaitDialog(0), |
46 mShowAnimation(false), |
46 mShowAnimation(false), |
47 mAsyncRequestIndex(0), |
47 mAsyncRequestIndex(0), |
48 mReturnValue(false), |
48 mReturnValue(false), |
49 mWallpaper(0) |
49 mWallpaper(0) |
50 { |
50 { |
51 publishAll(); |
51 publishAll(); |
52 } |
52 } |
95 mWallpaper->setImage(fileName); |
95 mWallpaper->setImage(fileName); |
96 } |
96 } |
97 |
97 |
98 /*! |
98 /*! |
99 \internal |
99 \internal |
100 Called when wallpaper image has been set successfully |
100 Called when wallpaper image has been set successfully |
101 */ |
101 */ |
102 void HsHomeScreenClientServiceProvider::onImageSet() |
102 void HsHomeScreenClientServiceProvider::onImageSet() |
103 { |
103 { |
104 mWallpaper->disconnect(this); |
104 mWallpaper->disconnect(this); |
105 stopAnimation(); |
105 stopAnimation(); |
152 |
152 |
153 */ |
153 */ |
154 HsWidgetComponentDescriptor HsHomeScreenClientServiceProvider::widgetComponentDescriptor(const QVariantHash& widgetDescriptor) |
154 HsWidgetComponentDescriptor HsHomeScreenClientServiceProvider::widgetComponentDescriptor(const QVariantHash& widgetDescriptor) |
155 { |
155 { |
156 HsWidgetComponentDescriptor widget; |
156 HsWidgetComponentDescriptor widget; |
157 widget.installationPath = widgetDescriptor["installationPath"].toString(); |
157 widget.setInstallationPath(widgetDescriptor["installationPath"].toString()); |
158 widget.uri = widgetDescriptor["uri"].toString(); |
158 widget.setUri(widgetDescriptor["uri"].toString()); |
159 widget.title = widgetDescriptor["title"].toString(); |
159 widget.setTitle(widgetDescriptor["title"].toString()); |
160 widget.description = widgetDescriptor["description"].toString(); |
160 widget.setDescription(widgetDescriptor["description"].toString()); |
161 widget.iconUri = widgetDescriptor["iconUri"].toString(); |
161 widget.setIconUri(widgetDescriptor["iconUri"].toString()); |
162 widget.hidden = widgetDescriptor["hidden"].toString(); |
162 widget.setHidden(widgetDescriptor["hidden"].toString()); |
163 widget.serviceXml = widgetDescriptor["serviceXml"].toString(); |
163 widget.setServiceXml(widgetDescriptor["serviceXml"].toString()); |
164 widget.version = widgetDescriptor["version"].toString(); |
164 widget.setVersion(widgetDescriptor["version"].toString()); |
165 return widget; |
165 return widget; |
166 } |
166 } |