Release version 0.6-2
[vicar] / src / vicar-telepathy / src / connectionadaptor.h
1 /*
2  * This file was generated by dbusxml2cpp version 0.6
3  * Command line was: dbusxml2cpp -i QtTelepathy/Common/BaseTypes -i QtTelepathy/Common/ConnectionTypes -a include/QtTelepathy/Core/connectionadaptor.h: xml/tp-conn.xml
4  *
5  * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
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_1172489892
13 #define CONNECTIONADAPTOR_H_1172489892
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 "    <method name=\"Connect\" />\n"
36 "    <method name=\"Disconnect\" />\n"
37 "    <method name=\"GetInterfaces\" >\n"
38 "      <arg direction=\"out\" type=\"as\" />\n"
39 "    </method>\n"
40 "    <method name=\"GetProtocol\" >\n"
41 "      <arg direction=\"out\" type=\"s\" />\n"
42 "    </method>\n"
43 "    <method name=\"GetSelfHandle\" >\n"
44 "      <arg direction=\"out\" type=\"u\" />\n"
45 "    </method>\n"
46 "    <method name=\"GetStatus\" >\n"
47 "      <arg direction=\"out\" type=\"u\" />\n"
48 "    </method>\n"
49 "    <method name=\"HoldHandles\" >\n"
50 "      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.In1\" />\n"
51 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\" />\n"
52 "      <arg direction=\"in\" type=\"au\" name=\"handles\" />\n"
53 "    </method>\n"
54 "    <method name=\"InspectHandles\" >\n"
55 "      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.In1\" />\n"
56 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\" />\n"
57 "      <arg direction=\"in\" type=\"au\" name=\"handles\" />\n"
58 "      <arg direction=\"out\" type=\"as\" />\n"
59 "    </method>\n"
60 "    <method name=\"ListChannels\" >\n"
61 "      <annotation value=\"org::freedesktop::Telepathy::ChannelInfoList\" name=\"com.trolltech.QtDBus.QtTypeName.Out0\" />\n"
62 "      <arg direction=\"out\" type=\"a(osuu)\" />\n"
63 "    </method>\n"
64 "    <method name=\"ReleaseHandles\" >\n"
65 "      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.In1\" />\n"
66 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\" />\n"
67 "      <arg direction=\"in\" type=\"au\" name=\"handles\" />\n"
68 "    </method>\n"
69 "    <method name=\"RequestChannel\" >\n"
70 "      <arg direction=\"in\" type=\"s\" name=\"type\" />\n"
71 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\" />\n"
72 "      <arg direction=\"in\" type=\"u\" name=\"handle\" />\n"
73 "      <arg direction=\"in\" type=\"b\" name=\"suppress_handler\" />\n"
74 "      <arg direction=\"out\" type=\"o\" />\n"
75 "    </method>\n"
76 "    <method name=\"RequestHandles\" >\n"
77 "      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.Out0\" />\n"
78 "      <arg direction=\"in\" type=\"u\" name=\"handle_type\" />\n"
79 "      <arg direction=\"in\" type=\"as\" name=\"names\" />\n"
80 "      <arg direction=\"out\" type=\"au\" />\n"
81 "    </method>\n"
82 "    <signal name=\"NewChannel\" >\n"
83 "      <arg type=\"o\" name=\"object_path\" />\n"
84 "      <arg type=\"s\" name=\"channel_type\" />\n"
85 "      <arg type=\"u\" name=\"handle_type\" />\n"
86 "      <arg type=\"u\" name=\"handle\" />\n"
87 "      <arg type=\"b\" name=\"suppress_handler\" />\n"
88 "    </signal>\n"
89 "    <signal name=\"StatusChanged\" >\n"
90 "      <arg type=\"u\" name=\"status\" />\n"
91 "      <arg type=\"u\" name=\"reason\" />\n"
92 "    </signal>\n"
93 "  </interface>\n"
94         "")
95 public:
96     ConnectionAdaptor(QObject *parent);
97     virtual ~ConnectionAdaptor();
98
99 public: // PROPERTIES
100     Q_PROPERTY(QStringList Interfaces READ Interfaces)
101     QStringList Interfaces() const;
102
103 public Q_SLOTS: // METHODS
104     void Connect();
105     void Disconnect();
106     QStringList GetInterfaces();
107     QString GetProtocol();
108     uint GetSelfHandle();
109     uint GetStatus();
110     void HoldHandles(uint handle_type, const QList<uint> &handles);
111     QStringList InspectHandles(uint handle_type, const QList<uint> &handles);
112     org::freedesktop::Telepathy::ChannelInfoList ListChannels();
113     void ReleaseHandles(uint handle_type, const QList<uint> &handles);
114     QDBusObjectPath RequestChannel(const QString &type, uint handle_type, uint handle, bool suppress_handler);
115     QList<uint> RequestHandles(uint handle_type, const QStringList &names);
116 Q_SIGNALS: // SIGNALS
117     void NewChannel(const QDBusObjectPath &object_path, const QString &channel_type, uint handle_type, uint handle, bool suppress_handler);
118     void StatusChanged(uint status, uint reason);
119 };
120
121 #endif