43 lines
788 B
C++
Executable File
43 lines
788 B
C++
Executable File
#ifndef GHOSTIMAGEPROXY_H
|
|
#define GHOSTIMAGEPROXY_H
|
|
|
|
#include "workerfactory.h"
|
|
#include "myprocess/mksquashfsprocess.h"
|
|
#include "myprocess/rsyncpathtodirprocess.h"
|
|
#include "parsebackuplist.h"
|
|
|
|
class GhostImageProxy : public Worker
|
|
{
|
|
Q_OBJECT
|
|
DECLARE_DYNCREATE(GhostImageProxy)
|
|
public:
|
|
explicit GhostImageProxy();
|
|
virtual ~GhostImageProxy();
|
|
|
|
public:
|
|
// 环境检测
|
|
virtual bool checkEnvEx();
|
|
|
|
// 任务处理
|
|
virtual void doWorkEx();
|
|
|
|
// 任务取消
|
|
virtual void cancelEx();
|
|
|
|
private:
|
|
void doGhostImage();
|
|
|
|
// 存放.kyimg文件的目录
|
|
QString m_destPath;
|
|
// .kyimg文件
|
|
QString m_kyimg;
|
|
|
|
// 压缩进程
|
|
MkSquashFSProcess *m_mksquashfs;
|
|
|
|
// 是否成功
|
|
bool m_bSuccess;
|
|
};
|
|
|
|
#endif // GHOSTIMAGEPROXY_H
|