GpgFrontend Project
A Free, Powerful, Easy-to-Use, Compact, Cross-Platform, and Installation-Free OpenPGP(pgp) Crypto Tool.
KeyPairDetailTab.h
1 
27 #ifndef GPGFRONTEND_KEYPAIRDETAILTAB_H
28 #define GPGFRONTEND_KEYPAIRDETAILTAB_H
29 
30 #include "KeySetExpireDateDialog.h"
31 #include "core/GpgContext.h"
32 #include "ui/GpgFrontendUI.h"
33 #include "ui/dialog/import_export/KeyServerImportDialog.h"
34 #include "ui/dialog/import_export/KeyUploadDialog.h"
35 
36 namespace GpgFrontend::UI {
37 
38 class KeyPairDetailTab : public QWidget {
39  Q_OBJECT
40 
41  private slots:
42 
46  void slot_copy_fingerprint();
47 
52  void slot_refresh_key_info();
53 
58  void slot_refresh_key();
59 
60  private:
61  GpgKey key_;
62 
63  QGroupBox* owner_box_;
64  QGroupBox* key_box_;
65  QGroupBox* fingerprint_box_;
66  QGroupBox* additional_uid_box_;
68 
69  QLabel* name_var_label_;
70  QLabel* email_var_label_;
75  QLabel* last_update_var_label_;
77  QLabel* key_id_var_label;
79  QLabel* usage_var_label_;
80  QLabel* actual_usage_var_label_;
81  QLabel* primary_key_exist_var_label_;
82 
83  QLabel* icon_label_;
84  QLabel* exp_label_;
85 
86  public:
93  explicit KeyPairDetailTab(const std::string& key_id,
94  QWidget* parent = nullptr);
95 };
96 
97 } // namespace GpgFrontend::UI
98 
99 #endif // GPGFRONTEND_KEYPAIRDETAILTAB_H
Definition: GpgKey.h:41
Definition: KeyPairDetailTab.h:38
QLabel * key_size_var_label_
Label containing the keys key size.
Definition: KeyPairDetailTab.h:72
QLabel * fingerprint_var_label_
Label containing the keys fingerprint.
Definition: KeyPairDetailTab.h:78
QGroupBox * additional_uid_box_
Definition: KeyPairDetailTab.h:66
QLabel * key_id_var_label
Label containing the keys keyid.
Definition: KeyPairDetailTab.h:77
KeyPairDetailTab(const std::string &key_id, QWidget *parent=nullptr)
Construct a new Key Pair Detail Tab object.
Definition: KeyPairDetailTab.cpp:36
QLabel * comment_var_label_
Label containing the keys comment.
Definition: KeyPairDetailTab.h:71
QLabel * email_var_label_
Label containing the keys email.
Definition: KeyPairDetailTab.h:70
QLabel * name_var_label_
Label containing the keys name.
Definition: KeyPairDetailTab.h:69
QLabel * created_var_label_
Label containing the keys creation date.
Definition: KeyPairDetailTab.h:74
QLabel * algorithm_var_label_
Label containing the keys algorithm.
Definition: KeyPairDetailTab.h:76
QGroupBox * key_box_
Groupbox containing key information.
Definition: KeyPairDetailTab.h:64
QGroupBox * owner_box_
Groupbox containing owner information.
Definition: KeyPairDetailTab.h:63
QGroupBox * fingerprint_box_
Groupbox containing fingerprint information.
Definition: KeyPairDetailTab.h:65
QLabel * expire_var_label_
Label containing the keys expiration date.
Definition: KeyPairDetailTab.h:73
void slot_copy_fingerprint()
Definition: KeyPairDetailTab.cpp:165
Definition: FileReadTask.cpp:31