GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
ExportKeyPackageDialog.h
1 
29 #ifndef GPGFRONTEND_EXPORTKEYPACKAGEDIALOG_H
30 #define GPGFRONTEND_EXPORTKEYPACKAGEDIALOG_H
31 
32 #include "GpgFrontendUI.h"
33 
34 class Ui_exportKeyPackageDialog;
35 
36 namespace GpgFrontend::UI {
37 
42 class ExportKeyPackageDialog : public QDialog {
43  Q_OBJECT
44 
45  public:
52  explicit ExportKeyPackageDialog(KeyIdArgsListPtr key_ids, QWidget* parent);
53 
54  private:
55  std::shared_ptr<Ui_exportKeyPackageDialog> ui_;
56  KeyIdArgsListPtr key_ids_;
57  std::string passphrase_;
58 };
59 } // namespace GpgFrontend::UI
60 
61 #endif // GPGFRONTEND_EXPORTKEYPACKAGEDIALOG_H
GpgFrontend::UI
Definition: FileReadTask.cpp:31
GpgFrontend::UI::ExportKeyPackageDialog
Definition: ExportKeyPackageDialog.h:42
GpgFrontend::KeyPackageOperator::GenerateKeyPackageName
static std::string GenerateKeyPackageName()
generate the name of the key package
Definition: KeyPackageOperator.cpp:116
GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance
static GpgKeyGetter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:181
GpgFrontend::KeyPackageOperator::GenerateKeyPackage
static bool GenerateKeyPackage(const std::filesystem::path &key_package_path, const std::string &key_package_name, KeyIdArgsListPtr &key_ids, std::string &phrase, bool secret)
generate key package
Definition: KeyPackageOperator.cpp:46
GpgFrontend::UI::ExportKeyPackageDialog::ExportKeyPackageDialog
ExportKeyPackageDialog(KeyIdArgsListPtr key_ids, QWidget *parent)
Construct a new Export Key Package Dialog object.
Definition: ExportKeyPackageDialog.cpp:37
GpgFrontend::GpgKeyGetter::GetKeys
KeyListPtr GetKeys(const KeyIdArgsListPtr &ids)
Get the Keys object.
Definition: GpgKeyGetter.cpp:148