svn path=/trunk/KDE/kdelibs/; revision=1182545
This commit is contained in:
Aaron J. Seigo 2010-10-04 21:48:06 +00:00
parent 47a41796cc
commit 4eafdd6b27
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ public:
void associatedGraphicsWidgetDestroyed(QObject *obj); void associatedGraphicsWidgetDestroyed(QObject *obj);
void publish(AnnouncementMethods methods, const QString &name, void publish(AnnouncementMethods methods, const QString &name,
PackageMetadata metadata = PackageMetadata()); const PackageMetadata &metadata = PackageMetadata());
void unpublish(); void unpublish();

View File

@ -95,7 +95,7 @@ void ServicePrivate::associatedGraphicsWidgetDestroyed(QObject *obj)
associatedGraphicsWidgets.remove(static_cast<QGraphicsWidget*>(obj)); associatedGraphicsWidgets.remove(static_cast<QGraphicsWidget*>(obj));
} }
void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, PackageMetadata metadata) void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, const PackageMetadata &metadata)
{ {
#ifdef ENABLE_REMOTE_WIDGETS #ifdef ENABLE_REMOTE_WIDGETS
if (!serviceProvider) { if (!serviceProvider) {
@ -104,7 +104,7 @@ void ServicePrivate::publish(AnnouncementMethods methods, const QString &name, P
serviceProvider = new ServiceProvider(name, q); serviceProvider = new ServiceProvider(name, q);
if (methods.testFlag(ZeroconfAnnouncement) && if (methods.testFlag(ZeroconfAnnouncement) &&
(DNSSD::ServiceBrowser::isAvailable() == DNSSD::ServiceBrowser::Working)) { (DNSSD::ServiceBrowser::isAvailable() == DNSSD::ServiceBrowser::Working)) {
//TODO: dynamically pick a free port number. //TODO: dynamically pick a free port number.
publicService = new DNSSD::PublicService(name, "_plasma._tcp", 4000); publicService = new DNSSD::PublicService(name, "_plasma._tcp", 4000);