| 1 | // For license of this file, see <project-root-folder>/LICENSE.md. |
| 2 | |
| 3 | #ifndef FORMBACKUPDATABASECONFIG_H |
| 4 | #define FORMBACKUPDATABASECONFIG_H |
| 5 | |
| 6 | #include "ui_formbackupdatabasesettings.h" |
| 7 | |
| 8 | #include <QDialog> |
| 9 | |
| 10 | class FormBackupDatabaseSettings : public QDialog { |
| 11 | Q_OBJECT |
| 12 | |
| 13 | public: |
| 14 | explicit FormBackupDatabaseSettings(QWidget* parent = nullptr); |
| 15 | virtual ~FormBackupDatabaseSettings(); |
| 16 | |
| 17 | protected: |
| 18 | virtual void hideEvent(QHideEvent* event); |
| 19 | |
| 20 | private slots: |
| 21 | void performBackup(); |
| 22 | void selectFolderInitial(); |
| 23 | void selectFolder(QString path = QString()); |
| 24 | void checkBackupNames(const QString& name); |
| 25 | void checkOkButton(); |
| 26 | |
| 27 | private: |
| 28 | QScopedPointer<Ui::FormBackupDatabaseSettings> m_ui; |
| 29 | }; |
| 30 | |
| 31 | #endif // FORMBACKUPDATABASECONFIG_H |