2021-12-06 14:55:00 +08:00
|
|
|
#ifndef SELECTRESTOREPOINT_H
|
|
|
|
#define SELECTRESTOREPOINT_H
|
|
|
|
|
|
|
|
#include "../backuppointlistdialog.h"
|
|
|
|
|
|
|
|
class SelectRestorePoint : public BackupPointListDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
enum BackupPointType {
|
|
|
|
DATA,
|
|
|
|
SYSTEM
|
|
|
|
};
|
|
|
|
|
2022-01-13 14:06:40 +08:00
|
|
|
explicit SelectRestorePoint(QWidget *parent = nullptr, BackupPointType backupType = BackupPointType::SYSTEM, bool isOnlyShowLocal = false);
|
2021-12-06 14:55:00 +08:00
|
|
|
virtual ~SelectRestorePoint();
|
|
|
|
|
2022-06-16 17:21:44 +08:00
|
|
|
void setNeedConfirm(bool needConfirm) {
|
|
|
|
m_needConfirm = needConfirm;
|
|
|
|
}
|
|
|
|
|
2021-12-06 14:55:00 +08:00
|
|
|
public slots:
|
|
|
|
void initTableWidget();
|
|
|
|
|
|
|
|
private:
|
|
|
|
void insertLines(const QList<ParseBackupList::BackupPoint> &backupPoints);
|
|
|
|
|
|
|
|
private:
|
|
|
|
BackupPointType m_backupType;
|
2022-06-16 17:21:44 +08:00
|
|
|
bool m_needConfirm = true;
|
2021-12-06 14:55:00 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // SELECTRESTOREPOINT_H
|