/*
 * This file was generated by qdbusxml2cpp-fix version 0.8
 * Command line was: qdbusxml2cpp-fix -c ABRecovery -p generated/com_deepin_abrecovery ../xml/com.deepin.ABRecovery.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_ABRECOVERY_H
#define COM_DEEPIN_ABRECOVERY_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.ABRecovery
 */
class __ABRecoveryPrivate;
class __ABRecovery : public DBusExtendedAbstractInterface
{
    Q_OBJECT

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

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

    ~__ABRecovery();

    Q_PROPERTY(bool BackingUp READ backingUp NOTIFY BackingUpChanged)
    bool backingUp();

    Q_PROPERTY(qlonglong BackupTime READ backupTime NOTIFY BackupTimeChanged)
    qlonglong backupTime();

    Q_PROPERTY(QString BackupVersion READ backupVersion NOTIFY BackupVersionChanged)
    QString backupVersion();

    Q_PROPERTY(bool ConfigValid READ configValid NOTIFY ConfigValidChanged)
    bool configValid();

    Q_PROPERTY(bool HasBackedUp READ hasBackedUp NOTIFY HasBackedUpChanged)
    bool hasBackedUp();

    Q_PROPERTY(bool Restoring READ restoring NOTIFY RestoringChanged)
    bool restoring();

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



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



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

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

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


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

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

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



Q_SIGNALS: // SIGNALS
    void JobEnd(const QString &kind, bool success, const QString &errMsg);
    // begin property changed signals
    void BackingUpChanged(bool  value) const;
    void BackupTimeChanged(qlonglong  value) const;
    void BackupVersionChanged(const QString & value) const;
    void ConfigValidChanged(bool  value) const;
    void HasBackedUpChanged(bool  value) const;
    void RestoringChanged(bool  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:
    __ABRecoveryPrivate *d_ptr;
};

namespace com {
  namespace deepin {
    typedef ::__ABRecovery ABRecovery;
  }
}
#endif
