1
/***************************************************************************
3
* This program 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. *
8
***************************************************************************/
10
#ifndef KGPGSELECTSECRETKEY_H
11
#define KGPGSELECTSECRETKEY_H
21
class SelectSecretKeyProxyModel;
23
class KgpgSelectSecretKey : public KDialog
30
* @param parent is the parent object
31
* @param model pass a pointer to a KGpgItemModel that stores the keys
33
* @param countkey set to the number of keys that you are going to sign, 0 if you are going to sign a file
34
* @param allowLocal if option to sign keys locally should be offered (ignored if countkey == 0)
35
* @param allowTerminal if option to sign keys in terminal should be offered (ignored if countkey > 1)
37
KgpgSelectSecretKey(QWidget *parent, KGpgItemModel *model, const int countkey = 0, const bool allowLocal = true, const bool allowTerminal = true);
38
~KgpgSelectSecretKey();
40
QString getKeyID() const;
41
QString getKeyMail() const;
42
int getSignTrust() const;
45
* @return true if the constructor is called with \em signkey to true
46
* and if the user checked \em localsign
47
* @return false otherwise
49
bool isLocalSign() const;
52
* @return true if the constructor is called with \em signkey to true
53
* and if the user checked \em terminalsign
54
* @return false otherwise
56
bool isTerminalSign() const;
60
void slotSelectionChanged();
63
QCheckBox *m_localsign;
64
QCheckBox *m_terminalsign;
66
KComboBox *m_signtrust;
67
QTableView *m_keyslist;
68
SelectSecretKeyProxyModel *m_proxy;
71
#endif // KGPGSELECTSECRETKEY_H