4#include <QtGui/qtgui-config.h>
7#include <QDBusInterface>
8#include <QDBusServiceWatcher>
9#include <QDBusConnectionInterface>
11#include <QCoreApplication>
13#ifndef QT_NO_SYSTEMTRAYICON
14#include <private/qdbustrayicon_p.h>
16#include <private/qdbusmenuconnection_p.h>
17#include <private/qdbusmenuadaptor_p.h>
18#include <private/qdbusplatformmenu_p.h>
39 , m_serviceName(serviceName)
43 , m_watcherRegistered(
false)
45#ifndef QT_NO_SYSTEMTRAYICON
48 m_watcherRegistered =
true;
62 qWarning() <<
"QDBusTrayIcon encountered a D-Bus error:" <<
error;
65#ifndef QT_NO_SYSTEMTRAYICON
100 "RegisterStatusNotifierItem"_L1);
114#include "moc_qdbusmenuconnection_p.cpp"
bool callWithCallback(const QDBusMessage &message, QObject *receiver, const char *returnMethod, const char *errorMethod, int timeout=-1) const
Sends the message over this connection and returns immediately.
bool isConnected() const
Returns true if this QDBusConnection object is connected.
static void disconnectFromBus(const QString &name)
Closes the bus connection of name name.
void unregisterObject(const QString &path, UnregisterMode mode=UnregisterNode)
Unregisters an object that was registered with the registerObject() at the object path given by path ...
QString baseService() const
Returns the unique connection name for this connection, if this QDBusConnection object is connected,...
bool registerObject(const QString &path, QObject *object, RegisterOptions options=ExportAdaptors)
Registers the object object at path path and returns true if the registration was successful.
void setArguments(const QList< QVariant > &arguments)
Sets the arguments that are going to be sent over D-Bus to arguments.
static QDBusMessage createMethodCall(const QString &destination, const QString &path, const QString &interface, const QString &method)
Constructs a new DBus message representing a method call.
The QDBusServiceWatcher class allows the user to watch for a bus service change.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
Combined button and popup list for selecting options.
DBusConnection const char DBusError * error
QList< QVariant > QVariantList
#define qCDebug(category,...)
#define Q_DECLARE_LOGGING_CATEGORY(name)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent