/*
 * This file was generated by dbusxml2cpp version 0.6
 * Command line was: dbusxml2cpp -i QtTelepathy/BaseTypes -i QtTelepathy/ConnectionManagerTypes -p connectionmanager.h: ../../xml/tp-connmgr.xml
 *
 * dbusxml2cpp is Copyright (C) 2006 Trolltech AS. All rights reserved.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef CONNECTIONMANAGER_H_1159380630
#define CONNECTIONMANAGER_H_1159380630

#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>
#include <QtDBus/QtDBus>
#include "QtTelepathy/Common/BaseTypes"
#include "QtTelepathy/Common/ConnectionManagerTypes"

/*
 * Proxy class for interface org.freedesktop.Telepathy.ConnectionManager
 */
class OrgFreedesktopTelepathyConnectionManagerInterface: public QDBusAbstractInterface
{
    Q_OBJECT
public:
    static inline const char *staticInterfaceName()
    { return "org.freedesktop.Telepathy.ConnectionManager"; }

public:
    OrgFreedesktopTelepathyConnectionManagerInterface(const QString &service, const QString &path, const QDBusConnection &connection, QObject *parent = 0);

    ~OrgFreedesktopTelepathyConnectionManagerInterface();

public Q_SLOTS: // METHODS
    inline QDBusReply<org::freedesktop::Telepathy::ParameterDefinitionList> GetParameters(const QString &proto)
    {
        QList<QVariant> argumentList;
        argumentList << qVariantFromValue(proto);
        return callWithArgumentList(QDBus::Block, QLatin1String("GetParameters"), argumentList);
    }

    inline QDBusReply<QStringList> ListProtocols()
    {
        QList<QVariant> argumentList;
        return callWithArgumentList(QDBus::Block, QLatin1String("ListProtocols"), argumentList);
    }

    inline QDBusReply<QString> RequestConnection(const QString &proto, QVariantMap parameters, QDBusObjectPath &object_path)
    {
        QList<QVariant> argumentList;
        argumentList << qVariantFromValue(proto) << qVariantFromValue(parameters);
        QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("RequestConnection"), argumentList);
        if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) {
            object_path = qdbus_cast<QDBusObjectPath>(reply.arguments().at(1));
        }
        return reply;
    }

Q_SIGNALS: // SIGNALS
    void NewConnection(const QString &bus_name, const QDBusObjectPath &object_path, const QString &proto);
};

namespace org {
  namespace freedesktop {
    namespace Telepathy {
      typedef ::OrgFreedesktopTelepathyConnectionManagerInterface ConnectionManager;
    }
  }
}
#endif
