publish using a KPluginInfo
This commit is contained in:
parent
d4e058386d
commit
5ca2657a01
@ -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();
|
||||
|
||||
|
@ -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";
|
||||
|
Loading…
Reference in New Issue
Block a user