Dialog for overwriting backups.
More...
#include <overwritebackupdialog.h>
|
void | backupOverwritten (int target_id, int source_backup, int dest_backup) |
| Signals completion of the dialog.
|
|
|
| OverwriteBackupDialog (QWidget *parent=nullptr) |
| Initializes the UI.
|
|
| ~OverwriteBackupDialog () |
| Deletes the UI.
|
|
void | setupDialog (const QStringList &backup_names, int target_id, int dest_backup) |
| Initializes the dialog.
|
|
|
Ui::OverwriteBackupDialog * | ui |
| Contains auto-generated UI elements.
|
|
int | backup_target_ |
| Id of the backup target for which to overwrite a backup.
|
|
int | dest_backup_ |
| Backup to be overwritten.
|
|
QStringList | backup_names_ |
| Contains names for all backups.
|
|
std::unique_ptr< QCompleter > | completer_ |
| Completer used for backup names.
|
|
bool | dialog_completed_ = false |
| Indicates whether the dialog has been completed.
|
|
Dialog for overwriting backups.
◆ OverwriteBackupDialog()
OverwriteBackupDialog::OverwriteBackupDialog |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
Initializes the UI.
- Parameters
-
parent | Parent for this widget, this is passed to the constructor of QDialog. |
◆ backupOverwritten
void OverwriteBackupDialog::backupOverwritten |
( |
int | target_id, |
|
|
int | source_backup, |
|
|
int | dest_backup ) |
|
signal |
Signals completion of the dialog.
- Parameters
-
target_id | Id of the backup target for which to overwrite a backup. |
source_backup | Backup from which to copy files. |
dest_backup | Backup to be overwritten. |
◆ on_backup_field_textChanged
void OverwriteBackupDialog::on_backup_field_textChanged |
( |
const QString & | text | ) |
|
|
privateslot |
Ensures Ok button is only available when a valid backup has been selected.
- Parameters
-
◆ setupDialog()
void OverwriteBackupDialog::setupDialog |
( |
const QStringList & | backup_names, |
|
|
int | target_id, |
|
|
int | dest_backup ) |
Initializes the dialog.
- Parameters
-
backup_names | Contains names for all backups. |
target_id | Id of the backup target for which to overwrite a backup. |
dest_backup | Backup to be overwritten. |
The documentation for this class was generated from the following files: