Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kgpgkeyselectiondlg.h
Context not available. | |||||
3 | ------------------- | 3 | ------------------- | ||
---|---|---|---|---|---|
4 | copyright : (C) 2008 by Thomas Baumgart | 4 | copyright : (C) 2008 by Thomas Baumgart | ||
5 | email : ipwizard@users.sourceforge.net | 5 | email : ipwizard@users.sourceforge.net | ||
6 | (C) 2017 by Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com> | ||||
6 | ***************************************************************************/ | 7 | ***************************************************************************/ | ||
7 | 8 | | |||
8 | /*************************************************************************** | 9 | /*************************************************************************** | ||
Context not available. | |||||
25 | // ---------------------------------------------------------------------------- | 26 | // ---------------------------------------------------------------------------- | ||
26 | // KDE Includes | 27 | // KDE Includes | ||
27 | 28 | | |||
28 | #include <KEditListWidget> | | |||
29 | | ||||
30 | class KLed; | | |||
31 | | ||||
32 | // ---------------------------------------------------------------------------- | 29 | // ---------------------------------------------------------------------------- | ||
33 | // Project Includes | 30 | // Project Includes | ||
34 | 31 | | |||
35 | /** | 32 | /** | ||
36 | * @author Thomas Baumgart | 33 | * @author Thomas Baumgart | ||
37 | */ | 34 | */ | ||
35 | class KGpgKeySelectionDlgPrivate; | ||||
38 | class KGpgKeySelectionDlg : public QDialog | 36 | class KGpgKeySelectionDlg : public QDialog | ||
39 | { | 37 | { | ||
40 | Q_OBJECT | 38 | Q_OBJECT | ||
39 | Q_DISABLE_COPY(KGpgKeySelectionDlg) | ||||
40 | | ||||
41 | public: | 41 | public: | ||
42 | 42 | | |||
43 | explicit KGpgKeySelectionDlg(QWidget* parent = 0); | 43 | explicit KGpgKeySelectionDlg(QWidget* parent = nullptr); | ||
44 | virtual ~KGpgKeySelectionDlg() {} | 44 | ~KGpgKeySelectionDlg(); | ||
45 | 45 | | |||
46 | /** | 46 | /** | ||
47 | * preset the key list with the given key ids in @a list | 47 | * preset the key list with the given key ids in @a list | ||
Context not available. | |||||
51 | /** | 51 | /** | ||
52 | * Returns the list of keys currently listed in the KEditListWidget | 52 | * Returns the list of keys currently listed in the KEditListWidget | ||
53 | */ | 53 | */ | ||
54 | const QStringList keys() const { | 54 | QStringList keys() const; | ||
55 | return m_listWidget->items(); | | |||
56 | } | | |||
57 | 55 | | |||
58 | protected slots: | 56 | protected slots: | ||
59 | void slotIdChanged(); | 57 | void slotIdChanged(); | ||
60 | void slotKeyListChanged(); | 58 | void slotKeyListChanged(); | ||
61 | 59 | | |||
62 | private: | 60 | private: | ||
63 | KEditListWidget* m_listWidget; | 61 | KGpgKeySelectionDlgPrivate * const d_ptr; | ||
64 | KLed* m_keyLed; | 62 | Q_DECLARE_PRIVATE(KGpgKeySelectionDlg) | ||
65 | bool m_needCheckList; | | |||
66 | bool m_listOk; | | |||
67 | int m_checkCount; | | |||
68 | }; | 63 | }; | ||
69 | 64 | | |||
70 | #endif | 65 | #endif | ||
Context not available. |