41 const QString& target_name,
42 const QStringList& existing_backups);
55 Ui::AddBackupDialog*
ui;
void addBackupDialogAccepted(int app_id, int target_id, QString name, QString target_name, int source_backup)
Signals completion of this dialog.
void on_name_field_textChanged(const QString &text)
Called when the user edits the backup name field. Updates the Ok button.
Definition addbackupdialog.cpp:32
int app_id_
Application to which the new backup is to be added.
Definition addbackupdialog.h:59
~AddBackupDialog()
Deletes the UI.
Definition addbackupdialog.cpp:12
bool dialog_completed_
Indicates whether the dialog has been completed.
Definition addbackupdialog.h:63
AddBackupDialog(QWidget *parent=nullptr)
Initializes the UI.
Definition addbackupdialog.cpp:7
QString target_name_
Name of the target for which to create a new backup.
Definition addbackupdialog.h:61
void setupDialog(int app_id, int target_id, const QString &target_name, const QStringList &existing_backups)
Initializes this dialog with data needed for backup creation.
Definition addbackupdialog.cpp:17
Ui::AddBackupDialog * ui
Contains auto-generated UI elements.
Definition addbackupdialog.h:55
void on_buttonBox_accepted()
Emits addBackupDialogAccepted with the data entered in the Ui.
Definition addbackupdialog.cpp:37
int target_id_
Id of the target for which to create a new backup.
Definition addbackupdialog.h:57