/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp ./dde-api-proxy/file/dbus/v1/system/org.deepin.dde.Grub2.EditAuthentication.xml -a ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor -i ./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthentication.h
 *
 * qdbusxml2cpp is Copyright (C) 2017 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#include "./dde-api-proxy/toolGenerate/qdbusxml2cpp/org.deepin.dde.Grub2.EditAuthenticationAdaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
 * Implementation of adaptor class EditAuthenticationAdaptor
 */

EditAuthenticationAdaptor::EditAuthenticationAdaptor(QObject *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

EditAuthenticationAdaptor::~EditAuthenticationAdaptor()
{
    // destructor
}

QStringList EditAuthenticationAdaptor::enabledUsers() const
{
    // get the value of property EnabledUsers
    return qvariant_cast< QStringList >(parent()->property("EnabledUsers"));
}

void EditAuthenticationAdaptor::Disable(const QString &username)
{
    // handle method call org.deepin.dde.Grub2.EditAuthentication.Disable
    QMetaObject::invokeMethod(parent(), "Disable", Q_ARG(QString, username));
}

void EditAuthenticationAdaptor::Enable(const QString &username, const QString &password)
{
    // handle method call org.deepin.dde.Grub2.EditAuthentication.Enable
    QMetaObject::invokeMethod(parent(), "Enable", Q_ARG(QString, username), Q_ARG(QString, password));
}

