Version 0.7-0
[vicar] / src / vicar-telepathy / cpp / connectionadaptor.cpp
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  * Do not edit! All changes made to it will be lost.
9  */
10
11 #include "connectionadaptor.h"
12 #include <QtCore/QMetaObject>
13 #include <QtCore/QByteArray>
14 #include <QtCore/QList>
15 #include <QtCore/QMap>
16 #include <QtCore/QString>
17 #include <QtCore/QStringList>
18 #include <QtCore/QVariant>
19
20 /*
21  * Implementation of adaptor class ConnectionAdaptor
22  */
23
24 ConnectionAdaptor::ConnectionAdaptor(QObject *parent)
25     : QDBusAbstractAdaptor(parent)
26 {
27     // constructor
28     setAutoRelaySignals(true);
29 }
30
31 ConnectionAdaptor::~ConnectionAdaptor()
32 {
33     // destructor
34 }
35
36 bool ConnectionAdaptor::hasImmortalHandles() const
37 {
38     // get the value of property HasImmortalHandles
39     return qvariant_cast< bool >(parent()->property("HasImmortalHandles"));
40 }
41
42 QStringList ConnectionAdaptor::interfaces() const
43 {
44     // get the value of property Interfaces
45     return qvariant_cast< QStringList >(parent()->property("Interfaces"));
46 }
47
48 uint ConnectionAdaptor::selfHandle() const
49 {
50     // get the value of property SelfHandle
51     return qvariant_cast< uint >(parent()->property("SelfHandle"));
52 }
53
54 uint ConnectionAdaptor::status() const
55 {
56     // get the value of property Status
57     return qvariant_cast< uint >(parent()->property("Status"));
58 }
59
60 void ConnectionAdaptor::AddClientInterest(const QStringList &tokens)
61 {
62     // handle method call org.freedesktop.Telepathy.Connection.AddClientInterest
63     QMetaObject::invokeMethod(parent(), "AddClientInterest", Q_ARG(QStringList, tokens));
64 }
65
66 void ConnectionAdaptor::Connect()
67 {
68     // handle method call org.freedesktop.Telepathy.Connection.Connect
69     QMetaObject::invokeMethod(parent(), "Connect");
70 }
71
72 void ConnectionAdaptor::Disconnect()
73 {
74     // handle method call org.freedesktop.Telepathy.Connection.Disconnect
75     QMetaObject::invokeMethod(parent(), "Disconnect");
76 }
77
78 QStringList ConnectionAdaptor::GetInterfaces()
79 {
80     // handle method call org.freedesktop.Telepathy.Connection.GetInterfaces
81     QStringList out0;
82     QMetaObject::invokeMethod(parent(), "GetInterfaces", Q_RETURN_ARG(QStringList, out0));
83     return out0;
84 }
85
86 QString ConnectionAdaptor::GetProtocol()
87 {
88     // handle method call org.freedesktop.Telepathy.Connection.GetProtocol
89     QString out0;
90     QMetaObject::invokeMethod(parent(), "GetProtocol", Q_RETURN_ARG(QString, out0));
91     return out0;
92 }
93
94 uint ConnectionAdaptor::GetSelfHandle()
95 {
96     // handle method call org.freedesktop.Telepathy.Connection.GetSelfHandle
97     uint out0;
98     QMetaObject::invokeMethod(parent(), "GetSelfHandle", Q_RETURN_ARG(uint, out0));
99     return out0;
100 }
101
102 uint ConnectionAdaptor::GetStatus()
103 {
104     // handle method call org.freedesktop.Telepathy.Connection.GetStatus
105     uint out0;
106     QMetaObject::invokeMethod(parent(), "GetStatus", Q_RETURN_ARG(uint, out0));
107     return out0;
108 }
109
110 void ConnectionAdaptor::HoldHandles(uint handle_type, const QList<uint> &handles)
111 {
112     // handle method call org.freedesktop.Telepathy.Connection.HoldHandles
113     QMetaObject::invokeMethod(parent(), "HoldHandles", Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
114 }
115
116 QStringList ConnectionAdaptor::InspectHandles(uint handle_type, const QList<uint> &handles)
117 {
118     // handle method call org.freedesktop.Telepathy.Connection.InspectHandles
119     QStringList out0;
120     QMetaObject::invokeMethod(parent(), "InspectHandles", Q_RETURN_ARG(QStringList, out0), Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
121     return out0;
122 }
123
124 org::freedesktop::Telepathy::ChannelInfoList ConnectionAdaptor::ListChannels()
125 {
126     // handle method call org.freedesktop.Telepathy.Connection.ListChannels
127     org::freedesktop::Telepathy::ChannelInfoList out0;
128     QMetaObject::invokeMethod(parent(), "ListChannels", Q_RETURN_ARG(org::freedesktop::Telepathy::ChannelInfoList, out0));
129     return out0;
130 }
131
132 void ConnectionAdaptor::ReleaseHandles(uint handle_type, const QList<uint> &handles)
133 {
134     // handle method call org.freedesktop.Telepathy.Connection.ReleaseHandles
135     QMetaObject::invokeMethod(parent(), "ReleaseHandles", Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
136 }
137
138 void ConnectionAdaptor::RemoveClientInterest(const QStringList &tokens)
139 {
140     // handle method call org.freedesktop.Telepathy.Connection.RemoveClientInterest
141     QMetaObject::invokeMethod(parent(), "RemoveClientInterest", Q_ARG(QStringList, tokens));
142 }
143
144 QDBusObjectPath ConnectionAdaptor::RequestChannel(const QString &type, uint handle_type, uint handle, bool suppress_handler)
145 {
146     // handle method call org.freedesktop.Telepathy.Connection.RequestChannel
147     QDBusObjectPath out0;
148     QMetaObject::invokeMethod(parent(), "RequestChannel", Q_RETURN_ARG(QDBusObjectPath, out0), Q_ARG(QString, type), Q_ARG(uint, handle_type), Q_ARG(uint, handle), Q_ARG(bool, suppress_handler));
149     return out0;
150 }
151
152 QList<uint> ConnectionAdaptor::RequestHandles(uint handle_type, const QStringList &names)
153 {
154     // handle method call org.freedesktop.Telepathy.Connection.RequestHandles
155     QList<uint> out0;
156     QMetaObject::invokeMethod(parent(), "RequestHandles", Q_RETURN_ARG(QList<uint>, out0), Q_ARG(uint, handle_type), Q_ARG(QStringList, names));
157     return out0;
158 }
159