X-Git-Url: http://git.maemo.org/git/?p=vicar;a=blobdiff_plain;f=src%2Fvicar-telepathy%2Fcpp%2Fconnectionadaptor.h;fp=src%2Fvicar-telepathy%2Fcpp%2Fconnectionadaptor.h;h=8cb7abbf9099c20421b6fc432cf283f4ceb2a680;hp=0000000000000000000000000000000000000000;hb=74800375ecf7f41e290cf7cc7fa9ee8b230be68e;hpb=89f0017e6a73945ea83247472a6fa07d6ee536b5 diff --git a/src/vicar-telepathy/cpp/connectionadaptor.h b/src/vicar-telepathy/cpp/connectionadaptor.h new file mode 100644 index 0000000..8cb7abb --- /dev/null +++ b/src/vicar-telepathy/cpp/connectionadaptor.h @@ -0,0 +1,151 @@ +/* + * 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. + * This file may have been hand-edited. Look for HAND-EDIT comments + * before re-generating it. + */ + +#ifndef CONNECTIONADAPTOR_H_1318911911 +#define CONNECTIONADAPTOR_H_1318911911 + +#include +#include +#include "connectiontypes.h" +class QByteArray; +template class QList; +template class QMap; +class QString; +class QStringList; +class QVariant; + +/* + * Adaptor class for interface org.freedesktop.Telepathy.Connection + */ +class ConnectionAdaptor: public QDBusAbstractAdaptor +{ + Q_OBJECT + Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Connection") + Q_CLASSINFO("D-Bus Introspection", "" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n" +" \n" +" \n" +" \n" +" \n" +" \" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \" name=\"com.trolltech.QtDBus.QtTypeName.In1\"/>\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \" name=\"com.trolltech.QtDBus.QtTypeName.Out0\"/>\n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" +" \n" + "") +public: + ConnectionAdaptor(QObject *parent); + virtual ~ConnectionAdaptor(); + +public: // PROPERTIES + Q_PROPERTY(bool HasImmortalHandles READ hasImmortalHandles) + bool hasImmortalHandles() const; + + Q_PROPERTY(QStringList Interfaces READ interfaces) + QStringList interfaces() const; + + Q_PROPERTY(uint SelfHandle READ selfHandle) + uint selfHandle() const; + + Q_PROPERTY(uint Status READ status) + uint status() const; + +public Q_SLOTS: // METHODS + void AddClientInterest(const QStringList &tokens); + void Connect(); + void Disconnect(); + QStringList GetInterfaces(); + QString GetProtocol(); + uint GetSelfHandle(); + uint GetStatus(); + void HoldHandles(uint handle_type, const QList &handles); + QStringList InspectHandles(uint handle_type, const QList &handles); + org::freedesktop::Telepathy::ChannelInfoList ListChannels(); + void ReleaseHandles(uint handle_type, const QList &handles); + void RemoveClientInterest(const QStringList &tokens); + QDBusObjectPath RequestChannel(const QString &type, uint handle_type, uint handle, bool suppress_handler); + QList RequestHandles(uint handle_type, const QStringList &names); +Q_SIGNALS: // SIGNALS + void ConnectionError(const QString &error, const QVariantMap &error_details); + void NewChannel(const QDBusObjectPath &object_path, const QString &channel_type, uint handle_type, uint handle, bool suppress_handler); + void SelfHandleChanged(uint in0); + void StatusChanged(uint status, uint reason); +}; + +#endif