diff -r 2e2dc3d30ca8 -r 341166945d65 homescreenapp/hsdomainmodel/inc/hscontentservice.h --- a/homescreenapp/hsdomainmodel/inc/hscontentservice.h Thu Jun 24 13:11:40 2010 +0100 +++ b/homescreenapp/hsdomainmodel/inc/hscontentservice.h Fri Jun 25 19:19:22 2010 +0300 @@ -37,14 +37,28 @@ bool createWidget(const QVariantHash ¶ms); HsWidgetHost *createWidgetForPreview(const QVariantHash ¶ms); - bool addWidget(const QString &uri, const QVariantHash &preferences); + bool addWidget(const QString &uri, const QVariantHash &preferences, + const QVariant &homescreenData = QVariant()); + + bool widgets(const QString &uri, const QVariantHash &preferences, int &count); static HsContentService *instance(); + + void emitWidgetRemoved(const QString &uri, const QVariantHash &preferences); + +signals: + void widgetAdded(const QString &uri, const QVariantHash &preferences); + void widgetRemoved(const QString &uri, const QVariantHash &preferences); + +private slots: + void widgetStartFaulted(); +private: + Q_DISABLE_COPY(HsContentService) private: static HsContentService *mInstance; - - Q_DISABLE_COPY(HsContentService) + bool mWidgetStartFaulted; + }; Q_DECLARE_METATYPE(HsContentService*)