6#include <QtCore/QByteArray>
9#include <QtCore/QMetaMethod>
10#include <QtCore/QString>
11#include <QtCore/QStringList>
12#include <QtCore/QVariant>
13#include <QtCore/QDebug>
121const char *QDBusConnectionInterface::staticInterfaceName()
122{
return "org.freedesktop.DBus"; }
142QDBusConnectionInterface::~QDBusConnectionInterface()
266 switch (
reply.arguments().at(0).toUInt()) {
318 if (
signal == serviceRegisteredSignal)
321 else if (
signal == serviceUnregisteredSignal)
324 else if (
signal == serviceOwnerChangedSignal) {
325 static bool warningPrinted =
false;
326 if (!warningPrinted) {
327 qWarning(
"Connecting to deprecated signal QDBusConnectionInterface::serviceOwnerChanged(QString,QString,QString)");
328 warningPrinted =
true;
347 if (
signal == serviceRegisteredSignal)
350 else if (
signal == serviceUnregisteredSignal)
353 else if (
signal == serviceOwnerChangedSignal)
411#include "moc_qdbusconnectioninterface.cpp"
QDBusMessage call(const QString &method)
void disconnectNotify(const QMetaMethod &signal) override
void connectNotify(const QMetaMethod &signal) override
QDBusMessage internalConstCall(QDBus::CallMode mode, const QString &method, const QList< QVariant > &args=QList< QVariant >()) const
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 connectNotify(const QMetaMethod &) override
void NameAcquired(const QString &)
QDBusReply< uint > serviceUid(const QString &serviceName) const
Returns the Unix User ID (UID) for the process currently holding the bus service serviceName.
void disconnectNotify(const QMetaMethod &) override
ServiceQueueOptions
Flags for determining how a service registration should behave, in case the service name is already r...
QDBusReply< void > startService(const QString &name)
Requests that the bus start the service given by the name name.
ServiceReplacementOptions
Flags for determining if the D-Bus server should allow another application to replace a name that thi...
QDBusReply< bool > unregisterService(const QString &serviceName)
Releases the claim on the bus service name serviceName, that had been previously registered with regi...
QDBusReply< QStringList > activatableServiceNames
holds the activatable service names
QDBusReply< bool > isServiceRegistered(const QString &serviceName) const
Returns true if the service name serviceName has is currently registered.
void serviceOwnerChanged(const QString &name, const QString &oldOwner, const QString &newOwner)
QDBusReply< uint > servicePid(const QString &serviceName) const
Returns the Unix Process ID (PID) for the process currently holding the bus service serviceName.
QDBusReply< QDBusConnectionInterface::RegisterServiceReply > registerService(const QString &serviceName, ServiceQueueOptions qoption=DontQueueService, ServiceReplacementOptions roption=DontAllowReplacement)
Requests to register the service name serviceName on the bus.
QDBusReply< QStringList > registeredServiceNames
holds the registered service names
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 &)
QDBusReply< QString > serviceOwner(const QString &name) const
Returns the unique connection name of the primary owner of the name name.
void NameLost(const QString &)
\macro QT_RESTRICTED_CAST_FROM_ASCII
#define DBUS_NAME_FLAG_REPLACE_EXISTING
#define DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER
#define DBUS_NAME_FLAG_DO_NOT_QUEUE
#define DBUS_NAME_FLAG_ALLOW_REPLACEMENT
#define DBUS_INTERFACE_DBUS
#define DBUS_REQUEST_NAME_REPLY_EXISTS
#define DBUS_REQUEST_NAME_REPLY_IN_QUEUE
#define DBUS_REQUEST_NAME_REPLY_ALREADY_OWNER
#define DBUS_RELEASE_NAME_REPLY_RELEASED
Combined button and popup list for selecting options.
DBusConnection * connection
QList< QVariant > QVariantList
connect(quitButton, &QPushButton::clicked, &app, &QCoreApplication::quit, Qt::QueuedConnection)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent