29 lines
624 B
C++
29 lines
624 B
C++
#ifndef MYMOUNTPROXY_H
|
|
#define MYMOUNTPROXY_H
|
|
|
|
#include <QObject>
|
|
#include "myprocess/mountbackupprocess.h"
|
|
|
|
class MyMountProxy : public QObject {
|
|
Q_OBJECT
|
|
public:
|
|
// 为兼容旧版本对外提供的接口,此处结构前面暂时不变,只在后面增加
|
|
enum class MountResult {
|
|
MOUNT_RESULT_INIT,
|
|
CANNOT_GET_BACKUPUUID,
|
|
NO_BLKID_EXIST,
|
|
NO_MOUNTED,
|
|
GENERATE_IMPORT_FILE_FAIL,
|
|
MOUNTED
|
|
};
|
|
|
|
MyMountProxy(QObject* parent = nullptr);
|
|
|
|
MountResult mountBackupPartition();
|
|
|
|
private:
|
|
MountBackupProcess* m_processMount;
|
|
};
|
|
|
|
#endif // MYMOUNTPROXY_H
|