QtCraft API C++ classes QML types Handbook

QcControlCommandTable Class

The control commands by name, each served by one of the command groups. More...

Header: #include <clientcore/control/QcControlCommandTable.h>

Public Types

Handler

Public Functions

QcControlCommandTable(const QcControlCommandTable &)
QcControlCommandTable(QcControlCommandTable &&)
~QcControlCommandTable()
void add(const QString &name, const QcControlCommandTable::Handler &handler)
const QcControlCommandTable::Handler *find(const QString &name) const
QcVirtualGamepadSource &virtualGamepads()
QcControlCommandTable &operator=(QcControlCommandTable &&)
QcControlCommandTable &operator=(const QcControlCommandTable &)

Detailed Description

Member Type Documentation

[alias] QcControlCommandTable::Handler

Serves one request of the command.

Member Function Documentation

[delete] QcControlCommandTable::QcControlCommandTable(const QcControlCommandTable &)

Copy-constructs an instance of QcControlCommandTable. This function is deleted.

[delete] QcControlCommandTable::QcControlCommandTable(QcControlCommandTable &&)

Move-constructs an instance of QcControlCommandTable. This function is deleted.

[noexcept default] QcControlCommandTable::~QcControlCommandTable()

Destroys the instance of QcControlCommandTable.

void QcControlCommandTable::add(const QString &name, const QcControlCommandTable::Handler &handler)

Adds the command name, served by handler.

const QcControlCommandTable::Handler *QcControlCommandTable::find(const QString &name) const

Returns the handler of the command name; nullptr for an unknown command.

QcVirtualGamepadSource &QcControlCommandTable::virtualGamepads()

Returns the virtual gamepads of the gamepad commands (decision E-540).

[delete] QcControlCommandTable &QcControlCommandTable::operator=(QcControlCommandTable &&)

Move-assigns other to this QcControlCommandTable instance. This function is deleted.

[delete] QcControlCommandTable &QcControlCommandTable::operator=(const QcControlCommandTable &)

Copy-assigns other to this QcControlCommandTable instance. This function is deleted.