QtPass 1.6.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 ()
 Default constructor for NamedValues.
 NamedValues (std::initializer_list< NamedValue > values)
 Constructs NamedValues from initializer list.
auto takeValue (const QString &name) -> QString
 Finds and removes a named value by name.

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 23 of file filecontent.h.

Constructor & Destructor Documentation

◆ NamedValues() [1/2]

NamedValues::NamedValues ( )
default

Default constructor for NamedValues.

◆ NamedValues() [2/2]

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

Constructs NamedValues from initializer list.

Parameters
valuesInitializer list of NamedValue

Definition at line 110 of file filecontent.cpp.

Member Function Documentation

◆ takeValue()

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

Finds and removes a named value by name.

Parameters
nameThe name to search for
Returns
The value if found, empty string otherwise

Definition at line 118 of file filecontent.cpp.

Here is the caller graph for this function:

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