/*
 * 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.2.1/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 __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)
    inline QString defaultEntry()
    { return qvariant_cast< QString >(internalPropGet("DefaultEntry", &m_DefaultEntry)); }

    Q_PROPERTY(bool EnableTheme READ enableTheme NOTIFY EnableThemeChanged)
    inline bool enableTheme()
    { return qvariant_cast< bool >(internalPropGet("EnableTheme", &m_EnableTheme)); }

    Q_PROPERTY(QString Resolution READ resolution NOTIFY ResolutionChanged)
    inline QString resolution()
    { return qvariant_cast< QString >(internalPropGet("Resolution", &m_Resolution)); }

    Q_PROPERTY(uint Timeout READ timeout NOTIFY TimeoutChanged)
    inline uint timeout()
    { return qvariant_cast< uint >(internalPropGet("Timeout", &m_Timeout)); }

    Q_PROPERTY(bool Updating READ updating NOTIFY UpdatingChanged)
    inline bool updating()
    { return qvariant_cast< bool >(internalPropGet("Updating", &m_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 QDBusPendingReply<> SetDefaultEntry(const QString &in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(QStringLiteral("SetDefaultEntry"), argumentList);
    }

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

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

    inline QDBusPendingReply<> SetTimeout(uint in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);
        return asyncCallWithArgumentList(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;

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

// begin private member vaiables
private:
    QString m_DefaultEntry;
    bool m_EnableTheme;
    QString m_Resolution;
    uint m_Timeout;
    bool m_Updating;
};

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