8 namespace swift::core::fsd
10 ClientIdentification::ClientIdentification() : MessageBase() {}
12 ClientIdentification::ClientIdentification(
const QString &sender, quint16 clientId,
const QString &clientName,
13 int clientVersionMajor,
int clientVersionMinor,
const QString &userCid,
14 const QString &sysUid,
const QString &initialChallenge)
15 :
MessageBase(sender,
"SERVER"), m_clientId(clientId), m_clientName(clientName),
16 m_clientVersionMajor(clientVersionMajor), m_clientVersionMinor(clientVersionMinor), m_userCid(userCid),
17 m_sysUid(sysUid), m_initialChallenge(initialChallenge)
22 auto tokens = QStringList {};
25 tokens.push_back(QString::number(
m_clientId, 16));
37 if (tokens.size() < 8)
40 .
warning(u
"Wrong number of arguments.");
44 ClientIdentification packet(tokens[0], tokens[2].toUShort(
nullptr, 16), tokens[3], tokens[4].toInt(),
45 tokens[5].toInt(), tokens[6], tokens[7], tokens.size() > 8 ? tokens[8] : QString());
This packet is sent by any client that supports the VATSIM client authentication protocol,...
QString m_userCid
Properties.
QString m_initialChallenge
Properties.
QStringList toTokens() const
Message converted to tokens.
static ClientIdentification fromTokens(const QStringList &tokens)
Construct from tokens.
QString m_sysUid
Properties.
int m_clientVersionMajor
Properties.
int m_clientVersionMinor
Properties.
QString m_clientName
Properties.
std::uint16_t m_clientId
Properties.
QString m_receiver
message receiver
QString m_sender
message sender
Class for emitting a log message.
Derived & warning(const char16_t(&format)[N])
Set the severity to warning, providing a format string.