#include "gpgkeystate.h"
#include "gpgkeystate_p.h"
#include "util.h"
#include <QRegularExpression>
Go to the source code of this file.
◆ classifyRecord()
| auto classifyRecord |
( |
const QString & | record_type | ) |
-> GpgRecordType |
Classify a GPG colon output record type.
- Parameters
-
| record_type | The first field of a GPG colon record (e.g., "pub", "sec", "uid") |
- Returns
- The corresponding GpgRecordType enum value
Definition at line 23 of file gpgkeystate.cpp.
◆ handleFprRecord()
| void handleFprRecord |
( |
const QStringList & | props, |
|
|
UserInfo & | current_user ) |
Handle an fpr (fingerprint) record in GPG colon output.
- Parameters
-
| props | The colon-split fields of the record |
| current_user | UserInfo to update with fingerprint if it matches key |
Definition at line 94 of file gpgkeystate.cpp.
◆ handlePubSecRecord()
| void handlePubSecRecord |
( |
const QStringList & | props, |
|
|
bool | secret, |
|
|
UserInfo & | current_user ) |
Handle a pub or sec record in GPG colon output.
- Parameters
-
| props | The colon-split fields of the record |
| secret | True if this is a secret key record (sec) |
| current_user | UserInfo to populate with key data |
Definition at line 54 of file gpgkeystate.cpp.
◆ handleUidRecord()
| void handleUidRecord |
( |
const QStringList & | props, |
|
|
UserInfo & | current_user ) |
Handle a uid record in GPG colon output.
- Parameters
-
| props | The colon-split fields of the record |
| current_user | UserInfo to populate with user name |
Definition at line 85 of file gpgkeystate.cpp.
◆ parseGpgColonOutput()
| auto parseGpgColonOutput |
( |
const QString & | output, |
|
|
bool | secret ) -> QList< UserInfo > |
◆ GPG_FIELD_CREATED
| int GPG_FIELD_CREATED = 5 |
|
constexpr |
◆ GPG_FIELD_EXPIRY
◆ GPG_FIELD_KEY_ID
◆ GPG_FIELD_USERID
◆ GPG_FIELD_VALIDITY
| int GPG_FIELD_VALIDITY = 1 |
|
constexpr |
◆ GPG_MIN_FIELDS