QtPass
2.0.0
Developer documentation
Toggle main menu visibility
Loading...
Searching...
No Matches
gpgkeystate.h
Go to the documentation of this file.
1
// SPDX-FileCopyrightText: 2026 Anne Jan Brouwer
2
// SPDX-License-Identifier: GPL-3.0-or-later
8
#ifndef SRC_GPGKEYSTATE_H_
9
#define SRC_GPGKEYSTATE_H_
10
11
#include "
userinfo.h
"
12
13
#include <QList>
14
#include <QString>
15
#include <QStringList>
16
21
enum class
GpgRecordType
{
22
Unknown
,
23
Pub
,
24
Sec
,
25
Uid
,
26
Fpr
,
27
Sub
,
28
Ssb
,
29
Grp
30
};
31
38
GpgRecordType
classifyRecord
(
const
QString &record_type);
39
53
QList<UserInfo>
parseGpgColonOutput
(
const
QString &output,
bool
secret);
54
72
QString
primaryFingerprintOf
(
const
QString &output,
const
QString &key);
73
74
#endif
// SRC_GPGKEYSTATE_H_
parseGpgColonOutput
auto parseGpgColonOutput(const QString &output, bool secret) -> QList< UserInfo >
Parse a gpg colon listing into one UserInfo per key.
Definition
gpgkeystate.cpp:112
primaryFingerprintOf
auto primaryFingerprintOf(const QString &output, const QString &key) -> QString
The primary key fingerprint of the key that key names.
Definition
gpgkeystate.cpp:160
classifyRecord
auto classifyRecord(const QString &record_type) -> GpgRecordType
Classify a record of a gpg colon listing by its first field.
Definition
gpgkeystate.cpp:34
GpgRecordType
GpgRecordType
The record types of a gpg --with-colons listing that the parser tells apart; the first field of each ...
Definition
gpgkeystate.h:21
GpgRecordType::Grp
@ Grp
Definition
gpgkeystate.h:29
GpgRecordType::Sec
@ Sec
Definition
gpgkeystate.h:24
GpgRecordType::Uid
@ Uid
Definition
gpgkeystate.h:25
GpgRecordType::Unknown
@ Unknown
Definition
gpgkeystate.h:22
GpgRecordType::Pub
@ Pub
Definition
gpgkeystate.h:23
GpgRecordType::Fpr
@ Fpr
Definition
gpgkeystate.h:26
GpgRecordType::Sub
@ Sub
Definition
gpgkeystate.h:27
GpgRecordType::Ssb
@ Ssb
Definition
gpgkeystate.h:28
userinfo.h
UserInfo, one GPG key as listed by gpg, with the selection flag the recipient dialogs use.
src
gpgkeystate.h
Generated by
1.18.0