mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-04 08:36:52 +08:00
refs #432 Doxygen, formatting, added new file types in *.pro
Minor tweaks: * GUI infobar minimum size * toogle lock protected * removed unused function * ASSERT_X * object name
This commit is contained in:
@@ -174,6 +174,7 @@ namespace BlackCore
|
||||
|
||||
bool CAirspaceMonitor::updateFastPositionEnabled(const CCallsign &callsign, bool enableFastPositonUpdates, const BlackMisc::COriginator &originator)
|
||||
{
|
||||
//! \fixme CAirspaceMonitor: If in the long term originator is not used, remove from signature
|
||||
Q_UNUSED(originator);
|
||||
CPropertyIndexVariantMap vm(CSimulatedAircraft::IndexFastPositionUpdates, CVariant::fromValue(enableFastPositonUpdates));
|
||||
QWriteLocker l(&m_lockAircraft);
|
||||
@@ -183,6 +184,7 @@ namespace BlackCore
|
||||
|
||||
bool CAirspaceMonitor::updateAircraftRendered(const CCallsign &callsign, bool rendered, const BlackMisc::COriginator &originator)
|
||||
{
|
||||
//! \fixme CAirspaceMonitor: If in the long term originator is not used, remove from signature
|
||||
Q_UNUSED(originator);
|
||||
CPropertyIndexVariantMap vm(CSimulatedAircraft::IndexRendered, CVariant::fromValue(rendered));
|
||||
QWriteLocker l(&m_lockAircraft);
|
||||
@@ -192,6 +194,7 @@ namespace BlackCore
|
||||
|
||||
void CAirspaceMonitor::updateMarkAllAsNotRendered(const BlackMisc::COriginator &originator)
|
||||
{
|
||||
//! \fixme CAirspaceMonitor: If in the long term originator is not used, remove from signature
|
||||
Q_UNUSED(originator);
|
||||
QWriteLocker l(&m_lockAircraft);
|
||||
m_aircraftInRange.markAllAsNotRendered();
|
||||
|
||||
@@ -38,9 +38,6 @@ namespace BlackCore
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Constructor
|
||||
*/
|
||||
IContextApplication::IContextApplication(CRuntimeConfig::ContextMode mode, CRuntime *runtime) :
|
||||
CContext(mode, runtime)
|
||||
{
|
||||
|
||||
@@ -113,14 +113,6 @@ namespace BlackCore
|
||||
return !this->m_contextApplication->isUsingImplementingObject();
|
||||
}
|
||||
|
||||
bool CRuntime::canPingApplicationContext() const
|
||||
{
|
||||
Q_ASSERT(this->m_contextApplication);
|
||||
if (this->m_contextApplication->isUsingImplementingObject()) return true;
|
||||
qint64 token = QDateTime::currentMSecsSinceEpoch();
|
||||
return (token == this->m_contextApplication->ping(token));
|
||||
}
|
||||
|
||||
void CRuntime::registerMetadata()
|
||||
{
|
||||
BlackMisc::registerMetadata();
|
||||
|
||||
@@ -148,9 +148,6 @@ namespace BlackCore
|
||||
//! Remote application context, indicates distributed environment
|
||||
bool hasRemoteApplicationContext() const;
|
||||
|
||||
//! Is application context available?
|
||||
bool canPingApplicationContext() const;
|
||||
|
||||
//! Register metadata
|
||||
static void registerMetadata();
|
||||
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace BlackCore
|
||||
CPluginStorageAware(pluginStorageProvider),
|
||||
m_simulatorPluginInfo(info)
|
||||
{
|
||||
this->setObjectName(info.getIdentifier());
|
||||
this->setObjectName("Simulator:" + info.getIdentifier());
|
||||
|
||||
// provider signals
|
||||
m_remoteAircraftProviderConnections = this->m_remoteAircraftProvider->connectRemoteAircraftProviderSignals(
|
||||
|
||||
Reference in New Issue
Block a user