/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c deepinid -p generated/com_deepin_deepinid ../xml/com.deepin.deepinid.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_DEEPINID_H
#define COM_DEEPIN_DEEPINID_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>

#include "types/hardwareinfo.h"
#include "types/qvariantmap.h"

/*
 * Proxy class for interface com.deepin.deepinid
 */
class __deepinidPrivate;
class __deepinid : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__deepinid();

    Q_PROPERTY(bool DeviceUnlocked READ deviceUnlocked NOTIFY DeviceUnlockedChanged)
    bool deviceUnlocked();

    Q_PROPERTY(QString HardwareID READ hardwareID NOTIFY HardwareIDChanged)
    QString hardwareID();

    Q_PROPERTY(bool IsLogin READ isLogin NOTIFY IsLoginChanged)
    bool isLogin();

    Q_PROPERTY(QString MachineName READ machineName NOTIFY MachineNameChanged)
    QString machineName();

    Q_PROPERTY(QVariantMap UserInfo READ userInfo NOTIFY UserInfoChanged)
    QVariantMap userInfo();

public Q_SLOTS: // METHODS
    inline QDBusPendingReply<HardwareInfo> GetHardware()
    {
        QList<QVariant> argumentList;
        return asyncCallWithArgumentList(QStringLiteral("GetHardware"), argumentList);
    }



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



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

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

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


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

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

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


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

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

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


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

    inline void SetTokenQueued(const QVariantMap &in0)
    {
        QList<QVariant> argumentList;
        argumentList << QVariant::fromValue(in0);

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


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

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

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



Q_SIGNALS: // SIGNALS
    void Error(int in0, const QString &in1);
    // begin property changed signals
    void DeviceUnlockedChanged(bool  value) const;
    void HardwareIDChanged(const QString & value) const;
    void IsLoginChanged(bool  value) const;
    void MachineNameChanged(const QString & value) const;
    void UserInfoChanged(const QVariantMap & 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:
    __deepinidPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    typedef ::__deepinid deepinid;
  }
}
#endif
