QtCraft API C++ classes QML types Handbook

QcControlAdminCommands Class

Control commands of the admin channel (decision E-848), for tests and automation: admin sends one request and answers with its result and the report it brought, adminFollow chooses the topics followed, adminStatus reports what arrived of them. More...

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

Public Functions

void registerCommands(QcControlCommandTable &table)

Static Public Members

const int answerTicks
std::optional<QcMsg::AdminRequest::Kind> kindNamed(const QString &name)

Detailed Description

The bot must be an operator on the server; otherwise the server refuses and the command fails.

Member Function Documentation

[static] std::optional<QcMsg::AdminRequest::Kind> QcControlAdminCommands::kindNamed(const QString &name)

Returns the request kind of the control name name ("kick", "whitelistAdd"); std::nullopt for unknown names.

void QcControlAdminCommands::registerCommands(QcControlCommandTable &table)

Adds the commands of this group to table.

Member Variable Documentation

const int QcControlAdminCommands::answerTicks

Ticks admin waits for the server's answer.