/*
 * 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/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 __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)
    inline bool autoOpen()
    { return qvariant_cast< bool >(internalPropGet("AutoOpen", &m_AutoOpen)); }

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<> EnableAutoOpen(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(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 QDBusPendingReply<> SetDefaultApp(const QString &in0, const QString &in1)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0) << QVariant::fromValue(in1);
        return asyncCallWithArgumentList(QStringLiteral("SetDefaultApp"), argumentList);
    }

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

// begin private slots
private Q_SLOTS:
    void onPropertyChanged(const QString &propName, const QVariant &value);

// begin private member vaiables
private:
    bool m_AutoOpen;
};

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