Version 0.7-0
[vicar] / src / vicar-telepathy / cpp / connectionadaptor.cpp
diff --git a/src/vicar-telepathy/cpp/connectionadaptor.cpp b/src/vicar-telepathy/cpp/connectionadaptor.cpp
new file mode 100644 (file)
index 0000000..f0da7c5
--- /dev/null
@@ -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 <QtCore/QMetaObject>
+#include <QtCore/QByteArray>
+#include <QtCore/QList>
+#include <QtCore/QMap>
+#include <QtCore/QString>
+#include <QtCore/QStringList>
+#include <QtCore/QVariant>
+
+/*
+ * 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<uint> &handles)
+{
+    // handle method call org.freedesktop.Telepathy.Connection.HoldHandles
+    QMetaObject::invokeMethod(parent(), "HoldHandles", Q_ARG(uint, handle_type), Q_ARG(QList<uint>, handles));
+}
+
+QStringList ConnectionAdaptor::InspectHandles(uint handle_type, const QList<uint> &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<uint>, 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<uint> &handles)
+{
+    // handle method call org.freedesktop.Telepathy.Connection.ReleaseHandles
+    QMetaObject::invokeMethod(parent(), "ReleaseHandles", Q_ARG(uint, handle_type), Q_ARG(QList<uint>, 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<uint> ConnectionAdaptor::RequestHandles(uint handle_type, const QStringList &names)
+{
+    // handle method call org.freedesktop.Telepathy.Connection.RequestHandles
+    QList<uint> out0;
+    QMetaObject::invokeMethod(parent(), "RequestHandles", Q_RETURN_ARG(QList<uint>, out0), Q_ARG(uint, handle_type), Q_ARG(QStringList, names));
+    return out0;
+}
+