GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyPackageOperator.h
1 
29 #pragma once
30 
31 #include "core/function/gpg/GpgKeyImportExporter.h"
32 #include "core/typedef/CoreTypedef.h"
33 
34 namespace GpgFrontend {
35 
40 class GPGFRONTEND_CORE_EXPORT KeyPackageOperator {
41  public:
50  static auto GeneratePassphrase(const QString &phrase_path, QString &phrase)
51  -> bool;
52 
58  static auto GenerateKeyPackageName() -> QString;
59 
71  static void GenerateKeyPackage(const QString &key_package_path,
72  const QString &key_package_name,
73  const KeyArgsList &keys, QString &phrase,
74  bool secret, const OperationCallback &cb);
75 
85  static void ImportKeyPackage(const QString &key_package_path,
86  const QString &phrase_path,
87  const OperationCallback &cb);
88 
89  private:
95  static auto generate_key_package_name() -> QString;
96 };
97 } // namespace GpgFrontend
give the possibility to import or export a key package
Definition: KeyPackageOperator.h:40
Definition: app.cpp:39