diff options
Diffstat (limited to 'kmymoney2/dialogs/kgpgkeyselectiondlg.h')
-rw-r--r-- | kmymoney2/dialogs/kgpgkeyselectiondlg.h | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/kmymoney2/dialogs/kgpgkeyselectiondlg.h b/kmymoney2/dialogs/kgpgkeyselectiondlg.h new file mode 100644 index 0000000..4355478 --- /dev/null +++ b/kmymoney2/dialogs/kgpgkeyselectiondlg.h @@ -0,0 +1,66 @@ +/*************************************************************************** + kgpgkeyselectiondlg.h + ------------------- + copyright : (C) 2008 by Thomas Baumgart + email : ipwizard@users.sourceforge.net + ***************************************************************************/ + +/*************************************************************************** + * * + * This program is free software; you can redistribute it and/or modify * + * it under the terms of the GNU General Public License as published by * + * the Free Software Foundation; either version 2 of the License, or * + * (at your option) any later version. * + * * + ***************************************************************************/ + +#ifndef KGPGKEYSELECTIONDLG_H +#define KGPGKEYSELECTIONDLG_H + +// ---------------------------------------------------------------------------- +// QT Includes + +// ---------------------------------------------------------------------------- +// KDE Includes + +#include <kdialogbase.h> +class KEditListBox; +class KLed; + +// ---------------------------------------------------------------------------- +// Project Includes + +/** + * @author Thomas Baumgart + */ +class KGpgKeySelectionDlg : public KDialogBase +{ + Q_OBJECT +public: + + KGpgKeySelectionDlg(QWidget *parent=0, const char *name=0); + virtual ~KGpgKeySelectionDlg() {} + + /** + * preset the key list with the given key ids in @a list + */ + void setKeys(const QStringList& list); + + /** + * Returns the list of keys currently listed in the KEditListBox + */ + const QStringList keys(void) const { return m_listBox->items(); } + +protected slots: + void slotIdChanged(void); + void slotKeyListChanged(void); + +private: + KEditListBox* m_listBox; + KLed* m_keyLed; + bool m_needCheckList; + bool m_listOk; + int m_checkCount; +}; + +#endif |