mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
Style
This commit is contained in:
@@ -377,7 +377,7 @@ namespace BlackCore
|
|||||||
void CAirspaceMonitor::onCapabilitiesReplyReceived(const CCallsign &callsign, int clientCaps)
|
void CAirspaceMonitor::onCapabilitiesReplyReceived(const CCallsign &callsign, int clientCaps)
|
||||||
{
|
{
|
||||||
if (!this->isConnectedAndNotShuttingDown() || callsign.isEmpty()) { return; }
|
if (!this->isConnectedAndNotShuttingDown() || callsign.isEmpty()) { return; }
|
||||||
CClient::Capabilities caps = static_cast<CClient::Capabilities>(clientCaps);
|
const CClient::Capabilities caps = static_cast<CClient::Capabilities>(clientCaps);
|
||||||
const CVoiceCapabilities voiceCaps = sApp->getWebDataServices()->getVoiceCapabilityForCallsign(callsign);
|
const CVoiceCapabilities voiceCaps = sApp->getWebDataServices()->getVoiceCapabilityForCallsign(callsign);
|
||||||
CPropertyIndexVariantMap vm(CClient::IndexCapabilities, CVariant::from(clientCaps));
|
CPropertyIndexVariantMap vm(CClient::IndexCapabilities, CVariant::from(clientCaps));
|
||||||
vm.addValue({CClient::IndexVoiceCapabilities}, voiceCaps);
|
vm.addValue({CClient::IndexVoiceCapabilities}, voiceCaps);
|
||||||
@@ -511,7 +511,7 @@ namespace BlackCore
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
const CStatusMessage m = CMatchingUtils::logMessage(callsign, "Ignoring this aircraft, not found in range list, disconnected, or no callsign", CAirspaceMonitor::getLogCategories());
|
const CStatusMessage m = CMatchingUtils::logMessage(callsign, "Ignoring this aircraft, not found in range list, disconnected, or no callsign", CAirspaceMonitor::getLogCategories(), CStatusMessage::SeverityWarning);
|
||||||
this->addReverseLookupMessage(callsign, m);
|
this->addReverseLookupMessage(callsign, m);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -924,14 +924,16 @@ namespace BlackCore
|
|||||||
Q_UNUSED(oldStatus);
|
Q_UNUSED(oldStatus);
|
||||||
switch (newStatus)
|
switch (newStatus)
|
||||||
{
|
{
|
||||||
case INetwork::Connected: break;
|
case INetwork::Connected:
|
||||||
|
break;
|
||||||
case INetwork::Disconnected:
|
case INetwork::Disconnected:
|
||||||
case INetwork::DisconnectedError:
|
case INetwork::DisconnectedError:
|
||||||
case INetwork::DisconnectedLost:
|
case INetwork::DisconnectedLost:
|
||||||
case INetwork::DisconnectedFailed:
|
case INetwork::DisconnectedFailed:
|
||||||
this->clear();
|
this->clear();
|
||||||
break;
|
break;
|
||||||
default: break;
|
default:
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -83,7 +83,7 @@ namespace BlackCore
|
|||||||
static IContextAudio *create(CCoreFacade *runtime, CCoreFacadeConfig::ContextMode mode, BlackMisc::CDBusServer *server, QDBusConnection &connection);
|
static IContextAudio *create(CCoreFacade *runtime, CCoreFacadeConfig::ContextMode mode, BlackMisc::CDBusServer *server, QDBusConnection &connection);
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~IContextAudio() {}
|
virtual ~IContextAudio() override {}
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
//! Voice rooms changed
|
//! Voice rooms changed
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ namespace BlackCore
|
|||||||
|
|
||||||
CLivery CModelDataReader::smartLiverySelector(const CLivery &liveryPattern) const
|
CLivery CModelDataReader::smartLiverySelector(const CLivery &liveryPattern) const
|
||||||
{
|
{
|
||||||
const CLiveryList liveries(getLiveries()); // thread safe copy
|
const CLiveryList liveries(this->getLiveries()); // thread safe copy
|
||||||
return liveries.smartLiverySelector(liveryPattern);
|
return liveries.smartLiverySelector(liveryPattern);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -127,8 +127,8 @@ namespace BlackCore
|
|||||||
else { invalidLines++; }
|
else { invalidLines++; }
|
||||||
}
|
}
|
||||||
|
|
||||||
CLogMessage(this).debug() << "METAR statistic: " << metars.size() << "Metars ( invalid:" << invalidLines << ")";
|
static const QString ms("METAR statistic: %1 Metars (invalid %2)");
|
||||||
|
CLogMessage(this).debug() << ms.arg(metars.size()).arg(invalidLines);
|
||||||
{
|
{
|
||||||
QWriteLocker l(&m_lock);
|
QWriteLocker l(&m_lock);
|
||||||
m_metars = metars;
|
m_metars = metars;
|
||||||
|
|||||||
@@ -27,7 +27,6 @@ class QDragEnterEvent;
|
|||||||
class QDragLeaveEvent;
|
class QDragLeaveEvent;
|
||||||
class QDragMoveEvent;
|
class QDragMoveEvent;
|
||||||
class QDropEvent;
|
class QDropEvent;
|
||||||
class QWidget;
|
|
||||||
|
|
||||||
namespace Ui { class CDbAircraftIcaoSelectorComponent; }
|
namespace Ui { class CDbAircraftIcaoSelectorComponent; }
|
||||||
namespace BlackGui
|
namespace BlackGui
|
||||||
@@ -39,7 +38,7 @@ namespace BlackGui
|
|||||||
*/
|
*/
|
||||||
class BLACKGUI_EXPORT CDbAircraftIcaoSelectorComponent :
|
class BLACKGUI_EXPORT CDbAircraftIcaoSelectorComponent :
|
||||||
public QFrame,
|
public QFrame,
|
||||||
public BlackGui::CDropBase
|
public CDropBase
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|||||||
@@ -25,8 +25,6 @@ namespace BlackGui
|
|||||||
class BLACKGUI_EXPORT CDbMappingComponentAware
|
class BLACKGUI_EXPORT CDbMappingComponentAware
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
||||||
//! Set the corresponding component
|
//! Set the corresponding component
|
||||||
virtual void setMappingComponent(CDbMappingComponent *component);
|
virtual void setMappingComponent(CDbMappingComponent *component);
|
||||||
|
|
||||||
|
|||||||
@@ -76,7 +76,7 @@ namespace BlackMisc
|
|||||||
CRegularThread(QObject *parent = nullptr) : QThread(parent) {}
|
CRegularThread(QObject *parent = nullptr) : QThread(parent) {}
|
||||||
|
|
||||||
//! Destructor
|
//! Destructor
|
||||||
virtual ~CRegularThread();
|
virtual ~CRegularThread() override;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! \copydoc QThread::run
|
//! \copydoc QThread::run
|
||||||
|
|||||||
Reference in New Issue
Block a user