Dialog for adding new backups.
More...
#include <addbackupdialog.h>
|
void | addBackupDialogAccepted (int app_id, int target_id, QString name, QString target_name, int source_backup) |
| Signals completion of this dialog.
|
|
|
| AddBackupDialog (QWidget *parent=nullptr) |
| Initializes the UI.
|
|
| ~AddBackupDialog () |
| Deletes the UI.
|
|
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.
|
|
|
Ui::AddBackupDialog * | ui |
| Contains auto-generated UI elements.
|
|
int | target_id_ |
| Id of the target for which to create a new backup.
|
|
int | app_id_ |
| Application to which the new backup is to be added.
|
|
QString | target_name_ |
| Name of the target for which to create a new backup.
|
|
bool | dialog_completed_ = false |
| Indicates whether the dialog has been completed.
|
|
Dialog for adding new backups.
◆ AddBackupDialog()
AddBackupDialog::AddBackupDialog |
( |
QWidget * | parent = nullptr | ) |
|
|
explicit |
Initializes the UI.
- Parameters
-
parent | Parent for this widget, this is passed to the constructor of QDialog. |
◆ addBackupDialogAccepted
void AddBackupDialog::addBackupDialogAccepted |
( |
int | app_id, |
|
|
int | target_id, |
|
|
QString | name, |
|
|
QString | target_name, |
|
|
int | source_backup ) |
|
signal |
Signals completion of this dialog.
- Parameters
-
app_id | Application to which the new backup is to be added. |
target_id | Id of the target for which to create a new backup. |
name | Name of the target for which to create a new backup. |
target_name | Name of the target for which to create a new backup. |
source_backup | Data for the new backup will be copied from this backup. |
◆ on_name_field_textChanged
void AddBackupDialog::on_name_field_textChanged |
( |
const QString & | text | ) |
|
|
privateslot |
Called when the user edits the backup name field. Updates the Ok button.
- Parameters
-
◆ setupDialog()
void AddBackupDialog::setupDialog |
( |
int | app_id, |
|
|
int | target_id, |
|
|
const QString & | target_name, |
|
|
const QStringList & | existing_backups ) |
Initializes this dialog with data needed for backup creation.
- Parameters
-
Application | to which the new backup is to be added. |
target_id | Id of the target for which to create a new backup. |
target_name | Name of the target for which to create a new backup. |
existing_backups | List of all existing backup names for the selected target. |
The documentation for this class was generated from the following files: