/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Grub2 -p generated/com_deepin_daemon_grub2 ../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(QString Theme READ theme NOTIFY ThemeChanged)
    QString theme();

    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<QString> GetThemes()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("GetThemes"), 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 &entry)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(entry);
        return asyncCallWithArgumentList(QStringLiteral("SetDefaultEntry"), argumentList);
    }

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

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


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

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

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


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

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

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


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

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

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


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

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

        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 ThemeChanged(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
