/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Media -p generated/com_deepin_daemon_mime_media /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-5.0.1/xml/com.deepin.daemon.Mime.Media.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_MEDIA_H
#define COM_DEEPIN_DAEMON_MIME_MEDIA_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.Media
 */
class __MediaPrivate;
class __Media : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__Media();

    Q_PROPERTY(bool AutoOpen READ autoOpen NOTIFY AutoOpenChanged)
    bool autoOpen();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<> EnableAutoOpen(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("EnableAutoOpen"), argumentList);
    }

    inline void EnableAutoOpenQueued(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);

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


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



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



    inline QDBusPendingReply<> Reset()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("Reset"), argumentList);
    }

    inline void ResetQueued()
    {
        QList<QVariant> argumentList;

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


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

    inline void SetDefaultAppQueued(const QString &in0, const QString &in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void AutoOpenChanged(bool  value) const;

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

private Q_SLOTS:
    void onPendingCallFinished(QDBusPendingCallWatcher *w);
    void onPropertyChanged(const QString &propName, const QVariant &value);

private:
    __MediaPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace daemon {
      namespace mime {
        typedef ::__Media Media;
      }
    }
  }
}
#endif
