Debian Codegraph @

src/fdosecrets/widgets/DatabaseSettingsWidgetFdoSecrets.h

raw
1 /*
2 * Copyright (C) 2019 Aetf <[email protected]>
3 *
4 * This program is free software: you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation, either version 2 or (at your option)
7 * version 3 of the License.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program. If not, see <http://www.gnu.org/licenses/>.
16 */
17
18 #ifndef KEEPASSXC_DATABASESETTINGSWIDGETFDOSECRETS_H
19 #define KEEPASSXC_DATABASESETTINGSWIDGETFDOSECRETS_H
20
21 #include <QScopedPointer>
22 #include <QSharedPointer>
23 #include <QWidget>
24
25 namespace Ui
26 {
27 class DatabaseSettingsWidgetFdoSecrets;
28 }
29
30 class Database;
31 class DatabaseSettingsWidgetFdoSecrets : public QWidget
32 {
33 Q_OBJECT
34 public:
35 explicit DatabaseSettingsWidgetFdoSecrets(QWidget* parent = nullptr);
36 ~DatabaseSettingsWidgetFdoSecrets() override;
37
38 void loadSettings(QSharedPointer<Database> db);
39 void saveSettings();
40
41 private:
42 void settingsWarning();
43
44 private:
45 QScopedPointer<Ui::DatabaseSettingsWidgetFdoSecrets> m_ui;
46
47 QSharedPointer<Database> m_db;
48
49 class GroupModelNoRecycle;
50 QScopedPointer<GroupModelNoRecycle> m_model;
51 };
52
53 #endif // KEEPASSXC_DATABASESETTINGSWIDGETFDOSECRETS_H