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

debug-receiver.h
1
21 #ifndef _TelepathyQt_debug_receiver_h_HEADER_GUARD_
22 #define _TelepathyQt_debug_receiver_h_HEADER_GUARD_
23
24 #ifndef IN_TP_QT_HEADER
25 #error IN_TP_QT_HEADER
26 #endif
27
28 #include <TelepathyQt/_gen/cli-debug-receiver.h>
29
30 #include <TelepathyQt/Global>
31 #include <TelepathyQt/Types>
32 #include <TelepathyQt/DBusProxy>
33
34 namespace Tp
35 {
36
37 class PendingDebugMessageList;
38
39 class TP_QT_EXPORT DebugReceiver : public StatefulDBusProxy
40 {
41 Q_OBJECT
42 Q_DISABLE_COPY(DebugReceiver)
43
44 public:
45 static const Feature FeatureCore;
46
47 static DebugReceiverPtr create(const QString &busName,
48 const QDBusConnection &bus = QDBusConnection::sessionBus());
49 virtual ~DebugReceiver();
50
51 PendingDebugMessageList *fetchMessages();
52 PendingOperation *setMonitoringEnabled(bool enabled);
53
54 Q_SIGNALS:
55 void newDebugMessage(const Tp::DebugMessage & message);
56
57 protected:
58 DebugReceiver(const QDBusConnection &bus, const QString &busName);
59
60 private Q_SLOTS:
61 TP_QT_NO_EXPORT void onRequestAllPropertiesFinished(Tp::PendingOperation *op);
62 TP_QT_NO_EXPORT void onNewDebugMessage(double time, const QString &domain,
63 uint level, const QString &message);
64
65 private:
66 struct Private;
67 friend struct Private;
68 Private *mPriv;
69 };
70
71 } // Tp
72
73 #endif
Tp::StatefulDBusProxy
The StatefulDBusProxy class is a base class representing a remote object whose API is stateful...
Definition: dbus-proxy.h:96
QDBusConnection
QDBusConnection::sessionBus
QDBusConnection sessionBus()
QString
Tp::DebugMessage
Definition: obj-x86_64-linux-gnu/TelepathyQt/_gen/types.h:1473
Tp::DebugReceiver
The DebugReceiver class provides a D-Bus proxy for a Telepathy Debug object.
Definition: debug-receiver.h:39
Tp::DebugReceiver::FeatureCore
static const Feature FeatureCore
Definition: debug-receiver.h:45
Tp::PendingDebugMessageList
Definition: pending-debug-message-list.h:34
Tp::Feature
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
Tp::PendingOperation
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
Tp
Definition: abstract-adaptor.cpp:31