147 lines
5.6 KiB
C++
Executable File
147 lines
5.6 KiB
C++
Executable File
/*
|
|
* 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"
|
|
" <method name=\"Mount_backup_partition\">\n"
|
|
" <arg direction=\"out\" type=\"i\"/>\n"
|
|
" </method>\n"
|
|
" <method name=\"umountBackupPartition\">\n"
|
|
" <arg direction=\"out\" type=\"b\"/>\n"
|
|
" </method>\n"
|
|
" <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();
|
|
bool umountBackupPartition();
|
|
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);
|
|
int cancel();
|
|
int reboot();
|
|
Q_SIGNALS: // SIGNALS
|
|
void backupFinished(bool result);
|
|
void progress(int in0, int in1);
|
|
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
|