QtCraft API C++ classes QML types Handbook

QcMsg::Disconnect Struct

struct QcMsg::Disconnect

Both directions: the connection ends. More...

Header: #include <common/protocol/QcSessionMessages.h>

Public Variables

QStringList arguments
QString key
QString reason

Static Public Members

const quint32 maxArguments

Detailed Description

reason is the English text; a non-empty key with its arguments lets the client show it translated like a chat line (QcChatText, decision E-094).

Member Variable Documentation

QStringList Disconnect::arguments

The arguments of the key's text.

QString Disconnect::key

The translation key; may be empty.

const quint32 Disconnect::maxArguments

The most arguments; the decoder refuses more.

QString Disconnect::reason

The English text.