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 "import_export/KeyServerImportDialog.h"
33 #include "import_export/KeyUploadDialog.h"
34 #include "ui/GpgFrontendUI.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_;
67 
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
GpgFrontend::beautify_fingerprint
GPGFRONTEND_CORE_EXPORT std::string beautify_fingerprint(BypeArrayConstRef fingerprint)
Definition: GpgConstants.cpp:87
GpgFrontend::UI::KeyPairDetailTab::expire_var_label_
QLabel * expire_var_label_
Label containing the keys expiration date.
Definition: KeyPairDetailTab.h:73
GpgFrontend::UI
Definition: VerifyDetailsDialog.cpp:33
GpgFrontend::UI::KeyPairDetailTab::fingerprint_box_
QGroupBox * fingerprint_box_
Groupbox containing fingerprint information.
Definition: KeyPairDetailTab.h:65
GpgFrontend::GpgKey::GetId
std::string GetId() const
Definition: GpgKey.cpp:54
GpgFrontend::GpgKey::IsHasSigningCapability
bool IsHasSigningCapability() const
Definition: GpgKey.cpp:121
GpgFrontend::UI::KeyPairDetailTab::owner_box_
QGroupBox * owner_box_
Groupbox containing owner information.
Definition: KeyPairDetailTab.h:63
GpgFrontend::SingletonFunctionObject< GpgKeyGetter >::GetInstance
static GpgKeyGetter & GetInstance(int channel=GpgFrontend::GPGFRONTEND_DEFAULT_CHANNEL)
Get the Instance object.
Definition: GpgFunctionObject.h:181
GpgFrontend::GpgKey::IsHasActualCertificationCapability
bool IsHasActualCertificationCapability() const
Definition: GpgKey.cpp:207
GpgFrontend::UI::KeyPairDetailTab::slot_copy_fingerprint
void slot_copy_fingerprint()
Definition: KeyPairDetailTab.cpp:164
GpgFrontend::UI::KeyPairDetailTab::email_var_label_
QLabel * email_var_label_
Label containing the keys email.
Definition: KeyPairDetailTab.h:70
GpgFrontend::UI::KeyPairDetailTab::additional_uid_box_
QGroupBox * additional_uid_box_
Definition: KeyPairDetailTab.h:66
GpgFrontend::GpgKeyGetter
Definition: GpgKeyGetter.h:45
GpgFrontend::UI::KeyPairDetailTab::key_size_var_label_
QLabel * key_size_var_label_
Label containing the keys key size.
Definition: KeyPairDetailTab.h:72
GpgFrontend::GpgKey::GetComment
std::string GetComment() const
Definition: GpgKey.cpp:66
GpgFrontend::UI::KeyPairDetailTab::key_id_var_label
QLabel * key_id_var_label
Label containing the keys keyid.
Definition: KeyPairDetailTab.h:77
GpgFrontend::UI::KeyPairDetailTab::created_var_label_
QLabel * created_var_label_
Label containing the keys creation date.
Definition: KeyPairDetailTab.h:74
GpgFrontend::GpgKey::GetEmail
std::string GetEmail() const
Definition: GpgKey.cpp:62
GpgFrontend::GpgKey::GetSubKeys
std::unique_ptr< std::vector< GpgSubKey > > GetSubKeys() const
Definition: GpgKey.cpp:153
GpgFrontend::UI::KeyPairDetailTab::algorithm_var_label_
QLabel * algorithm_var_label_
Label containing the keys algorithm.
Definition: KeyPairDetailTab.h:76
GpgFrontend::GpgKey::GetCreateTime
boost::posix_time::ptime GetCreateTime() const
Create a time object.
Definition: GpgKey.cpp:109
GpgFrontend::UI::KeyPairDetailTab::KeyPairDetailTab
KeyPairDetailTab(const std::string &key_id, QWidget *parent=nullptr)
Construct a new Key Pair Detail Tab object.
Definition: KeyPairDetailTab.cpp:35
GpgFrontend::GpgKey::IsHasActualEncryptionCapability
bool IsHasActualEncryptionCapability() const
Definition: GpgKey.cpp:216
GpgFrontend::GpgKeyGetter::GetKey
GpgKey GetKey(const std::string &id, bool use_cache=true)
Get the Key object.
Definition: GpgKeyGetter.cpp:47
GpgFrontend::GpgKey::IsHasActualSigningCapability
bool IsHasActualSigningCapability() const
Definition: GpgKey.cpp:174
GpgFrontend::GpgKey::IsHasActualAuthenticationCapability
bool IsHasActualAuthenticationCapability() const
Definition: GpgKey.cpp:188
GpgFrontend::GpgKey::IsPrivateKey
bool IsPrivateKey() const
Definition: GpgKey.cpp:140
GpgFrontend::UI::KeyPairDetailTab::comment_var_label_
QLabel * comment_var_label_
Label containing the keys comment.
Definition: KeyPairDetailTab.h:71
GpgFrontend::GpgKey::GetPrimaryKeyLength
unsigned int GetPrimaryKeyLength() const
s
Definition: GpgKey.cpp:113
GpgFrontend::GpgKey::GetPublicKeyAlgo
std::string GetPublicKeyAlgo() const
Definition: GpgKey.cpp:96
GpgFrontend::GpgKey::GetExpireTime
boost::posix_time::ptime GetExpireTime() const
Definition: GpgKey.cpp:105
GpgFrontend::UI::KeyPairDetailTab::name_var_label_
QLabel * name_var_label_
Label containing the keys name.
Definition: KeyPairDetailTab.h:69
GpgFrontend::GpgKey::IsHasAuthenticationCapability
bool IsHasAuthenticationCapability() const
Definition: GpgKey.cpp:129
GpgFrontend::GpgKey::IsExpired
bool IsExpired() const
Definition: GpgKey.cpp:142
GpgFrontend::UI::SignalStation::GetInstance
static SignalStation * GetInstance()
Get the Instance object.
Definition: SignalStation.cpp:37
GpgFrontend::UI::KeyPairDetailTab::fingerprint_var_label_
QLabel * fingerprint_var_label_
Label containing the keys fingerprint.
Definition: KeyPairDetailTab.h:78
GpgFrontend::UI::KeyPairDetailTab
Definition: KeyPairDetailTab.h:38
GpgFrontend::UI::KeyPairDetailTab::key_box_
QGroupBox * key_box_
Groupbox containing key information.
Definition: KeyPairDetailTab.h:64
GpgFrontend::GpgKey::IsRevoked
bool IsRevoked() const
Definition: GpgKey.cpp:144
GpgFrontend::GpgKey::IsHasEncryptionCapability
bool IsHasEncryptionCapability() const
Definition: GpgKey.cpp:117
GpgFrontend::GpgKey::IsHasCertificationCapability
bool IsHasCertificationCapability() const
Definition: GpgKey.cpp:125
GpgFrontend::GpgKey::IsHasMasterKey
bool IsHasMasterKey() const
Definition: GpgKey.cpp:148
GpgFrontend::GpgKey::GetLastUpdateTime
boost::posix_time::ptime GetLastUpdateTime() const
Definition: GpgKey.cpp:100
GpgFrontend::GpgKey::GetFingerprint
std::string GetFingerprint() const
Definition: GpgKey.cpp:70
GpgFrontend::GpgKey
Definition: GpgKey.h:44
GpgFrontend::GpgKey::GetName
std::string GetName() const
Definition: GpgKey.cpp:58