/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Grub2 -p generated/com_deepin_daemon_grub2 /build/deepin-qt-dbus-factory/src/dde-qt-dbus-factory-0.4.2.20180301/xml/com.deepin.daemon.Grub2.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_GRUB2_H
#define COM_DEEPIN_DAEMON_GRUB2_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.Grub2
 */
class __Grub2Private;
class __Grub2 : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__Grub2();

    Q_PROPERTY(QString DefaultEntry READ defaultEntry NOTIFY DefaultEntryChanged)
    QString defaultEntry();

    Q_PROPERTY(bool EnableTheme READ enableTheme NOTIFY EnableThemeChanged)
    bool enableTheme();

    Q_PROPERTY(QString Resolution READ resolution NOTIFY ResolutionChanged)
    QString resolution();

    Q_PROPERTY(uint Timeout READ timeout NOTIFY TimeoutChanged)
    uint timeout();

    Q_PROPERTY(bool Updating READ updating NOTIFY UpdatingChanged)
    bool updating();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<QString> GetAvailableResolutions()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("GetAvailableResolutions"), argumentList);
    }



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



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

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

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


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

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

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


    inline QDBusPendingReply<> SetEnableTheme(bool in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("SetEnableTheme"), argumentList);
    }

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

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


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

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

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


    inline QDBusPendingReply<> SetTimeout(uint in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("SetTimeout"), argumentList);
    }

    inline void SetTimeoutQueued(uint in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void DefaultEntryChanged(const QString & value) const;
    void EnableThemeChanged(bool  value) const;
    void ResolutionChanged(const QString & value) const;
    void TimeoutChanged(uint  value) const;
    void UpdatingChanged(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:
    __Grub2Private *d_ptr;
};

namespace com {
  namespace deepin {
    namespace daemon {
      typedef ::__Grub2 Grub2;
    }
  }
}
#endif
