GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
GpgInfo.h
1 
29 #pragma once
30 
31 #include <QJsonObject>
32 #include <QString>
33 #include <map>
34 
39 class GpgInfo {
40  public:
41  QString GnuPGHomePath;
42 
43  std::map<QString, std::vector<QString>> ComponentsInfo;
44  std::map<QString, std::vector<QString>> ConfigurationsInfo;
45  std::map<QString, std::vector<QString>> OptionsInfo;
46  std::map<QString, std::vector<QString>> AvailableOptionsInfo;
47 };
48 
54  QString name;
55  QString desc;
56  QString version;
57  QString path;
58  QString binary_checksum;
59 
60  GpgComponentInfo() = default;
61 
62  explicit GpgComponentInfo(const QJsonObject &j);
63 
64  [[nodiscard]] auto Json() const -> QJsonObject;
65 };
66 
72  QString name;
73  QString flags;
74  QString level;
75  QString description;
76  QString type;
77  QString alt_type;
78  QString argname;
79  QString default_value;
80  QString argdef;
81  QString value;
82 
83  GpgOptionsInfo() = default;
84 
85  explicit GpgOptionsInfo(const QJsonObject &j);
86 
87  [[nodiscard]] auto Json() const -> QJsonObject;
88 };
Use to record some info about gnupg.
Definition: GpgInfo.h:39
QString GnuPGHomePath
value of —homedir
Definition: GpgInfo.h:41
Use to record some info about gnupg components.
Definition: GpgInfo.h:53
Definition: GpgInfo.h:71