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 * Do not edit! All changes made to it will be lost.
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>
21 * Implementation of adaptor class ConnectionAdaptor
24 ConnectionAdaptor::ConnectionAdaptor(QObject *parent)
25 : QDBusAbstractAdaptor(parent)
28 setAutoRelaySignals(true);
31 ConnectionAdaptor::~ConnectionAdaptor()
36 bool ConnectionAdaptor::hasImmortalHandles() const
38 // get the value of property HasImmortalHandles
39 return qvariant_cast< bool >(parent()->property("HasImmortalHandles"));
42 QStringList ConnectionAdaptor::interfaces() const
44 // get the value of property Interfaces
45 return qvariant_cast< QStringList >(parent()->property("Interfaces"));
48 uint ConnectionAdaptor::selfHandle() const
50 // get the value of property SelfHandle
51 return qvariant_cast< uint >(parent()->property("SelfHandle"));
54 uint ConnectionAdaptor::status() const
56 // get the value of property Status
57 return qvariant_cast< uint >(parent()->property("Status"));
60 void ConnectionAdaptor::AddClientInterest(const QStringList &tokens)
62 // handle method call org.freedesktop.Telepathy.Connection.AddClientInterest
63 QMetaObject::invokeMethod(parent(), "AddClientInterest", Q_ARG(QStringList, tokens));
66 void ConnectionAdaptor::Connect()
68 // handle method call org.freedesktop.Telepathy.Connection.Connect
69 QMetaObject::invokeMethod(parent(), "Connect");
72 void ConnectionAdaptor::Disconnect()
74 // handle method call org.freedesktop.Telepathy.Connection.Disconnect
75 QMetaObject::invokeMethod(parent(), "Disconnect");
78 QStringList ConnectionAdaptor::GetInterfaces()
80 // handle method call org.freedesktop.Telepathy.Connection.GetInterfaces
82 QMetaObject::invokeMethod(parent(), "GetInterfaces", Q_RETURN_ARG(QStringList, out0));
86 QString ConnectionAdaptor::GetProtocol()
88 // handle method call org.freedesktop.Telepathy.Connection.GetProtocol
90 QMetaObject::invokeMethod(parent(), "GetProtocol", Q_RETURN_ARG(QString, out0));
94 uint ConnectionAdaptor::GetSelfHandle()
96 // handle method call org.freedesktop.Telepathy.Connection.GetSelfHandle
98 QMetaObject::invokeMethod(parent(), "GetSelfHandle", Q_RETURN_ARG(uint, out0));
102 uint ConnectionAdaptor::GetStatus()
104 // handle method call org.freedesktop.Telepathy.Connection.GetStatus
106 QMetaObject::invokeMethod(parent(), "GetStatus", Q_RETURN_ARG(uint, out0));
110 void ConnectionAdaptor::HoldHandles(uint handle_type, const QList<uint> &handles)
112 // handle method call org.freedesktop.Telepathy.Connection.HoldHandles
113 QMetaObject::invokeMethod(parent(), "HoldHandles", Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
116 QStringList ConnectionAdaptor::InspectHandles(uint handle_type, const QList<uint> &handles)
118 // handle method call org.freedesktop.Telepathy.Connection.InspectHandles
120 QMetaObject::invokeMethod(parent(), "InspectHandles", Q_RETURN_ARG(QStringList, out0), Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
124 org::freedesktop::Telepathy::ChannelInfoList ConnectionAdaptor::ListChannels()
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));
132 void ConnectionAdaptor::ReleaseHandles(uint handle_type, const QList<uint> &handles)
134 // handle method call org.freedesktop.Telepathy.Connection.ReleaseHandles
135 QMetaObject::invokeMethod(parent(), "ReleaseHandles", Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
138 void ConnectionAdaptor::RemoveClientInterest(const QStringList &tokens)
140 // handle method call org.freedesktop.Telepathy.Connection.RemoveClientInterest
141 QMetaObject::invokeMethod(parent(), "RemoveClientInterest", Q_ARG(QStringList, tokens));
144 QDBusObjectPath ConnectionAdaptor::RequestChannel(const QString &type, uint handle_type, uint handle, bool suppress_handler)
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));
152 QList<uint> ConnectionAdaptor::RequestHandles(uint handle_type, const QStringList &names)
154 // handle method call org.freedesktop.Telepathy.Connection.RequestHandles
156 QMetaObject::invokeMethod(parent(), "RequestHandles", Q_RETURN_ARG(QList<uint>, out0), Q_ARG(uint, handle_type), Q_ARG(QStringList, names));