QtPass 1.7.0
Multi-platform GUI for pass, the standard unix password manager.
Loading...
Searching...
No Matches
NamedValues Class Reference

The NamedValues class is mostly a list of NamedValue but also has a method to take a specific NamedValue pair out of the list. More...

#include <filecontent.h>

Inheritance diagram for NamedValues:
Collaboration diagram for NamedValues:

Public Member Functions

 NamedValues (std::initializer_list< NamedValue > values)
 Construct a NamedValues list from an initializer list.
auto takeValue (const QString &name) -> QString
 Remove and return the value for the named field.

Detailed Description

The NamedValues class is mostly a list of NamedValue but also has a method to take a specific NamedValue pair out of the list.

Definition at line 33 of file filecontent.h.

Constructor & Destructor Documentation

◆ NamedValues()

NamedValues::NamedValues ( std::initializer_list< NamedValue > values)

Construct a NamedValues list from an initializer list.

Parameters
valuesInitial set of NamedValue pairs.

Member Function Documentation

◆ takeValue()

auto NamedValues::takeValue ( const QString & name) -> QString

Remove and return the value for the named field.

Parameters
nameField name to look up and remove.
Returns
The value of the removed field, or an empty string if not found.

The documentation for this class was generated from the following file: