42 #ifndef QDBUSSERVICEWATCHER_H 43 #define QDBUSSERVICEWATCHER_H 45 #include <QtCore/qobject.h> 46 #include <QtDBus/qdbusmacros.h> 58 class QDBusServiceWatcherPrivate;
66 WatchForRegistration = 0x01,
67 WatchForUnregistration = 0x02,
68 WatchForOwnerChange = 0x03
74 WatchMode watchMode = WatchForOwnerChange,
QObject *parent = 0);
78 void setWatchedServices(
const QStringList &services);
79 void addWatchedService(
const QString &newService);
80 bool removeWatchedService(
const QString &service);
82 WatchMode watchMode()
const;
83 void setWatchMode(WatchMode mode);
89 void serviceRegistered(
const QString &service);
90 void serviceUnregistered(
const QString &service);
106 #endif // QDBUSSERVICEWATCHER_H #define QT_END_NAMESPACE
This macro expands to.
#define Q_DECLARE_FLAGS(Flags, Enum)
The Q_DECLARE_FLAGS() macro expands to.
WatchModeFlag
QDBusServiceWatcher supports three different watch modes, which are configured by this flag: ...
#define Q_DISABLE_COPY(Class)
Disables the use of copy constructors and assignment operators for the given Class.
#define Q_PRIVATE_SLOT(d, signature)
The QString class provides a Unicode character string.
The QObject class is the base class of all Qt objects.
WatchMode watchMode
The watchMode property holds the current watch mode for this QDBusServiceWatcher object.
#define QT_BEGIN_NAMESPACE
This macro expands to.
#define Q_DECLARE_OPERATORS_FOR_FLAGS(Flags)
The Q_DECLARE_OPERATORS_FOR_FLAGS() macro declares global operator|() functions for Flags...
The QStringList class provides a list of strings.
The QDBusConnection class represents a connection to the D-Bus bus daemon.
QStringList watchedServices
The servicesWatched property holds the list of services watched.
#define Q_DECLARE_PRIVATE(Class)
The QDBusServiceWatcher class allows the user to watch for a bus service change.