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
5 * qdbusxml2cpp is Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
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.
12 #ifndef CONNECTIONADAPTOR_H_1318911911
13 #define CONNECTIONADAPTOR_H_1318911911
15 #include <QtCore/QObject>
16 #include <QtDBus/QtDBus>
17 #include "connectiontypes.h"
19 template<class T> class QList;
20 template<class Key, class Value> class QMap;
26 * Adaptor class for interface org.freedesktop.Telepathy.Connection
28 class ConnectionAdaptor: public QDBusAbstractAdaptor
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"
43 " <method name=\"GetProtocol\">\n"
44 " <arg direction=\"out\" type=\"s\"/>\n"
46 " <method name=\"GetSelfHandle\">\n"
47 " <arg direction=\"out\" type=\"u\"/>\n"
49 " <method name=\"GetStatus\">\n"
50 " <arg direction=\"out\" type=\"u\"/>\n"
52 " <method name=\"HoldHandles\">\n"
53 " <annotation value=\"QList<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"
57 " <method name=\"InspectHandles\">\n"
58 " <annotation value=\"QList<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"
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"
67 " <method name=\"ReleaseHandles\">\n"
68 " <annotation value=\"QList<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"
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"
79 " <method name=\"RequestHandles\">\n"
80 " <annotation value=\"QList<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"
85 " <method name=\"AddClientInterest\">\n"
86 " <arg direction=\"in\" type=\"as\" name=\"tokens\"/>\n"
88 " <method name=\"RemoveClientInterest\">\n"
89 " <arg direction=\"in\" type=\"as\" name=\"tokens\"/>\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"
98 " <signal name=\"StatusChanged\">\n"
99 " <arg type=\"u\" name=\"status\"/>\n"
100 " <arg type=\"u\" name=\"reason\"/>\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"
107 " <signal name=\"SelfHandleChanged\">\n"
108 " <arg type=\"u\"/>\n"
113 ConnectionAdaptor(QObject *parent);
114 virtual ~ConnectionAdaptor();
116 public: // PROPERTIES
117 Q_PROPERTY(bool HasImmortalHandles READ hasImmortalHandles)
118 bool hasImmortalHandles() const;
120 Q_PROPERTY(QStringList Interfaces READ interfaces)
121 QStringList interfaces() const;
123 Q_PROPERTY(uint SelfHandle READ selfHandle)
124 uint selfHandle() const;
126 Q_PROPERTY(uint Status READ status)
129 public Q_SLOTS: // METHODS
130 void AddClientInterest(const QStringList &tokens);
133 QStringList GetInterfaces();
134 QString GetProtocol();
135 uint GetSelfHandle();
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);