2 * This file was generated by qdbusxml2cpp version 0.7
3 * Command line was: qdbusxml2cpp -i vicar-telepathy/cpp/connectioninterfacerequeststypes.h -c ConnectionInterfaceRequestsAdaptor -a connectioninterfacerequestsadaptor.h:connectioninterfacerequestsadaptor.cpp data/xml/org.freedesktop.Telepathy.Connection.I.Requests.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 "connection.h"
12 #include "connectioninterfacerequestsadaptor.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>
23 * Implementation of adaptor class ConnectionInterfaceRequestsAdaptor
26 ConnectionInterfaceRequestsAdaptor::ConnectionInterfaceRequestsAdaptor(QObject *parent)
27 : QDBusAbstractAdaptor(parent)
30 setAutoRelaySignals(true);
33 ConnectionInterfaceRequestsAdaptor::~ConnectionInterfaceRequestsAdaptor()
38 org::freedesktop::Telepathy::ChannelDetailsList ConnectionInterfaceRequestsAdaptor::channels() const
40 // get the value of property Channels
41 return qvariant_cast< org::freedesktop::Telepathy::ChannelDetailsList >(parent()->property("Channels"));
44 org::freedesktop::Telepathy::RequestableChannelClassList ConnectionInterfaceRequestsAdaptor::requestableChannelClasses() const
46 // get the value of property RequestableChannelClasses
47 return qvariant_cast< org::freedesktop::Telepathy::RequestableChannelClassList >(parent()->property("RequestableChannelClasses"));
50 QDBusObjectPath ConnectionInterfaceRequestsAdaptor::CreateChannel(const QVariantMap &request, QVariantMap &channel_properties)
52 // handle method call org.freedesktop.Telepathy.Connection.Interface.Requests.CreateChannel
53 //This method should return a Channel object path
54 return static_cast<Connection *>(parent())->CreateChannel(request, channel_properties);
57 bool ConnectionInterfaceRequestsAdaptor::EnsureChannel(const QVariantMap &request, QDBusObjectPath &channel_object, QVariantMap &channel_properties)
59 // handle method call org.freedesktop.Telepathy.Connection.Interface.Requests.EnsureChannel
60 //This method should return a Channel object path
61 return static_cast<Connection *>(parent())->EnsureChannel(request, channel_object, channel_properties);