/*
 * This file was generated by dbusxml2cpp version 0.6
 * Command line was: dbusxml2cpp -i QtTelepathy/BaseTypes -i QtTelepathy/ChannelGroupInterface -p channelgroupinterface.h: ../../xml/tp-chan-iface-group.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 CHANNELGROUPINTERFACE_H_1159380630
#define CHANNELGROUPINTERFACE_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/Client/ChannelGroupInterface"

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

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

    ~OrgFreedesktopTelepathyChannelInterfaceGroupInterface();

public Q_SLOTS: // METHODS
    inline QDBusReply<void> AddMembers(const QList<uint> &contacts, const QString &message)
    {
        QList<QVariant> argumentList;
        argumentList << qVariantFromValue(contacts) << qVariantFromValue(message);
        return callWithArgumentList(QDBus::Block, QLatin1String("AddMembers"), argumentList);
    }

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

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

    inline QDBusReply<QList<uint> > GetHandleOwners(const QList<uint> &handles)
    {
        QList<QVariant> argumentList;
        argumentList << qVariantFromValue(handles);
        return callWithArgumentList(QDBus::Block, QLatin1String("GetHandleOwners"), argumentList);
    }

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

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

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

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

    inline QDBusReply<void> RemoveMembers(const QList<uint> &contacts, const QString &message)
    {
        QList<QVariant> argumentList;
        argumentList << qVariantFromValue(contacts) << qVariantFromValue(message);
        return callWithArgumentList(QDBus::Block, QLatin1String("RemoveMembers"), argumentList);
    }

Q_SIGNALS: // SIGNALS
    void GroupFlagsChanged(uint added, uint removed);
    void MembersChanged(const QString &message, const QList<uint> &added, const QList<uint> &removed, const QList<uint> &local_pending, const QList<uint> &remote_pending, uint actor, uint reason);
};

namespace org {
  namespace freedesktop {
    namespace Telepathy {
          typedef ::OrgFreedesktopTelepathyChannelInterfaceGroupInterface ChannelGroupInterface;
    }
  }
}
#endif
