Home · All Classes · All Namespaces · Modules · Functions · Files
svc-debug.h
1 /*
2  * This file contains D-Bus adaptor classes generated by qt-svc-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 #include <TelepathyQt/AbstractAdaptor>
9 #include <TelepathyQt/Global>
10 #include <TelepathyQt/Types>
11 
12 #include <QObject>
13 #include <QtDBus>
14 
15 namespace Tp
16 {
17 namespace Service
18 {
19 
27 class TP_QT_EXPORT DebugAdaptor : public Tp::AbstractAdaptor
28 {
29  Q_OBJECT
30  Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Debug")
31  Q_CLASSINFO("D-Bus Introspection", ""
32 " <interface name=\"org.freedesktop.Telepathy.Debug\">\n"
33 " <property access=\"readwrite\" type=\"b\" name=\"Enabled\"/>\n"
34 " <method name=\"GetMessages\">\n"
35 " <arg direction=\"out\" type=\"a(dsus)\" name=\"messages\">\n"
36 " <annotation value=\"Tp::DebugMessageList\" name=\"com.trolltech.QtDBus.QtTypeName.Out0\"/>\n"
37 " </arg>\n"
38 " </method>\n"
39 " <signal name=\"NewDebugMessage\">\n"
40 " <arg type=\"d\" name=\"time\"/>\n"
41 " <arg type=\"s\" name=\"domain\"/>\n"
42 " <arg type=\"u\" name=\"level\"/>\n"
43 " <arg type=\"s\" name=\"message\"/>\n"
44 " </signal>\n"
45 " </interface>\n"
46 "")
47  Q_PROPERTY(bool Enabled READ Enabled WRITE SetEnabled)
48 
49 public:
50  DebugAdaptor(const QDBusConnection& dbusConnection, QObject* adaptee, QObject* parent);
51  virtual ~DebugAdaptor();
52 
53  typedef Tp::MethodInvocationContextPtr< Tp::DebugMessageList > GetMessagesContextPtr;
54 
55 public: // PROPERTIES
68  bool Enabled() const;
79  void SetEnabled(const bool &newValue);
80 
81 public Q_SLOTS: // METHODS
101  Tp::DebugMessageList GetMessages(const QDBusMessage& dbusMessage);
102 
103 Q_SIGNALS: // SIGNALS
126  void NewDebugMessage(double time, const QString& domain, uint level, const QString& message);
127 };
128 
129 }
130 }
Definition: svc-debug.h:27
QList< DebugMessage > DebugMessageList
Definition: build/TelepathyQt/_gen/types.h:1522
Definition: abstract-adaptor.cpp:31
Base class for all the low-level service-side adaptors.
Definition: abstract-adaptor.h:40


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