Allow to create keys.

A popup shows required parameters. Created keys are added to the list of
secret keys managed by the user.
This commit is contained in:
SET
2020-11-13 18:28:17 +01:00
parent b9b4396b12
commit 1b73407db2
11 changed files with 565 additions and 5 deletions

View File

@@ -24,6 +24,7 @@
#include "AppConfig.h"
#include "PopupUploader.h"
#include "PopupDeleter.h"
#include "PopupCreate.h"
#include "TransientMessageWidget.h"
#include "KeyEdit.h"
#include "global.h"
@@ -54,12 +55,14 @@ private:
WPushButton * m_btnUpload;
WPushButton * m_btnImport;
WPushButton * m_btnDelete ;
WPushButton * m_btnCreate ;
WTreeTable * m_ttbKeys;
WTreeTable * m_ttbUids;
WTreeTable * m_ttbSubKeys;
Uploader * m_uploader;
Deleter * m_deleter;
KeyEdit * m_keyEdit;
PopupCreate * m_popupCreate;
/**
* Finds public keys as per criteria,
* and private keys if any is declared in config file for current client.
@@ -121,6 +124,14 @@ private:
* Translates unit time to readable date.
*/
WString MakeDateTimeLabel(time_t ticks);
/**
* Shows a non-blocking popup to create keys.
*/
void ShowPopupCreate();
/**
* Validates input and creates the keys.
*/
void DoCreateKey();
};
#endif /* K7MAIN_H */