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
Definition: build/TelepathyQt/_gen/types.h:1473
The PendingOperation class is a base class for pending asynchronous operations.
Definition: pending-operation.h:45
static const Feature FeatureCore
Definition: debug-receiver.h:45
The StatefulDBusProxy class is a base class representing a remote object whose API is stateful...
Definition: dbus-proxy.h:96
The DebugReceiver class provides a D-Bus proxy for a Telepathy Debug object.
Definition: debug-receiver.h:39
Definition: abstract-adaptor.cpp:31
The Feature class represents a feature that can be enabled on demand.
Definition: feature.h:41
Definition: pending-debug-message-list.h:34


Copyright © 2008-2011 Collabora Ltd. and Nokia Corporation
Telepathy-Qt 0.9.7