X-Git-Url: http://git.maemo.org/git/?p=vicar;a=blobdiff_plain;f=src%2Fvicar-telepathy%2Fcpp%2Fconnectionadaptor.cpp;fp=src%2Fvicar-telepathy%2Fcpp%2Fconnectionadaptor.cpp;h=f0da7c531c228b6ec51e77a8cde097ed6609eafc;hp=0000000000000000000000000000000000000000;hb=38440679f13b8dc528a9aff93cbf4935011fdb22;hpb=89f0017e6a73945ea83247472a6fa07d6ee536b5 diff --git a/src/vicar-telepathy/cpp/connectionadaptor.cpp b/src/vicar-telepathy/cpp/connectionadaptor.cpp new file mode 100644 index 0000000..f0da7c5 --- /dev/null +++ b/src/vicar-telepathy/cpp/connectionadaptor.cpp @@ -0,0 +1,159 @@ +/* + * This file was generated by qdbusxml2cpp version 0.7 + * Command line was: qdbusxml2cpp -i vicar-telepathy/cpp/connectiontypes.h -c ConnectionAdaptor -a connectionadaptor.h:connectionadaptor.cpp data/xml/org.freedesktop.Telepathy.Connection.xml + * + * qdbusxml2cpp is Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies). + * + * This is an auto-generated file. + * Do not edit! All changes made to it will be lost. + */ + +#include "connectionadaptor.h" +#include +#include +#include +#include +#include +#include +#include + +/* + * Implementation of adaptor class ConnectionAdaptor + */ + +ConnectionAdaptor::ConnectionAdaptor(QObject *parent) + : QDBusAbstractAdaptor(parent) +{ + // constructor + setAutoRelaySignals(true); +} + +ConnectionAdaptor::~ConnectionAdaptor() +{ + // destructor +} + +bool ConnectionAdaptor::hasImmortalHandles() const +{ + // get the value of property HasImmortalHandles + return qvariant_cast< bool >(parent()->property("HasImmortalHandles")); +} + +QStringList ConnectionAdaptor::interfaces() const +{ + // get the value of property Interfaces + return qvariant_cast< QStringList >(parent()->property("Interfaces")); +} + +uint ConnectionAdaptor::selfHandle() const +{ + // get the value of property SelfHandle + return qvariant_cast< uint >(parent()->property("SelfHandle")); +} + +uint ConnectionAdaptor::status() const +{ + // get the value of property Status + return qvariant_cast< uint >(parent()->property("Status")); +} + +void ConnectionAdaptor::AddClientInterest(const QStringList &tokens) +{ + // handle method call org.freedesktop.Telepathy.Connection.AddClientInterest + QMetaObject::invokeMethod(parent(), "AddClientInterest", Q_ARG(QStringList, tokens)); +} + +void ConnectionAdaptor::Connect() +{ + // handle method call org.freedesktop.Telepathy.Connection.Connect + QMetaObject::invokeMethod(parent(), "Connect"); +} + +void ConnectionAdaptor::Disconnect() +{ + // handle method call org.freedesktop.Telepathy.Connection.Disconnect + QMetaObject::invokeMethod(parent(), "Disconnect"); +} + +QStringList ConnectionAdaptor::GetInterfaces() +{ + // handle method call org.freedesktop.Telepathy.Connection.GetInterfaces + QStringList out0; + QMetaObject::invokeMethod(parent(), "GetInterfaces", Q_RETURN_ARG(QStringList, out0)); + return out0; +} + +QString ConnectionAdaptor::GetProtocol() +{ + // handle method call org.freedesktop.Telepathy.Connection.GetProtocol + QString out0; + QMetaObject::invokeMethod(parent(), "GetProtocol", Q_RETURN_ARG(QString, out0)); + return out0; +} + +uint ConnectionAdaptor::GetSelfHandle() +{ + // handle method call org.freedesktop.Telepathy.Connection.GetSelfHandle + uint out0; + QMetaObject::invokeMethod(parent(), "GetSelfHandle", Q_RETURN_ARG(uint, out0)); + return out0; +} + +uint ConnectionAdaptor::GetStatus() +{ + // handle method call org.freedesktop.Telepathy.Connection.GetStatus + uint out0; + QMetaObject::invokeMethod(parent(), "GetStatus", Q_RETURN_ARG(uint, out0)); + return out0; +} + +void ConnectionAdaptor::HoldHandles(uint handle_type, const QList &handles) +{ + // handle method call org.freedesktop.Telepathy.Connection.HoldHandles + QMetaObject::invokeMethod(parent(), "HoldHandles", Q_ARG(uint, handle_type), Q_ARG(QList, handles)); +} + +QStringList ConnectionAdaptor::InspectHandles(uint handle_type, const QList &handles) +{ + // handle method call org.freedesktop.Telepathy.Connection.InspectHandles + QStringList out0; + QMetaObject::invokeMethod(parent(), "InspectHandles", Q_RETURN_ARG(QStringList, out0), Q_ARG(uint, handle_type), Q_ARG(QList, handles)); + return out0; +} + +org::freedesktop::Telepathy::ChannelInfoList ConnectionAdaptor::ListChannels() +{ + // handle method call org.freedesktop.Telepathy.Connection.ListChannels + org::freedesktop::Telepathy::ChannelInfoList out0; + QMetaObject::invokeMethod(parent(), "ListChannels", Q_RETURN_ARG(org::freedesktop::Telepathy::ChannelInfoList, out0)); + return out0; +} + +void ConnectionAdaptor::ReleaseHandles(uint handle_type, const QList &handles) +{ + // handle method call org.freedesktop.Telepathy.Connection.ReleaseHandles + QMetaObject::invokeMethod(parent(), "ReleaseHandles", Q_ARG(uint, handle_type), Q_ARG(QList, handles)); +} + +void ConnectionAdaptor::RemoveClientInterest(const QStringList &tokens) +{ + // handle method call org.freedesktop.Telepathy.Connection.RemoveClientInterest + QMetaObject::invokeMethod(parent(), "RemoveClientInterest", Q_ARG(QStringList, tokens)); +} + +QDBusObjectPath ConnectionAdaptor::RequestChannel(const QString &type, uint handle_type, uint handle, bool suppress_handler) +{ + // handle method call org.freedesktop.Telepathy.Connection.RequestChannel + QDBusObjectPath out0; + 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)); + return out0; +} + +QList ConnectionAdaptor::RequestHandles(uint handle_type, const QStringList &names) +{ + // handle method call org.freedesktop.Telepathy.Connection.RequestHandles + QList out0; + QMetaObject::invokeMethod(parent(), "RequestHandles", Q_RETURN_ARG(QList, out0), Q_ARG(uint, handle_type), Q_ARG(QStringList, names)); + return out0; +} +