FOSSredder 0.5.0
Loading...
Searching...
No Matches
ui::payload::contract_allocatable_mode Namespace Reference

Functions

QVariantList options (const QString &mixed, const QString &allocatable, const QString &nonAllocatable)
 Builds contract allocatable mode options.
QString modeAt (const QVariantList &options, int index)
 Reads the allocatable mode at an option index.
int indexForMode (const QVariantList &options, const QString &mode)
 Finds the option index for an allocatable mode.

Variables

const auto kMixed = QStringLiteral("mixed")
const auto kAllocatable = QStringLiteral("allocatable")
const auto kNonAllocatable = QStringLiteral("non-allocatable")

Function Documentation

◆ indexForMode()

int ui::payload::contract_allocatable_mode::indexForMode ( const QVariantList & options,
const QString & mode )
inline

Finds the option index for an allocatable mode.

Parameters
optionsAllocatable mode option rows.
modeAllocatable mode key.
Returns
Matching option index or 0.

Definition at line 294 of file PayloadMapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ modeAt()

QString ui::payload::contract_allocatable_mode::modeAt ( const QVariantList & options,
int index )
inline

Reads the allocatable mode at an option index.

Parameters
optionsAllocatable mode option rows.
indexOption index.
Returns
Allocatable mode key.

Definition at line 284 of file PayloadMapper.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ options()

QVariantList ui::payload::contract_allocatable_mode::options ( const QString & mixed,
const QString & allocatable,
const QString & nonAllocatable )
inline

Builds contract allocatable mode options.

Parameters
mixedMixed-mode label.
allocatableAllocatable label.
nonAllocatableNon-allocatable label.
Returns
Contract allocatable mode option rows.

Definition at line 268 of file PayloadMapper.h.

Here is the caller graph for this function:

Variable Documentation

◆ kAllocatable

const auto ui::payload::contract_allocatable_mode::kAllocatable = QStringLiteral("allocatable")
inline

Definition at line 258 of file PayloadMapper.h.

◆ kMixed

const auto ui::payload::contract_allocatable_mode::kMixed = QStringLiteral("mixed")
inline

Definition at line 257 of file PayloadMapper.h.

◆ kNonAllocatable

const auto ui::payload::contract_allocatable_mode::kNonAllocatable = QStringLiteral("non-allocatable")
inline

Definition at line 259 of file PayloadMapper.h.