mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Doxygen, style
This commit is contained in:
committed by
Mat Sutcliffe
parent
52ce9f9205
commit
0fa9bcb520
@@ -1049,7 +1049,6 @@ namespace BlackCore
|
|||||||
const CAtcStationList matchingAtcStations = sApp->getIContextNetwork()->getOnlineStationsForFrequency(f, spacing);
|
const CAtcStationList matchingAtcStations = sApp->getIContextNetwork()->getOnlineStationsForFrequency(f, spacing);
|
||||||
const CAtcStation closest = matchingAtcStations.findClosest(1, sApp->getIContextOwnAircraft()->getOwnAircraftSituation().getPosition()).frontOrDefault();
|
const CAtcStation closest = matchingAtcStations.findClosest(1, sApp->getIContextOwnAircraft()->getOwnAircraftSituation().getPosition()).frontOrDefault();
|
||||||
|
|
||||||
|
|
||||||
if (fuzzyMatchCallSign(it->name, closest.getCallsign().asString()))
|
if (fuzzyMatchCallSign(it->name, closest.getCallsign().asString()))
|
||||||
{
|
{
|
||||||
// this is how it should be
|
// this is how it should be
|
||||||
|
|||||||
@@ -56,6 +56,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
// split parser values
|
// split parser values
|
||||||
if (IContextNetwork::getCmdLineOptions().isEmpty()) { return false; } // no such option, avoid warnings
|
if (IContextNetwork::getCmdLineOptions().isEmpty()) { return false; } // no such option, avoid warnings
|
||||||
|
if (!sApp) { return false; }
|
||||||
const QString clientIdAndKey = sApp->getParserValue("clientIdAndKey").toLower();
|
const QString clientIdAndKey = sApp->getParserValue("clientIdAndKey").toLower();
|
||||||
if (clientIdAndKey.isEmpty() || !clientIdAndKey.contains(':')) { return false; }
|
if (clientIdAndKey.isEmpty() || !clientIdAndKey.contains(':')) { return false; }
|
||||||
const QStringList stringList = clientIdAndKey.split(':');
|
const QStringList stringList = clientIdAndKey.split(':');
|
||||||
|
|||||||
@@ -235,8 +235,9 @@ namespace BlackCore
|
|||||||
void killRequestReceived(const QString &reason);
|
void killRequestReceived(const QString &reason);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
//! \private
|
//! \cond
|
||||||
friend BlackFsdTest::CTestFSDClient;
|
friend BlackFsdTest::CTestFSDClient;
|
||||||
|
//! \endcond
|
||||||
|
|
||||||
//! Send FSD message
|
//! Send FSD message
|
||||||
template <class T>
|
template <class T>
|
||||||
|
|||||||
@@ -33,7 +33,7 @@ namespace BlackCore
|
|||||||
//! PDU identifier
|
//! PDU identifier
|
||||||
static QString pdu() { return "$PO"; }
|
static QString pdu() { return "$PO"; }
|
||||||
|
|
||||||
QString m_timestamp;
|
QString m_timestamp; //!< timestamp
|
||||||
|
|
||||||
private:
|
private:
|
||||||
Pong();
|
Pong();
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ namespace BlackCore
|
|||||||
{
|
{
|
||||||
namespace Fsd
|
namespace Fsd
|
||||||
{
|
{
|
||||||
//! From/to string serialization @{
|
//! \cond
|
||||||
template<typename T>
|
template<typename T>
|
||||||
inline QString toQString(const T& value);
|
inline QString toQString(const T& value);
|
||||||
|
|
||||||
@@ -79,7 +79,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
template<>
|
template<>
|
||||||
AtisLineType fromQString(const QString &str);
|
AtisLineType fromQString(const QString &str);
|
||||||
//! @}
|
//! \endcond
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ int main(int argc, char *argv[])
|
|||||||
//! [SwiftApplicationDemo]
|
//! [SwiftApplicationDemo]
|
||||||
CGuiApplication::highDpiScreenSupport(CGuiApplication::parseScaleFactor(argc, argv));
|
CGuiApplication::highDpiScreenSupport(CGuiApplication::parseScaleFactor(argc, argv));
|
||||||
QApplication qa(argc, argv);
|
QApplication qa(argc, argv);
|
||||||
Q_UNUSED(qa); // application init needed
|
Q_UNUSED(qa) // application init needed
|
||||||
|
|
||||||
CCrashHandler::instance()->init();
|
CCrashHandler::instance()->init();
|
||||||
CSwiftGuiStdApplication a; // application with contexts
|
CSwiftGuiStdApplication a; // application with contexts
|
||||||
|
|||||||
@@ -88,7 +88,7 @@ bool CSwiftGuiStdApplication::parsingHookIn()
|
|||||||
const QString dBusAddress(this->getCmdDBusAddressValue());
|
const QString dBusAddress(this->getCmdDBusAddressValue());
|
||||||
if (!dBusAddress.isEmpty())
|
if (!dBusAddress.isEmpty())
|
||||||
{
|
{
|
||||||
// check if rechable
|
// check if reachable
|
||||||
if (!CDBusServer::isDBusAvailable(dBusAddress))
|
if (!CDBusServer::isDBusAvailable(dBusAddress))
|
||||||
{
|
{
|
||||||
this->cmdLineErrorMessage("DBus server at '" + dBusAddress + "' can not be reached");
|
this->cmdLineErrorMessage("DBus server at '" + dBusAddress + "' can not be reached");
|
||||||
|
|||||||
Reference in New Issue
Block a user