Adding new postinst
[vicar] / src / vicar-telepathy / cpp / connectioninterfacerequestsadaptor.cpp
1 /*
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
4  *
5  * qdbusxml2cpp is Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies).
6  *
7  * This is an auto-generated file.
8  * Do not edit! All changes made to it will be lost.
9  */
10
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>
21 #include <QDebug>
22
23 /*
24  * Implementation of adaptor class ConnectionInterfaceRequestsAdaptor
25  */
26
27 ConnectionInterfaceRequestsAdaptor::ConnectionInterfaceRequestsAdaptor(QObject *parent)
28     : QDBusAbstractAdaptor(parent)
29 {
30     // constructor
31     setAutoRelaySignals(true);
32 }
33
34 ConnectionInterfaceRequestsAdaptor::~ConnectionInterfaceRequestsAdaptor()
35 {
36     // destructor
37 }
38
39 org::freedesktop::Telepathy::ChannelDetailsList ConnectionInterfaceRequestsAdaptor::channels() const
40 {
41     // get the value of property Channels
42     return qvariant_cast< org::freedesktop::Telepathy::ChannelDetailsList >(parent()->property("Channels"));
43 }
44
45 org::freedesktop::Telepathy::RequestableChannelClassList ConnectionInterfaceRequestsAdaptor::requestableChannelClasses() const
46 {
47     // get the value of property RequestableChannelClasses
48     return qvariant_cast< org::freedesktop::Telepathy::RequestableChannelClassList >(parent()->property("RequestableChannelClasses"));
49 }
50
51 QDBusObjectPath ConnectionInterfaceRequestsAdaptor::CreateChannel(const QVariantMap &request, QVariantMap &channel_properties)
52 {
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);
56 }
57
58 bool ConnectionInterfaceRequestsAdaptor::EnsureChannel(const QVariantMap &request, QDBusObjectPath &channel_object, QVariantMap &channel_properties)
59 {
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);
63 }
64