ws fix
svn path=/trunk/KDE/kdelibs/; revision=1130848
This commit is contained in:
parent
0f956bc95e
commit
ac465edd15
46
service.cpp
46
service.cpp
@ -112,23 +112,23 @@ Service *Service::access(const KUrl &url, QObject *parent)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ServicePrivate::jobFinished(KJob *job)
|
void ServicePrivate::jobFinished(KJob *job)
|
||||||
{
|
{
|
||||||
emit q->finished(static_cast<ServiceJob*>(job));
|
emit q->finished(static_cast<ServiceJob*>(job));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServicePrivate::associatedWidgetDestroyed(QObject *obj)
|
void ServicePrivate::associatedWidgetDestroyed(QObject *obj)
|
||||||
{
|
{
|
||||||
associatedWidgets.remove(static_cast<QWidget*>(obj));
|
associatedWidgets.remove(static_cast<QWidget*>(obj));
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServicePrivate::associatedGraphicsWidgetDestroyed(QObject *obj)
|
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, PackageMetadata metadata)
|
||||||
{
|
{
|
||||||
#ifdef ENABLE_REMOTE_WIDGETS
|
#ifdef ENABLE_REMOTE_WIDGETS
|
||||||
if (!serviceProvider) {
|
if (!serviceProvider) {
|
||||||
AuthorizationManager::self()->d->prepareForServicePublication();
|
AuthorizationManager::self()->d->prepareForServicePublication();
|
||||||
|
|
||||||
@ -154,13 +154,13 @@ void ServicePrivate::jobFinished(KJob *job)
|
|||||||
} else {
|
} else {
|
||||||
kDebug() << "already published!";
|
kDebug() << "already published!";
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
kWarning() << "libplasma is compiled without support for remote widgets. not publishing.";
|
kWarning() << "libplasma is compiled without support for remote widgets. not publishing.";
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void ServicePrivate::unpublish()
|
void ServicePrivate::unpublish()
|
||||||
{
|
{
|
||||||
if (serviceProvider) {
|
if (serviceProvider) {
|
||||||
delete serviceProvider;
|
delete serviceProvider;
|
||||||
serviceProvider = 0;
|
serviceProvider = 0;
|
||||||
@ -170,19 +170,19 @@ void ServicePrivate::jobFinished(KJob *job)
|
|||||||
delete publicService;
|
delete publicService;
|
||||||
publicService = 0;
|
publicService = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool ServicePrivate::isPublished() const
|
bool ServicePrivate::isPublished() const
|
||||||
{
|
{
|
||||||
if (serviceProvider) {
|
if (serviceProvider) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
KConfigGroup ServicePrivate::dummyGroup()
|
KConfigGroup ServicePrivate::dummyGroup()
|
||||||
{
|
{
|
||||||
if (!dummyConfig) {
|
if (!dummyConfig) {
|
||||||
if (!tempFile) {
|
if (!tempFile) {
|
||||||
tempFile = new KTemporaryFile;
|
tempFile = new KTemporaryFile;
|
||||||
@ -193,7 +193,7 @@ void ServicePrivate::jobFinished(KJob *job)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return KConfigGroup(dummyConfig, "DummyGroup");
|
return KConfigGroup(dummyConfig, "DummyGroup");
|
||||||
}
|
}
|
||||||
|
|
||||||
void Service::setDestination(const QString &destination)
|
void Service::setDestination(const QString &destination)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user