Allow to add and revoke user identities.

Using a popup with required parameters.
This commit is contained in:
SET
2020-11-19 19:16:17 +01:00
parent 43e1eff221
commit bb174075df
15 changed files with 430 additions and 11 deletions

View File

@@ -15,17 +15,19 @@
#include <Wt/WComboBox.h>
#include "PopupCertifyUserId.h"
#include "PopupExpiryTime.h"
#include "PopupAddUid.h"
using namespace Wt;
class K7Main;
/**
* Some key editing functionalities are or will be implemented here. For now,
* only owner trust level and key certification are implemented.
* Is a pseudo-extension of K7Main. Both classes are friends to each other, and
* Some key editing functionalities are or will be implemented here.
* Owner trust level, key certification adding and revoking user identities are
* implemented.
* \n Is a pseudo-extension of K7Main. Both classes are friends to each other, and
* everything is private here.
* Does not manage keyring.
* \n Does not manage keyring.
*/
class KeyEdit : public WObject
{
@@ -43,6 +45,9 @@ private:
PopupExpiryTime * m_popupExpiryTime;
WString m_expiryEditedKeyFpr;
PopupAddUid * m_popupAddUid;
WString m_addUidKeyFpr;
/**
* Unknown is common.
* \n If keyHasSecret is true, show only Ultimate level.
@@ -54,6 +59,7 @@ private:
void FillOwnerTrustCombo(WComboBox * cmb, bool keyHasSecret);
void CertifyKey();
void SetExpiryTime();
void AddOrRevokeUid();
/**
* Shows a combobox with all trust levels
@@ -81,6 +87,8 @@ private:
*/
void OnExpiryClicked(WTreeTableNode * subkeyNode, const WString& keyFpr);
void OnUidEmailClicked(WTreeTableNode * uidNode, const WString& keyFpr);
};
#endif /* KEYEDIT_H */