QtPass 1.4.0
Multi-platform GUI for pass, the standard unix password manager.
|
#include <filecontent.h>
Public Member Functions | |
QString | getPassword () const |
NamedValues | getNamedValues () const |
QString | getRemainingData () const |
QString | getRemainingDataForDisplay () const |
Static Public Member Functions | |
static FileContent | parse (const QString &fileContent, const QStringList &templateFields, bool allFields) |
parse parses the given fileContent in a FileContent object. The password is accessible through getPassword. The named value pairs (name: value) are parsed and depeding on the templateFields and allFields parameters accessible through getNamedValues, getRemainingData or getRemainingDataForDisplay. | |
Definition at line 25 of file filecontent.h.
NamedValues FileContent::getNamedValues | ( | ) | const |
Definition at line 38 of file filecontent.cpp.
QString FileContent::getPassword | ( | ) | const |
Definition at line 36 of file filecontent.cpp.
QString FileContent::getRemainingData | ( | ) | const |
Definition at line 40 of file filecontent.cpp.
QString FileContent::getRemainingDataForDisplay | ( | ) | const |
@like getRemainingData but without data that should not be displayed (like a TOTP secret).
Definition at line 42 of file filecontent.cpp.
|
static |
parse parses the given fileContent in a FileContent object. The password is accessible through getPassword. The named value pairs (name: value) are parsed and depeding on the templateFields and allFields parameters accessible through getNamedValues, getRemainingData or getRemainingDataForDisplay.
fileContent | the file content to parse. |
templateFields | the fields in the template. Fields in the template will always be in getNamedValues() at the beginning of the list in the same order. |
allFields | whether all fields should be considered as named values. If set to false only templateFields are returned in getNamedValues(). |
Definition at line 7 of file filecontent.cpp.