Changeset View
Changeset View
Standalone View
Standalone View
src/dialogs/subkeyswidget.h
- This file was added.
1 | /* Copyright (c) 2016 Klarälvdalens Datakonsult AB | ||||
---|---|---|---|---|---|
2 | | ||||
3 | Kleopatra is free software; you can redistribute it and/or modify | ||||
4 | it under the terms of the GNU General Public License as published by | ||||
5 | the Free Software Foundation; either version 2 of the License, or | ||||
6 | (at your option) any later version. | ||||
7 | | ||||
8 | Kleopatra is distributed in the hope that it will be useful, | ||||
9 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||||
10 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||||
11 | General Public License for more details. | ||||
12 | | ||||
13 | You should have received a copy of the GNU General Public License | ||||
14 | along with this program; if not, write to the Free Software | ||||
15 | Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | ||||
16 | */ | ||||
17 | | ||||
18 | #ifndef KLEO_SUBKEYSWIDGET_H | ||||
19 | #define KLEO_SUBKEYSWIDGET_H | ||||
20 | | ||||
21 | #include <QWidget> | ||||
22 | #include <QDialog> | ||||
23 | | ||||
24 | namespace GpgME { | ||||
25 | class Key; | ||||
26 | } | ||||
27 | | ||||
28 | class SubKeysWidget : public QWidget | ||||
29 | { | ||||
30 | Q_OBJECT | ||||
31 | public: | ||||
32 | explicit SubKeysWidget(QWidget *parent = Q_NULLPTR); | ||||
33 | ~SubKeysWidget(); | ||||
34 | | ||||
35 | void setKey(const GpgME::Key &key); | ||||
36 | GpgME::Key key() const; | ||||
37 | | ||||
38 | private: | ||||
39 | class Private; | ||||
40 | const QScopedPointer<Private> d; | ||||
41 | }; | ||||
42 | | ||||
43 | | ||||
44 | class SubKeysDialog : public QDialog | ||||
45 | { | ||||
46 | Q_OBJECT | ||||
47 | public: | ||||
48 | explicit SubKeysDialog(QWidget *parent = Q_NULLPTR); | ||||
49 | ~SubKeysDialog(); | ||||
50 | | ||||
51 | void setKey(const GpgME::Key &key); | ||||
52 | GpgME::Key key() const; | ||||
53 | }; | ||||
54 | | ||||
55 | #endif |