QtPass 2.0.0
Developer documentation
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
31
38GpgRecordType classifyRecord(const QString &record_type);
39
53QList<UserInfo> parseGpgColonOutput(const QString &output, bool secret);
54
72QString primaryFingerprintOf(const QString &output, const QString &key);
73
74#endif // SRC_GPGKEYSTATE_H_
auto parseGpgColonOutput(const QString &output, bool secret) -> QList< UserInfo >
Parse a gpg colon listing into one UserInfo per key.
auto primaryFingerprintOf(const QString &output, const QString &key) -> QString
The primary key fingerprint of the key that key names.
auto classifyRecord(const QString &record_type) -> GpgRecordType
Classify a record of a gpg colon listing by its first field.
GpgRecordType
The record types of a gpg --with-colons listing that the parser tells apart; the first field of each ...
Definition gpgkeystate.h:21
UserInfo, one GPG key as listed by gpg, with the selection flag the recipient dialogs use.