/*
 * This file was generated by dbusxml2cpp version 0.6
 * Command line was: dbusxml2cpp -i QtTelepathy/Common/BaseTypes -a include/QtTelepathy/Core/connectioninterfaceavatarsadaptor.h: xml/tp-conn-iface-avatars.xml
 *
 * dbusxml2cpp is Copyright (C) 2006 Trolltech ASA. All rights reserved.
 *
 * This is an auto-generated file.
 * This file may have been hand-edited. Look for HAND-EDIT comments
 * before re-generating it.
 */

#ifndef CONNECTIONINTERFACEAVATARSADAPTOR_H_1172489892
#define CONNECTIONINTERFACEAVATARSADAPTOR_H_1172489892

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "QtTelepathy/Common/BaseTypes"
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;

/*
 * Adaptor class for interface org.freedesktop.Telepathy.Connection.Interface.Avatars
 */
class AvatarsAdaptor: public QDBusAbstractAdaptor
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.freedesktop.Telepathy.Connection.Interface.Avatars")
    Q_CLASSINFO("D-Bus Introspection", ""
"  <interface name=\"org.freedesktop.Telepathy.Connection.Interface.Avatars\" >\n"
"    <method name=\"GetAvatarRequirements\" >\n"
"      <arg direction=\"out\" type=\"as\" name=\"mimetypes\" />\n"
"      <arg direction=\"out\" type=\"q\" name=\"min_width\" />\n"
"      <arg direction=\"out\" type=\"q\" name=\"min_height\" />\n"
"      <arg direction=\"out\" type=\"q\" name=\"max_width\" />\n"
"      <arg direction=\"out\" type=\"q\" name=\"max_height\" />\n"
"      <arg direction=\"out\" type=\"u\" name=\"max_size\" />\n"
"    </method>\n"
"    <method name=\"GetAvatarTokens\" >\n"
"      <annotation value=\"QList&lt;uint>\" name=\"com.trolltech.QtDBus.QtTypeName.In0\" />\n"
"      <arg direction=\"in\" type=\"au\" name=\"contacts\" />\n"
"      <arg direction=\"out\" type=\"as\" />\n"
"    </method>\n"
"    <method name=\"RequestAvatar\" >\n"
"      <arg direction=\"in\" type=\"u\" name=\"contact\" />\n"
"      <arg direction=\"out\" type=\"ay\" name=\"data\" />\n"
"      <arg direction=\"out\" type=\"s\" name=\"mimetype\" />\n"
"    </method>\n"
"    <method name=\"SetAvatar\" >\n"
"      <arg direction=\"in\" type=\"ay\" name=\"data\" />\n"
"      <arg direction=\"in\" type=\"s\" name=\"mimetype\" />\n"
"      <arg direction=\"out\" type=\"s\" />\n"
"    </method>\n"
"    <signal name=\"AvatarUpdated\" >\n"
"      <arg type=\"u\" name=\"contact\" />\n"
"      <arg type=\"s\" name=\"new_avatar_token\" />\n"
"    </signal>\n"
"  </interface>\n"
        "")
public:
    AvatarsAdaptor(QObject *parent);
    virtual ~AvatarsAdaptor();

public: // PROPERTIES
public Q_SLOTS: // METHODS
    QStringList GetAvatarRequirements(ushort &min_width, ushort &min_height, ushort &max_width, ushort &max_height, uint &max_size);
    QStringList GetAvatarTokens(const QList<uint> &contacts);
    QByteArray RequestAvatar(uint contact, QString &mimetype);
    QString SetAvatar(const QByteArray &data, const QString &mimetype);
Q_SIGNALS: // SIGNALS
    void AvatarUpdated(uint contact, const QString &new_avatar_token);
};

#endif
