|
QtPass 2.0.0
Developer documentation
|
Pass, the abstract password-store backend that RealPass and ImitatePass implement, and gpgErrorMessage(), which turns gpg's stderr into a message for the user. More...
#include "appsettings.h"#include "enums.h"#include "executor.h"#include "gpgidgeneration.h"#include "userinfo.h"#include <QProcess>#include <QProcessEnvironment>#include <QQueue>#include <QSet>#include <QString>#include <QStringList>#include <QHash>#include <cassert>#include <map>#include <optional>Go to the source code of this file.
Classes | |
| struct | ResolvedGpgconfCommand |
| Represents a command invocation for gpgconf operations. More... | |
| class | Pass |
| Abstract base class for password store operations. More... | |
| struct | Pass::SkippedWalk |
| What skippedGpgId() found on its way up from one folder. More... | |
| struct | Pass::EditReaders |
| What saving over an existing entry would change about who reads it (readersAnEditWouldAdd()). More... | |
| struct | Pass::RecipientsForEditing |
| What a dialog may do with the list of a folder (recipientsForEditing()). More... | |
| struct | Pass::ExpectedList |
| What initIfUnchanged() expects the list to read as, for refuseChangedList(); empty outside it. More... | |
Functions | |
| QString | gpgErrorMessage (const QString &err) |
| Maps GPG stderr (which may include –status-fd 2 tokens) to a translated user-friendly encryption error string. | |
Pass, the abstract password-store backend that RealPass and ImitatePass implement, and gpgErrorMessage(), which turns gpg's stderr into a message for the user.
Definition in file pass.h.
| QString gpgErrorMessage | ( | const QString & | err | ) |
Maps GPG stderr (which may include –status-fd 2 tokens) to a translated user-friendly encryption error string.
Checks machine-readable [GNUPG:] status tokens first (locale-independent), then falls back to case-insensitive substring matching for GPG builds that do not emit status tokens. Returns an empty string when no known pattern matches.
Declared here so it can be exercised by unit tests without linking the full Pass object.
| err | gpg's stderr, with or without [GNUPG:] status lines. |
Definition at line 808 of file pass.cpp.