/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c CharaManger -p generated/com_deepin_daemon_authenticate_charamanger ../xml/com.deepin.daemon.Authenticate.CharaManger.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_AUTHENTICATE_CHARAMANGER_H
#define COM_DEEPIN_DAEMON_AUTHENTICATE_CHARAMANGER_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.Authenticate.CharaManger
 */
class __CharaMangerPrivate;
class __CharaManger : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__CharaManger();

    Q_PROPERTY(QString DriverInfo READ driverInfo NOTIFY DriverInfoChanged)
    QString driverInfo();

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

    inline void DeleteQueued(int charaType, const QString &charaName)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(charaType) << QVariant::fromValue(charaName);

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


    inline QDBusPendingReply<QDBusUnixFileDescriptor> EnrollStart(const QString &driverName, int charaType, const QString &charaName)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(driverName) << QVariant::fromValue(charaType) << QVariant::fromValue(charaName);
        return asyncCallWithArgumentList(QStringLiteral("EnrollStart"), argumentList);
    }



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

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

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


    inline QDBusPendingReply<QString> List(const QString &driverName, int charaType)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(driverName) << QVariant::fromValue(charaType);
        return asyncCallWithArgumentList(QStringLiteral("List"), argumentList);
    }



    inline QDBusPendingReply<> Rename(int charaType, const QString &oldName, const QString &newName)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(charaType) << QVariant::fromValue(oldName) << QVariant::fromValue(newName);
        return asyncCallWithArgumentList(QStringLiteral("Rename"), argumentList);
    }

    inline void RenameQueued(int charaType, const QString &oldName, const QString &newName)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(charaType) << QVariant::fromValue(oldName) << QVariant::fromValue(newName);

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



Q_SIGNALS: // SIGNALS
    void CharaUpdated(const QString &charaName, int CharaType);
    void DriverChanged();
    void EnrollStatus(const QString &Sender, int Code, const QString &Msg);
    // begin property changed signals
    void DriverInfoChanged(const QString & 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:
    __CharaMangerPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace daemon {
      namespace authenticate {
        typedef ::__CharaManger CharaManger;
      }
    }
  }
}
#endif
