2 * This file was generated by dbusxml2cpp version 0.6
3 * Command line was: dbusxml2cpp -i QtTelepathy/Core/ConnectionAdaptor -i QtTelepathy/Common/ConnectionTypes -a :src/Core/connectionadaptor.cpp xml/tp-conn.xml
5 * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
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 "connectiontypes.h"
13 #include <QtCore/QMetaObject>
14 #include <QtCore/QByteArray>
15 #include <QtCore/QList>
16 #include <QtCore/QMap>
17 #include <QtCore/QString>
18 #include <QtCore/QStringList>
19 #include <QtCore/QVariant>
20 #include <QtCore/QDebug>
23 * Implementation of adaptor class ConnectionAdaptor
26 ConnectionAdaptor::ConnectionAdaptor(QObject *parent)
27 : QDBusAbstractAdaptor(parent)
30 setAutoRelaySignals(true);
33 ConnectionAdaptor::~ConnectionAdaptor()
38 QStringList ConnectionAdaptor::Interfaces() const
40 // get the value of property Interfaces
41 return qvariant_cast< QStringList >(parent()->property("Interfaces"));
44 void ConnectionAdaptor::Connect()
46 // handle method call org.freedesktop.Telepathy.Connection.Connect
47 QMetaObject::invokeMethod(parent(), "Connect");
50 void ConnectionAdaptor::Disconnect()
52 // handle method call org.freedesktop.Telepathy.Connection.Disconnect
53 QMetaObject::invokeMethod(parent(), "Disconnect");
56 QStringList ConnectionAdaptor::GetInterfaces()
58 // handle method call org.freedesktop.Telepathy.Connection.GetInterfaces
60 QMetaObject::invokeMethod(parent(), "GetInterfaces", Q_RETURN_ARG(QStringList, out0));
64 QString ConnectionAdaptor::GetProtocol()
66 // handle method call org.freedesktop.Telepathy.Connection.GetProtocol
68 QMetaObject::invokeMethod(parent(), "GetProtocol", Q_RETURN_ARG(QString, out0));
72 uint ConnectionAdaptor::GetSelfHandle()
74 // handle method call org.freedesktop.Telepathy.Connection.GetSelfHandle
76 QMetaObject::invokeMethod(parent(), "GetSelfHandle", Q_RETURN_ARG(uint, out0));
80 uint ConnectionAdaptor::GetStatus()
82 // handle method call org.freedesktop.Telepathy.Connection.GetStatus
84 QMetaObject::invokeMethod(parent(), "GetStatus", Q_RETURN_ARG(uint, out0));
88 void ConnectionAdaptor::HoldHandles(uint handle_type, const QList<uint> &handles)
90 qDebug() << "HoldHandles called from external!" << handles;
91 // handle method call org.freedesktop.Telepathy.Connection.HoldHandles
92 QMetaObject::invokeMethod(parent(), "HoldHandles", Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
95 QStringList ConnectionAdaptor::InspectHandles(uint handle_type, const QList<uint> &handles)
97 // handle method call org.freedesktop.Telepathy.Connection.InspectHandles
99 QMetaObject::invokeMethod(parent(), "InspectHandles", Q_RETURN_ARG(QStringList, out0), Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
103 org::freedesktop::Telepathy::ChannelInfoList ConnectionAdaptor::ListChannels()
105 // handle method call org.freedesktop.Telepathy.Connection.ListChannels
106 org::freedesktop::Telepathy::ChannelInfoList out0;
107 QMetaObject::invokeMethod(parent(), "ListChannels", Q_RETURN_ARG(org::freedesktop::Telepathy::ChannelInfoList, out0));
111 void ConnectionAdaptor::ReleaseHandles(uint handle_type, const QList<uint> &handles)
113 qDebug() << "ReleaseHandles called from external!" << handles;
114 // handle method call org.freedesktop.Telepathy.Connection.ReleaseHandles
115 QMetaObject::invokeMethod(parent(), "ReleaseHandles", Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
118 QDBusObjectPath ConnectionAdaptor::RequestChannel(const QString &type, uint handle_type, uint handle, bool suppress_handler)
120 // handle method call org.freedesktop.Telepathy.Connection.RequestChannel
121 QDBusObjectPath out0;
122 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));
126 QList<uint> ConnectionAdaptor::RequestHandles(uint handle_type, const QStringList &names)
128 // handle method call org.freedesktop.Telepathy.Connection.RequestHandles
130 QMetaObject::invokeMethod(parent(), "RequestHandles", Q_RETURN_ARG(QList<uint>, out0), Q_ARG(uint, handle_type), Q_ARG(QStringList, names));