/*
 * This file was generated by dbusxml2cpp version 0.6
 * Command line was: dbusxml2cpp -i QtTelepathy/BaseTypes -i QtTelepathy/ChannelTextTypes -p channeltext.h: ../../xml/tp-chan-type-text.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 CHANNELTEXT_H_1159380630
#define CHANNELTEXT_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/ChannelTextTypes"

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

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

    ~OrgFreedesktopTelepathyChannelTypeTextInterface();

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

    inline QDBusReply<org::freedesktop::Telepathy::TextMessageTypeList> GetMessageTypes()
    {
        QList<QVariant> argumentList;
        return callWithArgumentList(QDBus::Block, QLatin1String("GetMessageTypes"), argumentList);
    }

    inline QDBusReply<org::freedesktop::Telepathy::TextMessageInfoList> ListPendingMessages(bool clear)
    {
        QList<QVariant> argumentList;
        argumentList << qVariantFromValue(clear);
        return callWithArgumentList(QDBus::Block, QLatin1String("ListPendingMessages"), argumentList);
    }

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

Q_SIGNALS: // SIGNALS
    void LostMessage();
    void Received(uint id, uint timestamp, uint sender, uint type, uint flags, const QString &text);
    void SendError(uint error, uint timestamp, uint type, const QString &text);
    void Sent(uint timestamp, uint type, const QString &text);
};

namespace org {
  namespace freedesktop {
    namespace Telepathy {
          typedef ::OrgFreedesktopTelepathyChannelTypeTextInterface ChannelText;
    }
  }
}
#endif
