publish using a KPluginInfo

This commit is contained in:
Aaron Seigo 2011-05-31 01:01:18 +02:00
parent d4e058386d
commit 5ca2657a01
2 changed files with 5 additions and 3 deletions

View File

@ -29,6 +29,8 @@
#include <QWidget>
#include <QSet>
#include <kplugininfo.h>
#include <dnssd/publicservice.h>
#include <dnssd/servicebrowser.h>
@ -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();

View File

@ -95,7 +95,7 @@ void ServicePrivate::associatedGraphicsWidgetDestroyed(QObject *obj)
associatedGraphicsWidgets.remove(static_cast<QGraphicsWidget*>(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<QString, QByteArray> 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";