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

147 lines
5.6 KiB
C
Raw Normal View History

2021-08-06 10:20:03 +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.
* This file may have been hand-edited. Look for HAND-EDIT comments
* before re-generating it.
*/
#ifndef MANAGERADAPTOR_H
#define MANAGERADAPTOR_H
#include <QtCore/QObject>
#include <QtDBus/QtDBus>
#include "mybackupmanager.h"
QT_BEGIN_NAMESPACE
class QByteArray;
template<class T> class QList;
template<class Key, class Value> class QMap;
class QString;
class QStringList;
class QVariant;
QT_END_NAMESPACE
/*
* Adaptor class for interface com.kylin.backup.manager
*/
class ManagerAdaptor: public QDBusAbstractAdaptor
{
Q_OBJECT
Q_CLASSINFO("D-Bus Interface", "com.kylin.backup.manager")
Q_CLASSINFO("D-Bus Introspection", ""
" <interface name=\"com.kylin.backup.manager\">\n"
" <signal name=\"sendEnvCheckResult\">\n"
" <arg direction=\"out\" type=\"i\" name=\"result\"/>\n"
" </signal>\n"
" <signal name=\"sendStartBackupResult\">\n"
" <arg direction=\"out\" type=\"i\" name=\"result\"/>\n"
" </signal>\n"
" <signal name=\"sendBackupResult\">\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" </signal>\n"
" <signal name=\"sendRate\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" </signal>\n"
" <signal name=\"sendRestoreResult\">\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" </signal>\n"
" <signal name=\"sendDeleteResult\">\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" </signal>\n"
" <signal name=\"sendGhostBackupResult\">\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" </signal>\n"
" <signal name=\"backupFinished\">\n"
" <arg direction=\"out\" type=\"b\" name=\"result\"/>\n"
" </signal>\n"
" <signal name=\"progress\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" </signal>\n"
2021-08-06 10:20:03 +08:00
" <method name=\"Mount_backup_partition\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" </method>\n"
2021-10-26 09:24:05 +08:00
" <method name=\"umountBackupPartition\">\n"
" <arg direction=\"out\" type=\"b\"/>\n"
" </method>\n"
2021-08-06 10:20:03 +08:00
" <method name=\"autoBackUpForSystemUpdate_noreturn\">\n"
" <arg direction=\"in\" type=\"s\" name=\"autobackup_name\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"create_note\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"inc_note\"/>\n"
" <arg direction=\"in\" type=\"s\" name=\"frontUserName\"/>\n"
" <arg direction=\"in\" type=\"i\" name=\"frontUid\"/>\n"
" </method>\n"
" <method name=\"getBackupCommentForSystemUpdate\">\n"
" <arg direction=\"out\" type=\"s\"/>\n"
" <arg direction=\"out\" type=\"s\" name=\"state\"/>\n"
" </method>\n"
" <method name=\"getBackupState\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" <arg direction=\"out\" type=\"b\" name=\"isActive\"/>\n"
" </method>\n"
" <method name=\"checkEnv\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" <annotation value=\"BackupWrapper\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" <arg direction=\"in\" type=\"a(i)\" name=\"backupWrapper\"/>\n"
" </method>\n"
" <method name=\"goBackup\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" <annotation value=\"BackupWrapper\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" <arg direction=\"in\" type=\"a(i)\" name=\"backupWrapper\"/>\n"
" </method>\n"
" <method name=\"goRestore\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" <annotation value=\"BackupWrapper\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" <arg direction=\"in\" type=\"a(i)\" name=\"backupWrapper\"/>\n"
" </method>\n"
" <method name=\"deleteBackupPoint\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" <annotation value=\"BackupWrapper\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" <arg direction=\"in\" type=\"a(i)\" name=\"backupWrapper\"/>\n"
" </method>\n"
" <method name=\"ghostBackup\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" <annotation value=\"BackupWrapper\" name=\"org.qtproject.QtDBus.QtTypeName.In0\"/>\n"
" <arg direction=\"in\" type=\"a(i)\" name=\"backupWrapper\"/>\n"
" </method>\n"
" <method name=\"cancel\">\n"
" <arg direction=\"out\" type=\"i\"/>\n"
" </method>\n"
" </interface>\n"
"")
public:
ManagerAdaptor(QObject *parent);
virtual ~ManagerAdaptor();
public: // PROPERTIES
public Q_SLOTS: // METHODS
int Mount_backup_partition();
2021-10-26 09:24:05 +08:00
bool umountBackupPartition();
2021-08-06 10:20:03 +08:00
void autoBackUpForSystemUpdate_noreturn(const QString &autobackup_name, const QString &create_note, const QString &inc_note, const QString &frontUserName, int frontUid);
int checkEnv(BackupWrapper backupWrapper);
int deleteBackupPoint(BackupWrapper backupWrapper);
QString getBackupCommentForSystemUpdate(QString &state);
int getBackupState(bool &isActive);
int ghostBackup(BackupWrapper backupWrapper);
int goBackup(BackupWrapper backupWrapper);
int goRestore(BackupWrapper backupWrapper);
2021-12-28 16:51:35 +08:00
int cancel();
int reboot();
2021-08-06 10:20:03 +08:00
Q_SIGNALS: // SIGNALS
void backupFinished(bool result);
void progress(int in0, int in1);
2021-08-06 10:20:03 +08:00
void sendBackupResult(bool result);
void sendDeleteResult(bool result);
void sendEnvCheckResult(int result);
void sendGhostBackupResult(bool result);
void sendRate(int in0, int in1);
void sendRestoreResult(bool result);
void sendStartBackupResult(int result);
};
#endif