Home
Base module

TransactionState

State machine states for PacketTransaction.

TransactionState

#include <icy/packettransaction.h>

Inherits: State

State machine states for PacketTransaction.

Public Methods

ReturnNameDescription
std::stringstr const inline#### Parameters

str

const inline

inline std::string str(unsigned int id) const

Parameters

  • id A [TransactionState::Type](#type-2) value.

Returns

Human-readable name of the state.

Public Types

NameDescription
Type

Type

enum Type
ValueDescription
Waiting
Running
Success
Cancelled
Failed