Debian Codegraph @

src/fdosecrets/widgets/SettingsWidgetFdoSecrets.h

raw
1 /*
2 * Copyright (C) 2018 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_SETTINGSWIDGETFDOSECRETS_H
19 #define KEEPASSXC_SETTINGSWIDGETFDOSECRETS_H
20
21 #include "gui/MessageWidget.h"
22
23 #include <QTimer>
24
25 class QAbstractItemView;
26
27 class FdoSecretsPlugin;
28
29 namespace Ui
30 {
31 class SettingsWidgetFdoSecrets;
32 }
33 class SettingsWidgetFdoSecrets : public QWidget
34 {
35 Q_OBJECT
36 public:
37 explicit SettingsWidgetFdoSecrets(FdoSecretsPlugin* plugin, QWidget* parent = nullptr);
38 ~SettingsWidgetFdoSecrets() override;
39
40 public slots:
41 void loadSettings();
42 void saveSettings();
43
44 private slots:
45 void checkDBusName();
46 void updateServiceState();
47
48 protected:
49 void showEvent(QShowEvent* event) override;
50 void hideEvent(QHideEvent* event) override;
51
52 private:
53 QScopedPointer<Ui::SettingsWidgetFdoSecrets> m_ui;
54 FdoSecretsPlugin* m_plugin;
55 QTimer m_checkTimer;
56 };
57
58 #endif // KEEPASSXC_SETTINGSWIDGETFDOSECRETS_H