Release version 0.7-0
[vicar] / src / vicar-telepathy / cpp / connectionadaptor.h
1 /*
2  * This file was generated by qdbusxml2cpp version 0.7
3  * Command line was: qdbusxml2cpp -i vicar-telepathy/cpp/connectiontypes.h -c ConnectionAdaptor -a connectionadaptor.h:connectionadaptor.cpp data/xml/org.freedesktop.Telepathy.Connection.xml
4  *
5  * qdbusxml2cpp is Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
6  *
7  * This is an auto-generated file.
8  * This file may have been hand-edited. Look for HAND-EDIT comments
9  * before re-generating it.
10  */
11
12 #ifndef CONNECTIONADAPTOR_H_1318911911
13 #define CONNECTIONADAPTOR_H_1318911911
14
15 #include <QtCore/QObject>
16 #include <QtDBus/QtDBus>
17 #include "connectiontypes.h"
18 class QByteArray;
19 template<class T> class QList;
20 template<class Key, class Value> class QMap;
21 class QString;
22 class QStringList;
23 class QVariant;
24
25 /*
26  * Adaptor class for interface org.freedesktop.Telepathy.Connection
27  */
28 class ConnectionAdaptor: public QDBusAbstractAdaptor
29 {
30     Q_OBJECT
31     Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Connection")
32     Q_CLASSINFO("D-Bus Introspection", ""
33 "  <interface name=\"org.freedesktop.Telepathy.Connection\">\n"
34 "    <property access=\"read\" type=\"as\" name=\"Interfaces\"/>\n"
35 "    <property access=\"read\" type=\"b\" name=\"HasImmortalHandles\"/>\n"
36 "    <property access=\"read\" type=\"u\" name=\"Status\"/>\n"
37 "    <property access=\"read\" type=\"u\" name=\"SelfHandle\"/>\n"
38 "    <method name=\"Connect\"/>\n"
39 "    <method name=\"Disconnect\"/>\n"
40 "    <method name=\"GetInterfaces\">\n"
41 "      <arg direction=\"out\" type=\"as\"/>\n"
42 "    </method>\n"
43 "    <method name=\"GetProtocol\">\n"
44 "      <arg direction=\"out\" type=\"s\"/>\n"
45 "    </method>\n"
46 "    <method name=\"GetSelfHandle\">\n"
47 "      <arg direction=\"out\" type=\"u\"/>\n"
48 "    </method>\n"
49 "    <method name=\"GetStatus\">\n"
50 "      <arg direction=\"out\" type=\"u\"/>\n"
51 "    </method>\n"
52 "    <method name=\"HoldHandles\">\n"
53 "      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n"
54 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\"/>\n"
55 "      <arg direction=\"in\" type=\"au\" name=\"handles\"/>\n"
56 "    </method>\n"
57 "    <method name=\"InspectHandles\">\n"
58 "      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n"
59 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\"/>\n"
60 "      <arg direction=\"in\" type=\"au\" name=\"handles\"/>\n"
61 "      <arg direction=\"out\" type=\"as\"/>\n"
62 "    </method>\n"
63 "    <method name=\"ListChannels\">\n"
64 "      <annotation value=\"org::freedesktop::Telepathy::ChannelInfoList\" name=\"com.trolltech.QtDBus.QtTypeName.Out0\"/>\n"
65 "      <arg direction=\"out\" type=\"a(osuu)\"/>\n"
66 "    </method>\n"
67 "    <method name=\"ReleaseHandles\">\n"
68 "      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n"
69 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\"/>\n"
70 "      <arg direction=\"in\" type=\"au\" name=\"handles\"/>\n"
71 "    </method>\n"
72 "    <method name=\"RequestChannel\">\n"
73 "      <arg direction=\"in\" type=\"s\" name=\"type\"/>\n"
74 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\"/>\n"
75 "      <arg direction=\"in\" type=\"u\" name=\"handle\"/>\n"
76 "      <arg direction=\"in\" type=\"b\" name=\"suppress_handler\"/>\n"
77 "      <arg direction=\"out\" type=\"o\"/>\n"
78 "    </method>\n"
79 "    <method name=\"RequestHandles\">\n"
80 "      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.Out0\"/>\n"
81 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\"/>\n"
82 "      <arg direction=\"in\" type=\"as\" name=\"names\"/>\n"
83 "      <arg direction=\"out\" type=\"au\"/>\n"
84 "    </method>\n"
85 "    <method name=\"AddClientInterest\">\n"
86 "      <arg direction=\"in\" type=\"as\" name=\"tokens\"/>\n"
87 "    </method>\n"
88 "    <method name=\"RemoveClientInterest\">\n"
89 "      <arg direction=\"in\" type=\"as\" name=\"tokens\"/>\n"
90 "    </method>\n"
91 "    <signal name=\"NewChannel\">\n"
92 "      <arg type=\"o\" name=\"object_path\"/>\n"
93 "      <arg type=\"s\" name=\"channel_type\"/>\n"
94 "      <arg type=\"u\" name=\"handle_type\"/>\n"
95 "      <arg type=\"u\" name=\"handle\"/>\n"
96 "      <arg type=\"b\" name=\"suppress_handler\"/>\n"
97 "    </signal>\n"
98 "    <signal name=\"StatusChanged\">\n"
99 "      <arg type=\"u\" name=\"status\"/>\n"
100 "      <arg type=\"u\" name=\"reason\"/>\n"
101 "    </signal>\n"
102 "    <signal name=\"ConnectionError\">\n"
103 "      <annotation value=\"QVariantMap\" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n"
104 "      <arg type=\"s\" name=\"error\"/>\n"
105 "      <arg type=\"a{sv}\" name=\"error_details\"/>\n"
106 "    </signal>\n"
107 "    <signal name=\"SelfHandleChanged\">\n"
108 "      <arg type=\"u\"/>\n"
109 "    </signal>\n"
110 "  </interface>\n"
111         "")
112 public:
113     ConnectionAdaptor(QObject *parent);
114     virtual ~ConnectionAdaptor();
115
116 public: // PROPERTIES
117     Q_PROPERTY(bool HasImmortalHandles READ hasImmortalHandles)
118     bool hasImmortalHandles() const;
119
120     Q_PROPERTY(QStringList Interfaces READ interfaces)
121     QStringList interfaces() const;
122
123     Q_PROPERTY(uint SelfHandle READ selfHandle)
124     uint selfHandle() const;
125
126     Q_PROPERTY(uint Status READ status)
127     uint status() const;
128
129 public Q_SLOTS: // METHODS
130     void AddClientInterest(const QStringList &tokens);
131     void Connect();
132     void Disconnect();
133     QStringList GetInterfaces();
134     QString GetProtocol();
135     uint GetSelfHandle();
136     uint GetStatus();
137     void HoldHandles(uint handle_type, const QList<uint> &handles);
138     QStringList InspectHandles(uint handle_type, const QList<uint> &handles);
139     org::freedesktop::Telepathy::ChannelInfoList ListChannels();
140     void ReleaseHandles(uint handle_type, const QList<uint> &handles);
141     void RemoveClientInterest(const QStringList &tokens);
142     QDBusObjectPath RequestChannel(const QString &type, uint handle_type, uint handle, bool suppress_handler);
143     QList<uint> RequestHandles(uint handle_type, const QStringList &names);
144 Q_SIGNALS: // SIGNALS
145     void ConnectionError(const QString &error, const QVariantMap &error_details);
146     void NewChannel(const QDBusObjectPath &object_path, const QString &channel_type, uint handle_type, uint handle, bool suppress_handler);
147     void SelfHandleChanged(uint in0);
148     void StatusChanged(uint status, uint reason);
149 };
150
151 #endif