QtPass 1.6.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
gpgkeystate.h File Reference
#include "userinfo.h"
#include <QList>
#include <QString>
#include <QStringList>
Include dependency graph for gpgkeystate.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum class  GpgRecordType {
  Unknown , Pub , Sec , Uid ,
  Fpr , Sub , Ssb , Grp
}

Functions

GpgRecordType classifyRecord (const QString &record_type)
 Classify a GPG colon output record type.
QList< UserInfoparseGpgColonOutput (const QString &output, bool secret)
 Parse GPG –with-colons output into a list of UserInfo.

Enumeration Type Documentation

◆ GpgRecordType

enum class GpgRecordType
strong
Enumerator
Unknown 
Pub 
Sec 
Uid 
Fpr 
Sub 
Ssb 
Grp 

Definition at line 12 of file gpgkeystate.h.

Function Documentation

◆ classifyRecord()

GpgRecordType classifyRecord ( const QString & record_type) -> GpgRecordType

Classify a GPG colon output record type.

Parameters
record_typeThe 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.

Here is the caller graph for this function:

◆ parseGpgColonOutput()

QList< UserInfo > parseGpgColonOutput ( const QString & output,
bool secret ) -> QList< UserInfo >

Parse GPG –with-colons output into a list of UserInfo.

Parameters
outputRaw output from GPG –with-colons –with-fingerprint
secretTrue if parsing secret keys (–list-secret-keys)
Returns
QList of parsed UserInfo objects

Definition at line 110 of file gpgkeystate.cpp.

Here is the call graph for this function:
Here is the caller graph for this function: