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 "connectioninterfacerequestsadaptor.h"
12 #include "connectioninterfacerequeststypes.h"
13 #include "connection.h"
14 #include <QtCore/QMetaObject>
15 #include <QtCore/QByteArray>
16 #include <QtCore/QList>
17 #include <QtCore/QMap>
18 #include <QtCore/QString>
19 #include <QtCore/QStringList>
20 #include <QtCore/QVariant>
24 * Implementation of adaptor class ConnectionInterfaceRequestsAdaptor
27 ConnectionInterfaceRequestsAdaptor::ConnectionInterfaceRequestsAdaptor(QObject *parent)
28 : QDBusAbstractAdaptor(parent)
31 setAutoRelaySignals(true);
34 ConnectionInterfaceRequestsAdaptor::~ConnectionInterfaceRequestsAdaptor()
39 org::freedesktop::Telepathy::ChannelDetailsList ConnectionInterfaceRequestsAdaptor::channels() const
41 // get the value of property Channels
42 return qvariant_cast< org::freedesktop::Telepathy::ChannelDetailsList >(parent()->property("Channels"));
45 org::freedesktop::Telepathy::RequestableChannelClassList ConnectionInterfaceRequestsAdaptor::requestableChannelClasses() const
47 // get the value of property RequestableChannelClasses
48 return qvariant_cast< org::freedesktop::Telepathy::RequestableChannelClassList >(parent()->property("RequestableChannelClasses"));
51 QDBusObjectPath ConnectionInterfaceRequestsAdaptor::CreateChannel(const QVariantMap &request, QVariantMap &channel_properties)
53 // handle method call org.freedesktop.Telepathy.Connection.Interface.Requests.CreateChannel
54 //This method should return a Channel object path
55 return static_cast<Connection *>(parent())->CreateChannel(request, channel_properties);
58 bool ConnectionInterfaceRequestsAdaptor::EnsureChannel(const QVariantMap &request, QDBusObjectPath &channel_object, QVariantMap &channel_properties)
60 // handle method call org.freedesktop.Telepathy.Connection.Interface.Requests.EnsureChannel
61 //This method should return a Channel object path
62 return static_cast<Connection *>(parent())->EnsureChannel(request, channel_object, channel_properties);