/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Source file was org.deepin.Filemanager.DiskEncrypt.xml
 *
 * qdbusxml2cpp is Copyright (C) The Qt Company Ltd. and other contributors.
 *
 * This is an auto-generated file.
 * This file may have been hand-edited. Look for HAND-EDIT comments
 * before re-generating it.
 */

#ifndef DISKENCRYPTADAPTOR_H
#define DISKENCRYPTADAPTOR_H

#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "dbus/diskencryptsetup.h"
#include <QtCore/qcontainerfwd.h>

/*
 * Adaptor class for interface org.deepin.Filemanager.DiskEncrypt
 */
class DiskEncryptAdaptor: public QDBusAbstractAdaptor
{
    Q_OBJECT
    Q_CLASSINFO("D-Bus Interface", "org.deepin.Filemanager.DiskEncrypt")
    Q_CLASSINFO("D-Bus Introspection", ""
"  <interface name=\"org.deepin.Filemanager.DiskEncrypt\">\n"
"    <signal name=\"EncryptProgress\">\n"
"      <arg direction=\"out\" type=\"s\" name=\"dev\"/>\n"
"      <arg direction=\"out\" type=\"s\" name=\"devName\"/>\n"
"      <arg direction=\"out\" type=\"d\" name=\"progress\"/>\n"
"    </signal>\n"
"    <signal name=\"DecryptProgress\">\n"
"      <arg direction=\"out\" type=\"s\" name=\"dev\"/>\n"
"      <arg direction=\"out\" type=\"s\" name=\"devName\"/>\n"
"      <arg direction=\"out\" type=\"d\" name=\"progress\"/>\n"
"    </signal>\n"
"    <signal name=\"InitEncResult\">\n"
"      <arg direction=\"out\" type=\"a{sv}\" name=\"result\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
"    </signal>\n"
"    <signal name=\"EncryptResult\">\n"
"      <arg direction=\"out\" type=\"a{sv}\" name=\"result\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
"    </signal>\n"
"    <signal name=\"DecryptResult\">\n"
"      <arg direction=\"out\" type=\"a{sv}\" name=\"result\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
"    </signal>\n"
"    <signal name=\"ChangePassResult\">\n"
"      <arg direction=\"out\" type=\"a{sv}\" name=\"result\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
"    </signal>\n"
"    <signal name=\"WaitAuthInput\">\n"
"      <arg direction=\"out\" type=\"a{sv}\" name=\"devInfo\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.Out0\"/>\n"
"    </signal>\n"
"    <method name=\"InitEncryption\">\n"
"      <arg direction=\"in\" type=\"a{sv}\" name=\"args\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
"    </method>\n"
"    <method name=\"ResumeEncryption\">\n"
"      <arg direction=\"in\" type=\"a{sv}\" name=\"args\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
"    </method>\n"
"    <method name=\"Decryption\">\n"
"      <arg direction=\"in\" type=\"a{sv}\" name=\"args\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
"    </method>\n"
"    <method name=\"ChangePassphrase\">\n"
"      <arg direction=\"in\" type=\"a{sv}\" name=\"args\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
"    </method>\n"
"    <method name=\"SetupAuthArgs\">\n"
"      <arg direction=\"in\" type=\"a{sv}\" name=\"args\"/>\n"
"      <annotation value=\"QVariantMap\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
"    </method>\n"
"    <method name=\"IgnoreAuthSetup\"/>\n"
"    <method name=\"TpmToken\">\n"
"      <arg direction=\"out\" type=\"s\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"dev\"/>\n"
"    </method>\n"
"    <method name=\"DeviceStatus\">\n"
"      <arg direction=\"out\" type=\"i\"/>\n"
"      <arg direction=\"in\" type=\"s\" name=\"dev\"/>\n"
"    </method>\n"
"    <method name=\"IsTaskEmpty\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"    </method>\n"
"    <method name=\"IsTaskRunning\">\n"
"      <arg direction=\"out\" type=\"b\"/>\n"
"    </method>\n"
"    <method name=\"PendingDecryptionDevice\">\n"
"      <arg direction=\"out\" type=\"s\"/>\n"
"    </method>\n"
"  </interface>\n"
        "")
public:
    DiskEncryptAdaptor(DiskEncryptSetup *parent);
    ~DiskEncryptAdaptor() override;

    inline DiskEncryptSetup *parent() const
    { return static_cast<DiskEncryptSetup *>(QObject::parent()); }

public: // PROPERTIES
public Q_SLOTS: // METHODS
    void ChangePassphrase(const QVariantMap &args);
    void Decryption(const QVariantMap &args);
    int DeviceStatus(const QString &dev);
    void IgnoreAuthSetup();
    void InitEncryption(const QVariantMap &args);
    bool IsTaskEmpty();
    bool IsTaskRunning();
    QString PendingDecryptionDevice();
    void ResumeEncryption(const QVariantMap &args);
    void SetupAuthArgs(const QVariantMap &args);
    QString TpmToken(const QString &dev);
Q_SIGNALS: // SIGNALS
    void ChangePassResult(const QVariantMap &result);
    void DecryptProgress(const QString &dev, const QString &devName, double progress);
    void DecryptResult(const QVariantMap &result);
    void EncryptProgress(const QString &dev, const QString &devName, double progress);
    void EncryptResult(const QVariantMap &result);
    void InitEncResult(const QVariantMap &result);
    void WaitAuthInput(const QVariantMap &devInfo);
};

#endif
