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
5 * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
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_1172489892
13 #define CONNECTIONADAPTOR_H_1172489892
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 " <method name=\"Connect\" />\n"
36 " <method name=\"Disconnect\" />\n"
37 " <method name=\"GetInterfaces\" >\n"
38 " <arg direction=\"out\" type=\"as\" />\n"
40 " <method name=\"GetProtocol\" >\n"
41 " <arg direction=\"out\" type=\"s\" />\n"
43 " <method name=\"GetSelfHandle\" >\n"
44 " <arg direction=\"out\" type=\"u\" />\n"
46 " <method name=\"GetStatus\" >\n"
47 " <arg direction=\"out\" type=\"u\" />\n"
49 " <method name=\"HoldHandles\" >\n"
50 " <annotation value=\"QList<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"
54 " <method name=\"InspectHandles\" >\n"
55 " <annotation value=\"QList<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"
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"
64 " <method name=\"ReleaseHandles\" >\n"
65 " <annotation value=\"QList<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"
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"
76 " <method name=\"RequestHandles\" >\n"
77 " <annotation value=\"QList<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"
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"
89 " <signal name=\"StatusChanged\" >\n"
90 " <arg type=\"u\" name=\"status\" />\n"
91 " <arg type=\"u\" name=\"reason\" />\n"
96 ConnectionAdaptor(QObject *parent);
97 virtual ~ConnectionAdaptor();
100 Q_PROPERTY(QStringList Interfaces READ Interfaces)
101 QStringList Interfaces() const;
103 public Q_SLOTS: // METHODS
106 QStringList GetInterfaces();
107 QString GetProtocol();
108 uint GetSelfHandle();
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);