Release 0.5-1 contains (Muti-profile support, Contacts Integration)
[vicar] / src / vicar-telepathy / src / connectionadaptor.cpp
1 /*
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
4  *
5  * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
6  *
7  * This is an auto-generated file.
8  * Do not edit! All changes made to it will be lost.
9  */
10
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>
21
22 /*
23  * Implementation of adaptor class ConnectionAdaptor
24  */
25
26 ConnectionAdaptor::ConnectionAdaptor(QObject *parent)
27     : QDBusAbstractAdaptor(parent)
28 {
29     // constructor
30     setAutoRelaySignals(true);
31 }
32
33 ConnectionAdaptor::~ConnectionAdaptor()
34 {
35     // destructor
36 }
37
38 QStringList ConnectionAdaptor::Interfaces() const
39 {
40     // get the value of property Interfaces
41     return qvariant_cast< QStringList >(parent()->property("Interfaces"));
42 }
43
44 void ConnectionAdaptor::Connect()
45 {
46     // handle method call org.freedesktop.Telepathy.Connection.Connect
47     QMetaObject::invokeMethod(parent(), "Connect");
48 }
49
50 void ConnectionAdaptor::Disconnect()
51 {
52     // handle method call org.freedesktop.Telepathy.Connection.Disconnect
53     QMetaObject::invokeMethod(parent(), "Disconnect");
54 }
55
56 QStringList ConnectionAdaptor::GetInterfaces()
57 {
58     // handle method call org.freedesktop.Telepathy.Connection.GetInterfaces
59     QStringList out0;
60     QMetaObject::invokeMethod(parent(), "GetInterfaces", Q_RETURN_ARG(QStringList, out0));
61     return out0;
62 }
63
64 QString ConnectionAdaptor::GetProtocol()
65 {
66     // handle method call org.freedesktop.Telepathy.Connection.GetProtocol
67     QString out0;
68     QMetaObject::invokeMethod(parent(), "GetProtocol", Q_RETURN_ARG(QString, out0));
69     return out0;
70 }
71
72 uint ConnectionAdaptor::GetSelfHandle()
73 {
74     // handle method call org.freedesktop.Telepathy.Connection.GetSelfHandle
75     uint out0;
76     QMetaObject::invokeMethod(parent(), "GetSelfHandle", Q_RETURN_ARG(uint, out0));
77     return out0;
78 }
79
80 uint ConnectionAdaptor::GetStatus()
81 {
82     // handle method call org.freedesktop.Telepathy.Connection.GetStatus
83     uint out0;
84     QMetaObject::invokeMethod(parent(), "GetStatus", Q_RETURN_ARG(uint, out0));
85     return out0;
86 }
87
88 void ConnectionAdaptor::HoldHandles(uint handle_type, const QList<uint> &handles)
89 {
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));
93 }
94
95 QStringList ConnectionAdaptor::InspectHandles(uint handle_type, const QList<uint> &handles)
96 {
97     // handle method call org.freedesktop.Telepathy.Connection.InspectHandles
98     QStringList out0;
99     QMetaObject::invokeMethod(parent(), "InspectHandles", Q_RETURN_ARG(QStringList, out0), Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
100     return out0;
101 }
102
103 org::freedesktop::Telepathy::ChannelInfoList ConnectionAdaptor::ListChannels()
104 {
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));
108     return out0;
109 }
110
111 void ConnectionAdaptor::ReleaseHandles(uint handle_type, const QList<uint> &handles)
112 {
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));
116 }
117
118 QDBusObjectPath ConnectionAdaptor::RequestChannel(const QString &type, uint handle_type, uint handle, bool suppress_handler)
119 {
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));
123     return out0;
124 }
125
126 QList<uint> ConnectionAdaptor::RequestHandles(uint handle_type, const QStringList &names)
127 {
128     // handle method call org.freedesktop.Telepathy.Connection.RequestHandles
129     QList<uint> out0;
130     QMetaObject::invokeMethod(parent(), "RequestHandles", Q_RETURN_ARG(QList<uint>, out0), Q_ARG(uint, handle_type), Q_ARG(QStringList, names));
131     return out0;
132 }
133