KeyPairDetailTab.h
#ifndef GPGFRONTEND_KEYPAIRDETAILTAB_H
#define GPGFRONTEND_KEYPAIRDETAILTAB_H
#include "KeySetExpireDateDialog.h"
#include "core/GpgContext.h"
#include "ui/GpgFrontendUI.h"
#include "ui/dialog/import_export/KeyServerImportDialog.h"
#include "ui/dialog/import_export/KeyUploadDialog.h"
namespace GpgFrontend::UI {
class KeyPairDetailTab : public QWidget {
Q_OBJECT
private slots:
void slot_copy_fingerprint();
void slot_refresh_key_info();
void slot_refresh_key();
private:
GpgKey key_;
QGroupBox* owner_box_;
QGroupBox* key_box_;
QGroupBox* fingerprint_box_;
QGroupBox* additional_uid_box_;
QLabel* name_var_label_;
QLabel* email_var_label_;
QLabel* comment_var_label_;
QLabel* key_size_var_label_;
QLabel* expire_var_label_;
QLabel* created_var_label_;
QLabel* last_update_var_label_;
QLabel* algorithm_var_label_;
QLabel* key_id_var_label;
QLabel* fingerprint_var_label_;
QLabel* usage_var_label_;
QLabel* actual_usage_var_label_;
QLabel* primary_key_exist_var_label_;
QLabel* icon_label_;
QLabel* exp_label_;
public:
explicit KeyPairDetailTab(const std::string& key_id,
QWidget* parent = nullptr);
};
} // namespace GpgFrontend::UI
#endif // GPGFRONTEND_KEYPAIRDETAILTAB_H
GpgFrontend::beautify_fingerprint
GPGFRONTEND_CORE_EXPORT std::string beautify_fingerprint(BypeArrayConstRef fingerprint)
Definition: GpgConstants.cpp:90
GpgFrontend::UI::KeyPairDetailTab::expire_var_label_
QLabel * expire_var_label_
Label containing the keys expiration date.
Definition: KeyPairDetailTab.h:73
GpgFrontend::UI
Definition: FileReadTask.cpp:31
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:52
GpgFrontend::GpgKey::IsHasSigningCapability
bool IsHasSigningCapability() const
Definition: GpgKey.cpp:119
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:170
GpgFrontend::GpgKey::IsHasActualCertificationCapability
bool IsHasActualCertificationCapability() const
Definition: GpgKey.cpp:205
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:64
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:60
GpgFrontend::GpgKey::GetSubKeys
std::unique_ptr< std::vector< GpgSubKey > > GetSubKeys() const
Definition: GpgKey.cpp:151
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:107
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:214
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:172
GpgFrontend::GpgKey::IsHasActualAuthenticationCapability
bool IsHasActualAuthenticationCapability() const
Definition: GpgKey.cpp:186
GpgFrontend::GpgKey::IsPrivateKey
bool IsPrivateKey() const
Definition: GpgKey.cpp:138
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:111
GpgFrontend::GpgKey::GetPublicKeyAlgo
std::string GetPublicKeyAlgo() const
Definition: GpgKey.cpp:94
GpgFrontend::GpgKey::GetExpireTime
boost::posix_time::ptime GetExpireTime() const
Definition: GpgKey.cpp:103
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:127
GpgFrontend::GpgKey::IsExpired
bool IsExpired() const
Definition: GpgKey.cpp:140
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:142
GpgFrontend::GpgKey::IsHasEncryptionCapability
bool IsHasEncryptionCapability() const
Definition: GpgKey.cpp:115
GpgFrontend::GpgKey::IsHasCertificationCapability
bool IsHasCertificationCapability() const
Definition: GpgKey.cpp:123
GpgFrontend::GpgKey::IsHasMasterKey
bool IsHasMasterKey() const
Definition: GpgKey.cpp:146
GpgFrontend::GpgKey::GetLastUpdateTime
boost::posix_time::ptime GetLastUpdateTime() const
Definition: GpgKey.cpp:98
GpgFrontend::GpgKey::GetFingerprint
std::string GetFingerprint() const
Definition: GpgKey.cpp:68
GpgFrontend::GpgKey
Definition: GpgKey.h:41
GpgFrontend::GpgKey::GetName
std::string GetName() const
Definition: GpgKey.cpp:56