yhkylin-backup-tools/kybackup/module/selectrestorepoint.h

34 lines
750 B
C
Raw Normal View History

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