/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Mime -p generated/com_deepin_daemon_mime ../xml/com.deepin.daemon.Mime.xml
 *
 * qdbusxml2cpp-fix is Copyright (C) 2016 Deepin Technology Co., Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#ifndef COM_DEEPIN_DAEMON_MIME_H
#define COM_DEEPIN_DAEMON_MIME_H

#include <QtCore/QObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

#include <DBusExtendedAbstractInterface>
#include <QtDBus/QtDBus>


/*
 * Proxy class for interface com.deepin.daemon.Mime
 */
class __MimePrivate;
class __Mime : public DBusExtendedAbstractInterface
{
    Q_OBJECT

public:
    static inline const char *staticInterfaceName()
    { return "com.deepin.daemon.Mime"; }

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

    ~__Mime();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<> AddUserApp(const QStringList &mimeTypes, const QString &desktopId)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeTypes) << QVariant::fromValue(desktopId);
        return asyncCallWithArgumentList(QStringLiteral("AddUserApp"), argumentList);
    }

    inline void AddUserAppQueued(const QStringList &mimeTypes, const QString &desktopId)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeTypes) << QVariant::fromValue(desktopId);

        CallQueued(QStringLiteral("AddUserApp"), argumentList);
    }


    inline QDBusPendingReply<> DeleteApp(const QStringList &mimeTypes, const QString &desktopId)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeTypes) << QVariant::fromValue(desktopId);
        return asyncCallWithArgumentList(QStringLiteral("DeleteApp"), argumentList);
    }

    inline void DeleteAppQueued(const QStringList &mimeTypes, const QString &desktopId)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeTypes) << QVariant::fromValue(desktopId);

        CallQueued(QStringLiteral("DeleteApp"), argumentList);
    }


    inline QDBusPendingReply<> DeleteUserApp(const QString &desktopId)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopId);
        return asyncCallWithArgumentList(QStringLiteral("DeleteUserApp"), argumentList);
    }

    inline void DeleteUserAppQueued(const QString &desktopId)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(desktopId);

        CallQueued(QStringLiteral("DeleteUserApp"), argumentList);
    }


    inline QDBusPendingReply<QString> GetDefaultApp(const QString &mimeType)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeType);
        return asyncCallWithArgumentList(QStringLiteral("GetDefaultApp"), argumentList);
    }



    inline QDBusPendingReply<QString> ListApps(const QString &mimeType)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeType);
        return asyncCallWithArgumentList(QStringLiteral("ListApps"), argumentList);
    }



    inline QDBusPendingReply<QString> ListUserApps(const QString &mimeType)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeType);
        return asyncCallWithArgumentList(QStringLiteral("ListUserApps"), argumentList);
    }



    inline QDBusPendingReply<> SetDefaultApp(const QStringList &mimeTypes, const QString &desktopId)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeTypes) << QVariant::fromValue(desktopId);
        return asyncCallWithArgumentList(QStringLiteral("SetDefaultApp"), argumentList);
    }

    inline void SetDefaultAppQueued(const QStringList &mimeTypes, const QString &desktopId)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(mimeTypes) << QVariant::fromValue(desktopId);

        CallQueued(QStringLiteral("SetDefaultApp"), argumentList);
    }



Q_SIGNALS: // SIGNALS
    void Change();
    // begin property changed signals

public Q_SLOTS:
    void CallQueued(const QString &callName, const QList<QVariant> &args);

private Q_SLOTS:
    void onPendingCallFinished(QDBusPendingCallWatcher *w);

private:
    __MimePrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace daemon {
      typedef ::__Mime Mime;
    }
  }
}
#endif
