/*
*  Copyright (c) KylinSoft Co., Ltd. [Year].All rights reserved.
*  yhkylin-backup-tools is licensed under GPL-2+
*  See LICENSE file for more details.
*/

/*
 * This file was generated by qdbusxml2cpp version 0.8
 * Command line was: qdbusxml2cpp com.kylin.backup.manager.xml -i mybackupmanager.h -a ManagerAdaptor
 *
 * qdbusxml2cpp is Copyright (C) 2020 The Qt Company Ltd.
 *
 * This is an auto-generated file.
 * Do not edit! All changes made to it will be lost.
 */

#include "backupmanager_adaptor.h"
#include <QtCore/QMetaObject>
#include <QtCore/QByteArray>
#include <QtCore/QList>
#include <QtCore/QMap>
#include <QtCore/QString>
#include <QtCore/QStringList>
#include <QtCore/QVariant>

/*
 * Implementation of adaptor class ManagerAdaptor
 */

ManagerAdaptor::ManagerAdaptor(QObject *parent)
    : QDBusAbstractAdaptor(parent)
{
    // constructor
    setAutoRelaySignals(true);
}

ManagerAdaptor::~ManagerAdaptor()
{
    // destructor
}

int ManagerAdaptor::Mount_backup_partition()
{
    // handle method call com.kylin.backup.manager.Mount_backup_partition
    int out0;
    QMetaObject::invokeMethod(parent(), "Mount_backup_partition", Q_RETURN_ARG(int, out0));
    return out0;
}

bool ManagerAdaptor::umountBackupPartition()
{
    // handle method call com.kylin.backup.manager.umountBackupPartition
    bool out0;
    QMetaObject::invokeMethod(parent(), "umountBackupPartition", Q_RETURN_ARG(bool, out0));
    return out0;
}

bool ManagerAdaptor::remountPartitionsForCasperMode()
{
    // handle method call com.kylin.backup.manager.remountPartitionsForCasperMode
    bool out0;
    QMetaObject::invokeMethod(parent(), "remountPartitionsForCasperMode", Q_RETURN_ARG(bool, out0));
    return out0;
}

void ManagerAdaptor::autoBackUpForSystemUpdate_noreturn(const QString &backupName, const QString &createNote, const QString &incNote, const QString &frontUserName, int frontUid)
{
    // handle method call com.kylin.backup.manager.autoBackUpForSystemUpdate_noreturn
    QMetaObject::invokeMethod(parent(), "autoBackUpForSystemUpdate_noreturn", Q_ARG(QString, backupName), Q_ARG(QString, createNote), Q_ARG(QString, incNote), Q_ARG(QString, frontUserName), Q_ARG(int, frontUid));
}

void ManagerAdaptor::autoRestoreForSystemUpdate(const QString& frontUserName, int frontUid)
{
    // handle method call com.kylin.backup.manager.autoRestoreForSystemUpdate
    QMetaObject::invokeMethod(parent(), "autoRestoreForSystemUpdate", Q_ARG(QString, frontUserName), Q_ARG(int, frontUid));
}

int ManagerAdaptor::checkEnv(BackupWrapper backupWrapper)
{
    // handle method call com.kylin.backup.manager.checkEnv
    int out0;
    QMetaObject::invokeMethod(parent(), "checkEnv", Q_RETURN_ARG(int, out0), Q_ARG(BackupWrapper, backupWrapper));
    return out0;
}

int ManagerAdaptor::deleteBackupPoint(BackupWrapper backupWrapper)
{
    // handle method call com.kylin.backup.manager.deleteBackupPoint
    int out0;
    QMetaObject::invokeMethod(parent(), "deleteBackupPoint", Q_RETURN_ARG(int, out0), Q_ARG(BackupWrapper, backupWrapper));
    return out0;
}

QString ManagerAdaptor::getBackupCommentForSystemUpdate(QString &state)
{
    // handle method call com.kylin.backup.manager.getBackupCommentForSystemUpdate
    //return static_cast<YourObjectType *>(parent())->getBackupCommentForSystemUpdate(state);
    QString out0;
    QMetaObject::invokeMethod(parent(), "getBackupCommentForSystemUpdate", Q_RETURN_ARG(QString, out0), Q_ARG(QString&, state));
    return out0;
}

int ManagerAdaptor::getBackupState(bool &isActive)
{
    // handle method call com.kylin.backup.manager.getBackupState
    //return static_cast<YourObjectType *>(parent())->getBackupState(isActive);
    int out0;
    QMetaObject::invokeMethod(parent(), "getBackupState", Q_RETURN_ARG(int, out0), Q_ARG(bool&, isActive));
    return out0;
}

int ManagerAdaptor::ghostBackup(BackupWrapper backupWrapper)
{
    // handle method call com.kylin.backup.manager.ghostBackup
    int out0;
    QMetaObject::invokeMethod(parent(), "ghostBackup", Q_RETURN_ARG(int, out0), Q_ARG(BackupWrapper, backupWrapper));
    return out0;
}

int ManagerAdaptor::goBackup(BackupWrapper backupWrapper)
{
    // handle method call com.kylin.backup.manager.goBackup
    int out0;
    QMetaObject::invokeMethod(parent(), "goBackup", Q_RETURN_ARG(int, out0), Q_ARG(BackupWrapper, backupWrapper));
    return out0;
}

int ManagerAdaptor::goRestore(BackupWrapper backupWrapper)
{
    // handle method call com.kylin.backup.manager.goRestore
    int out0;
    QMetaObject::invokeMethod(parent(), "goRestore", Q_RETURN_ARG(int, out0), Q_ARG(BackupWrapper, backupWrapper));
    return out0;
}

int ManagerAdaptor::cancel()
{
    // handle method call com.kylin.backup.manager.cancel
    int out0;
    QMetaObject::invokeMethod(parent(), "cancel", Q_RETURN_ARG(int, out0));
    return out0;
}

int ManagerAdaptor::reboot()
{
    // handle method call com.kylin.backup.manager.reboot
    int out0;
    QMetaObject::invokeMethod(parent(), "reboot", Q_RETURN_ARG(int, out0));
    return out0;
}

bool ManagerAdaptor::existsSystemBackupNode()
{
    // handle method call com.kylin.backup.manager.existsSystemBackupNode
    bool out0;
    QMetaObject::invokeMethod(parent(), "existsSystemBackupNode", Q_RETURN_ARG(bool, out0));
    return out0;
}

void ManagerAdaptor::setLocale(const QString& locale)
{
    // handle method call com.kylin.backup.manager.setLocale
    QMetaObject::invokeMethod(parent(), "setLocale", Q_ARG(QString, locale));
}

QString ManagerAdaptor::getBackupLog()
{
    // handle method call com.kylin.backup.manager.getBackupLog
    QString out0;
    QMetaObject::invokeMethod(parent(), "getBackupLog", Q_RETURN_ARG(QString, out0));
    return out0;
}


