4#ifndef QDBUSCONNECTIONINTERFACE_H
5#define QDBUSCONNECTIONINTERFACE_H
7#include <QtDBus/qtdbusglobal.h>
8#include <QtCore/qstringlist.h>
10#include <QtDBus/qdbusabstractinterface.h>
11#include <QtDBus/qdbusreply.h>
29 static inline const char *staticInterfaceName();
34 Q_PROPERTY(QDBusReply<QStringList> registeredServiceNames READ registeredServiceNames)
41 ReplaceExistingService
43 Q_ENUM(ServiceQueueOptions)
48 Q_ENUM(ServiceReplacementOptions)
50 ServiceNotRegistered = 0,
54 Q_ENUM(RegisterServiceReply)
57 QDBusReply<QStringList> registeredServiceNames()
const;
58 QDBusReply<QStringList> activatableServiceNames()
const;
59 QDBusReply<bool> isServiceRegistered(
const QString &serviceName)
const;
60 QDBusReply<QString> serviceOwner(
const QString &
name)
const;
61 QDBusReply<bool> unregisterService(
const QString &serviceName);
62 QDBusReply<QDBusConnectionInterface::RegisterServiceReply> registerService(
const QString &serviceName,
63 ServiceQueueOptions qoption = DontQueueService,
64 ServiceReplacementOptions roption = DontAllowReplacement);
66 QDBusReply<uint> servicePid(
const QString &serviceName)
const;
67 QDBusReply<uint> serviceUid(
const QString &serviceName)
const;
85 void disconnectNotify(
const QMetaMethod &)
override;
void serviceRegistered(const QString &service)
This signal is emitted by the D-Bus server when the bus service name (unique connection name or well-...
void NameAcquired(const QString &)
void callWithCallbackFailed(const QDBusError &error, const QDBusMessage &call)
This signal is emitted when there is an error during a QDBusConnection::callWithCallback().
ServiceQueueOptions
Flags for determining how a service registration should behave, in case the service name is already r...
ServiceReplacementOptions
Flags for determining if the D-Bus server should allow another application to replace a name that thi...
void serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner)
void serviceUnregistered(const QString &service)
This signal is emitted by the D-Bus server when this application loses ownership of the bus service n...
void NameOwnerChanged(const QString &, const QString &, const QString &)
RegisterServiceReply
The possible return values from registerService():
void NameLost(const QString &)
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
DBusConnection * connection