12 using namespace swift::misc::aviation;
14 namespace swift::core::fsd
16 VisualPilotDataToggle::VisualPilotDataToggle(
const QString &sender,
const QString &client,
bool active)
17 :
MessageBase(sender, {}), m_client(client), m_active(active)
31 if (tokens.
size() < 3)
37 return { tokens[0], tokens[1], tokens[2] == QStringLiteral(
"1") };
QString m_sender
message sender
Message from server to start or stop sending visual pilot data updates.
static VisualPilotDataToggle fromTokens(const QStringList &tokens)
Construct from tokens.
QString m_client
Properties.
QStringList toTokens() const
Message converted to tokens.
Class for emitting a log message.
Derived & debug()
Set the severity to debug.
Free functions in swift::misc.
void push_back(QList< T >::parameter_type value)
qsizetype size() const const
QString number(double n, char format, int precision)