From 5ca2657a0197124e1b69f96ee014f3cd7aa62529 Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Tue, 31 May 2011 01:01:18 +0200 Subject: [PATCH] publish using a KPluginInfo --- private/service_p.h | 4 +++- service.cpp | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) 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";