/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c EditAuthentication -p generated/com_deepin_daemon_grub2_editauthentication ../xml/com.deepin.daemon.Grub2.EditAuthentication.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_EDITAUTHENTICATION_H
#define COM_DEEPIN_DAEMON_GRUB2_EDITAUTHENTICATION_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.EditAuthentication
 */
class __EditAuthenticationPrivate;
class __EditAuthentication : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__EditAuthentication();

    Q_PROPERTY(QStringList EnabledUsers READ enabledUsers NOTIFY EnabledUsersChanged)
    QStringList enabledUsers();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<> Disable(const QString &username)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(username);
        return asyncCallWithArgumentList(QStringLiteral("Disable"), argumentList);
    }

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

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


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

    inline void EnableQueued(const QString &username, const QString &password)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(username) << QVariant::fromValue(password);

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



Q_SIGNALS: // SIGNALS
    // begin property changed signals
    void EnabledUsersChanged(const QStringList & 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:
    __EditAuthenticationPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace daemon {
      namespace grub2 {
        typedef ::__EditAuthentication EditAuthentication;
      }
    }
  }
}
#endif
