/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c Fingerprint -p generated/com_deepin_daemon_authenticate_fingerprint ../xml/com.deepin.daemon.Authenticate.Fingerprint.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_FINGERPRINT_H
#define COM_DEEPIN_DAEMON_AUTHENTICATE_FINGERPRINT_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.Fingerprint
 */
class __FingerprintPrivate;
class __Fingerprint : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__Fingerprint();

    Q_PROPERTY(QString DefaultDevice READ defaultDevice NOTIFY DefaultDeviceChanged)
    QString defaultDevice();

    Q_PROPERTY(QString Devices READ devices NOTIFY DevicesChanged)
    QString devices();

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

    inline void ClaimQueued(const QString &username, bool claimed)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(username) << QVariant::fromValue(claimed);

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


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

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

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


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

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

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


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

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

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


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



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

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

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


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

    inline void RenameFingerQueued(const QString &username, const QString &finger, const QString &newName)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(username) << QVariant::fromValue(finger) << QVariant::fromValue(newName);

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


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

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

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


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

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

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


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

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

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


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

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

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



Q_SIGNALS: // SIGNALS
    void EnrollStatus(const QString &id, int code, const QString &msg);
    void Touch(const QString &id, bool pressed);
    void VerifyStatus(const QString &id, int code, const QString &msg);
    // begin property changed signals
    void DefaultDeviceChanged(const QString & value) const;
    void DevicesChanged(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:
    __FingerprintPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    namespace daemon {
      namespace authenticate {
        typedef ::__Fingerprint Fingerprint;
      }
    }
  }
}
#endif
