diff --git a/private/service_p.h b/private/service_p.h index bd1db58a4..99841c044 100644 --- a/private/service_p.h +++ b/private/service_p.h @@ -29,6 +29,8 @@ #include #include +#include + #include #include @@ -97,7 +99,7 @@ public: void associatedGraphicsWidgetDestroyed(QObject *obj); void publish(AnnouncementMethods methods, const QString &name, - const PackageMetadata &metadata = PackageMetadata()); + const KPluginInfo &metadata = KPluginInfo()); void unpublish(); diff --git a/service.cpp b/service.cpp index 99ce232f5..7fef537dd 100644 --- a/service.cpp +++ b/service.cpp @@ -95,7 +95,7 @@ void ServicePrivate::associatedGraphicsWidgetDestroyed(QObject *obj) associatedGraphicsWidgets.remove(static_cast(obj)); } -void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, const PackageMetadata &metadata) +void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, const KPluginInfo &metadata) { #ifdef ENABLE_REMOTE_WIDGETS if (!serviceProvider) { @@ -111,7 +111,7 @@ void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, c QMap textData; textData["name"] = name.toUtf8(); textData["plasmoidname"] = metadata.name().toUtf8(); - textData["description"] = metadata.description().toUtf8(); + textData["description"] = metadata.comment().toUtf8(); textData["icon"] = metadata.icon().toUtf8(); publicService->setTextData(textData); kDebug() << "about to publish";