mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +08:00
[FSD] Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
efee7968dc
commit
0876379729
@@ -630,22 +630,6 @@ namespace BlackCore
|
|||||||
sendQueudedMessage(clientQuery);
|
sendQueudedMessage(clientQuery);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Send FSD message
|
|
||||||
template <class T>
|
|
||||||
void sendMessage(const T &message)
|
|
||||||
{
|
|
||||||
if (!message.isValid()) return;
|
|
||||||
|
|
||||||
const QString payload = message.toTokens().join(':');
|
|
||||||
const QString line = message.pdu() + payload;
|
|
||||||
const QString buffer = line + "\r\n";
|
|
||||||
const QByteArray bufferEncoded = m_fsdTextCodec->fromUnicode(buffer);
|
|
||||||
emitRawFsdMessage(buffer.trimmed(), true);
|
|
||||||
if (m_printToConsole) { qDebug() << "FSD Sent=>" << bufferEncoded; }
|
|
||||||
if (!m_unitTestMode) { m_socket.write(bufferEncoded); }
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
|
|
||||||
void CFSDClient::sendMessageString(const QString &message)
|
void CFSDClient::sendMessageString(const QString &message)
|
||||||
{
|
{
|
||||||
if (message.isEmpty()) { return; }
|
if (message.isEmpty()) { return; }
|
||||||
|
|||||||
@@ -428,7 +428,6 @@ namespace BlackCore
|
|||||||
SimType m_simType = SimType::Unknown;
|
SimType m_simType = SimType::Unknown;
|
||||||
PilotRating m_pilotRating = PilotRating::Unknown;
|
PilotRating m_pilotRating = PilotRating::Unknown;
|
||||||
AtcRating m_atcRating = AtcRating::Unknown;
|
AtcRating m_atcRating = AtcRating::Unknown;
|
||||||
QString m_com1Frequency;
|
|
||||||
|
|
||||||
// Parser
|
// Parser
|
||||||
QHash<QString, MessageType> m_messageTypeMapping;
|
QHash<QString, MessageType> m_messageTypeMapping;
|
||||||
|
|||||||
Reference in New Issue
Block a user