/*
 * This file was generated by dbusxml2cpp version 0.6
 * Command line was: dbusxml2cpp -i QtTelepathy/BaseTypes -p channel.h: ../../xml/tp-chan.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 CHANNEL_H_1159380630
#define CHANNEL_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"

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

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

    ~OrgFreedesktopTelepathyChannelInterface();

public Q_SLOTS: // METHODS
    inline QDBusReply<void> Close()
    {
        QList<QVariant> argumentList;
        return callWithArgumentList(QDBus::Block, QLatin1String("Close"), argumentList);
    }

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

    inline QDBusReply<uint> GetHandle(uint &id)
    {
        QList<QVariant> argumentList;
        QDBusMessage reply = callWithArgumentList(QDBus::Block, QLatin1String("GetHandle"), argumentList);
        if (reply.type() == QDBusMessage::ReplyMessage && reply.arguments().count() == 2) {
            id = qdbus_cast<uint>(reply.arguments().at(1));
        }
        return reply;
    }

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

Q_SIGNALS: // SIGNALS
    void Closed();
};

namespace org {
  namespace freedesktop {
    namespace Telepathy {
      typedef ::OrgFreedesktopTelepathyChannelInterface Channel;
    }
  }
}
#endif
