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 
36 class GpgInfo {
37  public:
38  QString GnuPGHomePath;
39 
40  std::map<QString, std::vector<QString>> ComponentsInfo;
41  std::map<QString, std::vector<QString>> ConfigurationsInfo;
42  std::map<QString, std::vector<QString>> OptionsInfo;
43  std::map<QString, std::vector<QString>> AvailableOptionsInfo;
44 };
45 
51  QString name;
52  QString desc;
53  QString version;
54  QString path;
55  QString binary_checksum;
56 
57  GpgComponentInfo() = default;
58 
59  explicit GpgComponentInfo(const QJsonObject &j);
60 
61  [[nodiscard]] auto Json() const -> QJsonObject;
62 };
63 
69  QString name;
70  QString flags;
71  QString level;
72  QString description;
73  QString type;
74  QString alt_type;
75  QString argname;
76  QString default_value;
77  QString argdef;
78  QString value;
79 
80  GpgOptionsInfo() = default;
81 
82  explicit GpgOptionsInfo(const QJsonObject &j);
83 
84  [[nodiscard]] auto Json() const -> QJsonObject;
85 };
86 
87 } // namespace GpgFrontend::Module::Integrated::GnuPGInfoGatheringModule
Use to record some info about gnupg.
Definition: GpgInfo.h:36
QString GnuPGHomePath
value of —homedir
Definition: GpgInfo.h:38
Definition: GnuPGInfoGatheringModule.cpp:38
Use to record some info about gnupg components.
Definition: GpgInfo.h:50