4#ifndef QDBUSSERVICEWATCHER_H
5#define QDBUSSERVICEWATCHER_H
7#include <QtCore/QObject>
8#include <QtCore/qcontainerfwd.h>
9#include <QtDBus/qtdbusglobal.h>
11#if !defined(QT_NO_DBUS) && !defined(QT_NO_QOBJECT)
26 BINDABLE bindableWatchedServices)
27 Q_PROPERTY(WatchMode watchMode READ watchMode WRITE setWatchMode BINDABLE bindableWatchMode)
30 WatchForRegistration = 0x01,
31 WatchForUnregistration = 0x02,
32 WatchForOwnerChange = 0x03
39 WatchMode watchMode = WatchForOwnerChange,
QObject *
parent =
nullptr);
44 void addWatchedService(
const QString &newService);
45 bool removeWatchedService(
const QString &service);
48 WatchMode watchMode()
const;
49 void setWatchMode(WatchMode
mode);
std::vector< ObjCStrongReference< CBMutableService > > services
The QDBusServiceWatcher class allows the user to watch for a bus service change.
void serviceOwnerChanged(const QString &service, const QString &oldOwner, const QString &newOwner)
This signal is emitted whenever this object detects that there was a service ownership change relatin...
WatchModeFlag
QDBusServiceWatcher supports three different watch modes, which are configured by this flag:
void serviceUnregistered(const QString &service)
This signal is emitted whenever this object detects that the service serviceName was unregistered fro...
void serviceRegistered(const QString &service)
This signal is emitted whenever this object detects that the service serviceName became available on ...
\macro QT_RESTRICTED_CAST_FROM_ASCII
Combined button and popup list for selecting options.
DBusConnection * connection
#define Q_DECLARE_FLAGS(Flags, Enum)
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent