yhkylin-backup-tools/backup-daemon/backupmanager_adaptor.cpp

132 lines
4.2 KiB
C++
Raw Permalink Normal View History

2022-11-01 10:40:05 +08:00
/*
* 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;
}
void ManagerAdaptor::autoBackUpForSystemUpdate_noreturn(const QString &autobackup_name, const QString &create_note, const QString &inc_note, const QString &frontUserName, int frontUid)
{
// handle method call com.kylin.backup.manager.autoBackUpForSystemUpdate_noreturn
QMetaObject::invokeMethod(parent(), "autoBackUpForSystemUpdate_noreturn", Q_ARG(QString, autobackup_name), Q_ARG(QString, create_note), Q_ARG(QString, inc_note), 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;
}