42 lines
811 B
C++
42 lines
811 B
C++
#ifndef SYSTEMBACKUP_H
|
|
#define SYSTEMBACKUP_H
|
|
|
|
#include <QStackedWidget>
|
|
#include "udiskdetector.h"
|
|
|
|
class SystemBackup : public QStackedWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
enum SystemBackupState
|
|
{
|
|
IDEL = 0, // 空闲
|
|
CHECKING, // 环境校验中
|
|
BACKUPING // 备份中
|
|
};
|
|
public:
|
|
explicit SystemBackup(QWidget *parent = nullptr);
|
|
~SystemBackup();
|
|
|
|
private:
|
|
void initFirstWidget();
|
|
void initSecondWidget();
|
|
void initThirdWidget();
|
|
|
|
signals:
|
|
void startCheckEnv();
|
|
|
|
public slots:
|
|
void on_pre_clicked(bool checked = false);
|
|
void on_next_clicked(bool checked = false);
|
|
void on_systemBackupManage_clicked();
|
|
|
|
private:
|
|
UdiskDetector* m_udector;
|
|
bool m_isLocal;
|
|
int m_systemBackupState;
|
|
QMovie *m_movie;
|
|
};
|
|
|
|
#endif // SYSTEMBACKUP_H
|