|
FOSSredder 0.5.0
|
Declarations for the UI payload mapper helpers. More...
#include <QMetaType>#include <QStringList>#include <QVariant>#include <QVariantList>#include <QVariantMap>#include <string>#include <vector>#include "ui/presentation/PayloadKeys.h"

Go to the source code of this file.
Namespaces | |
| namespace | ui |
| namespace | ui::payload |
| namespace | ui::payload::mapper |
| namespace | ui::payload::transaction_status |
| namespace | ui::payload::contract_allocatable_mode |
Functions | |
| QStringList | ui::payload::mapper::toQStringList (const std::vector< std::string > &values) |
| Converts standard strings to a Qt string list. | |
| QVariantList | ui::payload::mapper::toVariantStringList (const std::vector< std::string > &values) |
| Converts standard strings to a QVariant string list. | |
| QVariantList | ui::payload::mapper::toVariantStringList (const QStringList &values) |
| Converts Qt strings to a QVariant string list. | |
| QStringList | ui::payload::mapper::toQStringList (const QVariantList &values) |
| Converts a QVariant list to a Qt string list. | |
| QVariantList | ui::payload::mapper::toVariantList (const QVariant &value) |
| Converts a QVariant value to a QVariantList. | |
| QVariantMap | ui::payload::mapper::mapAt (const QVariantList &rows, int index) |
| Returns a map at an index in a row list. | |
| QString | ui::payload::mapper::rowId (const QVariantMap &row) |
| Reads a row id. | |
| QString | ui::payload::mapper::rowType (const QVariantMap &row) |
| Reads a row type. | |
| QString | ui::payload::mapper::rowDisplayName (const QVariantMap &row) |
| Reads a row display name. | |
| int | ui::payload::mapper::rowIntValue (const QVariantMap &row, int fallback=0) |
| Reads an integer row value. | |
| QString | ui::payload::mapper::rowStringValue (const QVariantMap &row, const QString &fallback={}) |
| Reads a string row value. | |
| int | ui::payload::mapper::indexById (const QVariantList &rows, const QString &id) |
| Finds the index of a row id. | |
| QString | ui::payload::mapper::stringValue (const QVariantMap &map, const QString &key) |
| Reads a string value from a map. | |
| QVariantList | ui::payload::mapper::listValue (const QVariantMap &map, const QString &key) |
| Reads a list value from a map. | |
| QStringList | ui::payload::mapper::stringListValue (const QVariantMap &map, const QString &key) |
| Reads a string list value from a map. | |
| QVariantList | ui::payload::transaction_status::options (const QString &neutral, const QString &unverified, const QString &verified, const QString &completed) |
| Builds transaction status options. | |
| int | ui::payload::transaction_status::statusAt (const QVariantList &options, int index) |
| Reads the status value at an option index. | |
| int | ui::payload::transaction_status::indexForStatus (const QVariantList &options, int status) |
| Finds the option index for a transaction status. | |
| QVariantList | ui::payload::contract_allocatable_mode::options (const QString &mixed, const QString &allocatable, const QString &nonAllocatable) |
| Builds contract allocatable mode options. | |
| QString | ui::payload::contract_allocatable_mode::modeAt (const QVariantList &options, int index) |
| Reads the allocatable mode at an option index. | |
| int | ui::payload::contract_allocatable_mode::indexForMode (const QVariantList &options, const QString &mode) |
| Finds the option index for an allocatable mode. | |
Variables | |
| constexpr int | ui::payload::transaction_status::kNeutral = 0 |
| constexpr int | ui::payload::transaction_status::kUnverified = 1 |
| constexpr int | ui::payload::transaction_status::kVerified = 2 |
| constexpr int | ui::payload::transaction_status::kCompleted = 3 |
| const auto | ui::payload::contract_allocatable_mode::kMixed = QStringLiteral("mixed") |
| const auto | ui::payload::contract_allocatable_mode::kAllocatable = QStringLiteral("allocatable") |
| const auto | ui::payload::contract_allocatable_mode::kNonAllocatable = QStringLiteral("non-allocatable") |
Declarations for the UI payload mapper helpers.
Definition in file PayloadMapper.h.