yhkylin-backup-tools/kybackup/deletebackupdialog.h

53 lines
1.1 KiB
C
Raw Normal View History

2021-12-06 14:55:00 +08:00
#ifndef DELETEBACKUPDIALOG_H
#define DELETEBACKUPDIALOG_H
#include <QDialog>
#include <QLabel>
#include <QMovie>
#include "component/mylabel.h"
#include "component/mypushbutton.h"
2022-03-02 11:24:54 +08:00
#include "component/pixmaplabel.h"
2021-12-06 14:55:00 +08:00
#include "backup_manager_interface.h"
#include "../backup-daemon/parsebackuplist.h"
namespace Ui {
class DeleteBackupDialog;
}
class DeleteBackupDialog : public QDialog
{
Q_OBJECT
public:
explicit DeleteBackupDialog(ParseBackupList::BackupPoint backupPonit, QWidget *parent = nullptr);
~DeleteBackupDialog();
2022-02-22 15:25:28 +08:00
void paintEvent(QPaintEvent *event);
2021-12-06 14:55:00 +08:00
signals:
void deleteFinished(bool result);
public slots:
void on_checkEnv_end(int result);
void on_deleteBackup_end(bool result);
private:
void deleteBackupPoint();
Ui::DeleteBackupDialog *ui;
ParseBackupList::BackupPoint m_backupPonit;
2022-03-02 11:24:54 +08:00
PixmapLabel *m_mTitleIcon;
2021-12-06 14:55:00 +08:00
MyLabel *m_titleLabel;
QPushButton *m_buttonClose;
MyLabel *m_labelMessage;
QLabel *m_loadingGif;
QMovie *m_movie;
MyPushButton *m_buttonOk;
// dbus接口
ComKylinBackupManagerInterface *m_pInterface;
};
#endif // DELETEBACKUPDIALOG_H