mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-05 01:05:34 +08:00
Style
This commit is contained in:
committed by
Mat Sutcliffe
parent
8194726857
commit
53de0d56b9
@@ -461,7 +461,7 @@ namespace BlackCore
|
||||
// threadsafe copies
|
||||
const auto transceivers = this->getTransceivers();
|
||||
const auto enabledTransceivers = this->getEnabledTransceivers();
|
||||
const QString callsign = this->getCallsign();
|
||||
const QString callsign = this->getCallsign(); // threadsafe
|
||||
|
||||
// transceivers
|
||||
QVector<TransceiverDto> newEnabledTransceivers;
|
||||
@@ -963,7 +963,7 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
// in connection and soundcard only use the enabled tarnsceivers
|
||||
const QString callsign = this->getCallsign();
|
||||
const QString callsign = this->getCallsign(); // threadsafe
|
||||
{
|
||||
{
|
||||
QMutexLocker lock(&m_mutexConnection);
|
||||
|
||||
@@ -89,7 +89,7 @@ namespace BlackCore
|
||||
//! Connect to network
|
||||
//! \threadsafe
|
||||
//! \remark runs in thread of CAfvClient object and is ASYNC when called from another thread
|
||||
Q_INVOKABLE void connectTo(const QString &cid, const QString &password, const QString &getCallsign, const QString &client);
|
||||
Q_INVOKABLE void connectTo(const QString &cid, const QString &password, const QString &callsign, const QString &client);
|
||||
|
||||
//! Disconnect from network
|
||||
//! \threadsafe
|
||||
|
||||
@@ -32,7 +32,7 @@ class QDBusConnection;
|
||||
namespace BlackMisc
|
||||
{
|
||||
class CGenericDBusInterface;
|
||||
namespace Audio { class CAudioDeviceInfo; }
|
||||
namespace Audio { class CAudioDeviceInfo; }
|
||||
namespace Aviation { class CCallsign; }
|
||||
}
|
||||
|
||||
@@ -84,4 +84,5 @@ namespace BlackCore
|
||||
};
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
#endif // guard
|
||||
|
||||
@@ -485,7 +485,7 @@ namespace BlackCore
|
||||
freqkHz = freqkHz / 10 * 10;
|
||||
}
|
||||
frequencies.push_back(freqkHz);
|
||||
sendRadioMessage(frequencies, message.getMessage());
|
||||
this->sendRadioMessage(frequencies, message.getMessage());
|
||||
emit this->textMessageSent(message);
|
||||
}
|
||||
}
|
||||
@@ -523,7 +523,7 @@ namespace BlackCore
|
||||
}
|
||||
|
||||
const TextMessage radioMessage(m_ownCallsign.asString(), receivers.join('&'), message);
|
||||
sendMessage(radioMessage);
|
||||
this->sendMessage(radioMessage);
|
||||
this->increaseStatisticsValue(QStringLiteral("sendTextMessages"));
|
||||
}
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ namespace BlackCore
|
||||
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); }
|
||||
if (!m_unitTestMode) { m_socket.write(bufferEncoded); }
|
||||
}
|
||||
|
||||
//! Default model string
|
||||
|
||||
Reference in New Issue
Block a user