cli-debug-receiver.h Source File

| Home · All Classes · All Namespaces · Modules · Functions · Files

cli-debug-receiver.h
1 /*
2 * This file contains D-Bus client proxy classes generated by qt-client-gen.py.
3 *
4 * This file can be distributed under the same terms as the specification from
5 * which it was generated.
6 */
7
8 #ifndef IN_TP_QT_HEADER
9 #error IN_TP_QT_HEADER
10 #endif
11
12 #include <TelepathyQt/Types>
13
14 #include <QtGlobal>
15
16 #include <QString>
17 #include <QObject>
18 #include <QVariant>
19
20 #include <QDBusPendingReply>
21
22 #include <TelepathyQt/AbstractInterface>
23 #include <TelepathyQt/DBusProxy>
24 #include <TelepathyQt/Global>
25
26 namespace Tp
27 {
28 class PendingVariant;
29 class PendingOperation;
30 }
31
32 namespace Tp
33 {
34 namespace Client
35 {
36
44 class TP_QT_EXPORT DebugInterface : public Tp::AbstractInterface
45 {
46 Q_OBJECT
47
48 public:
55 static inline QLatin1String staticInterfaceName()
56 {
57 return QLatin1String("org.freedesktop.Telepathy.Debug");
58 }
59
67 DebugInterface(
68 const QString& busName,
69 const QString& objectPath,
70 QObject* parent = 0
71 );
72
81 DebugInterface(
82 const QDBusConnection& connection,
83 const QString& busName,
84 const QString& objectPath,
85 QObject* parent = 0
86 );
87
94 DebugInterface(Tp::DBusProxy *proxy);
95
106 inline Tp::PendingVariant *requestPropertyEnabled() const
107 {
108 return internalRequestProperty(QLatin1String("Enabled"));
109 }
110
121 inline Tp::PendingOperation *setPropertyEnabled(bool newValue)
122 {
123 return internalSetProperty(QLatin1String("Enabled"), QVariant::fromValue(newValue));
124 }
125
132 Tp::PendingVariantMap *requestAllProperties() const
133 {
134 return internalRequestAllProperties();
135 }
136
137 public Q_SLOTS:
155 inline QDBusPendingReply<Tp::DebugMessageList> GetMessages(int timeout = -1)
156 {
157 if (!invalidationReason().isEmpty()) {
158 return QDBusPendingReply<Tp::DebugMessageList>(QDBusMessage::createError(
159 invalidationReason(),
160 invalidationMessage()
161 ));
162 }
163
164 QDBusMessage callMessage = QDBusMessage::createMethodCall(this->service(), this->path(),
165 this->staticInterfaceName(), QLatin1String("GetMessages"));
166 return this->connection().asyncCall(callMessage, timeout);
167 }
168
169 Q_SIGNALS:
193 void NewDebugMessage(double time, const QString& domain, uint level, const QString& message);
194
195 protected:
196 virtual void invalidate(Tp::DBusProxy *, const QString &, const QString &);
197 };
198 }
199 }
200 Q_DECLARE_METATYPE(Tp::Client::DebugInterface*)
Tp::DBusProxy
The DBusProxy class is a base class representing a remote object available over D-Bus.
Definition: dbus-proxy.h:42
Tp::Client::DebugInterface::requestAllProperties
Tp::PendingVariantMap * requestAllProperties() const
Definition: cli-debug-receiver.h:132
Tp::Client::DebugInterface::requestPropertyEnabled
Tp::PendingVariant * requestPropertyEnabled() const
Definition: cli-debug-receiver.h:106
Tp::PendingOperation
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp::AbstractInterface
The AbstractInterface class is the base class for all client side D-Bus interfaces, allowing access to remote methods/properties/signals.
Definition: abstract-interface.h:42
Tp::Client::DebugInterface::staticInterfaceName
static QLatin1String staticInterfaceName()
Definition: cli-debug-receiver.h:55
Tp::PendingVariant
The PendingVariant class is a generic subclass of PendingOperation representing a pending D-Bus metho...
Definition: pending-variant.h:38
Tp::Client::DebugInterface
Definition: cli-debug-receiver.h:44
Tp::PendingVariantMap
The PendingVariantMap class is a generic subclass of PendingOperation representing a pending D-Bus me...
Definition: pending-variant-map.h:38
Tp::Client::DebugInterface::setPropertyEnabled
Tp::PendingOperation * setPropertyEnabled(bool newValue)
Definition: cli-debug-receiver.h:121
Tp::Client::DebugInterface::GetMessages
QDBusPendingReply< Tp::DebugMessageList > GetMessages(int timeout=-1)
Definition: cli-debug-receiver.h:155