Ref T706, some fixes around the ATIS voiceroom URL issue

Discord: https://discordapp.com/channels/539048679160676382/602915311380987905/602917602293055489
This commit is contained in:
Klaus Basan
2019-07-22 22:25:20 +02:00
committed by Mat Sutcliffe
parent e5205bef1f
commit ee5f1d329d
9 changed files with 41 additions and 26 deletions

View File

@@ -298,7 +298,7 @@ namespace BlackCore
return stations.front();
}
void CAirspaceMonitor::requestDataUpdates()
void CAirspaceMonitor::requestAircraftDataUpdates()
{
if (!this->isConnectedAndNotShuttingDown()) { return; }
const CSimulatedAircraftList aircraftInRange(this->getAircraftInRange());
@@ -323,7 +323,8 @@ namespace BlackCore
const CAtcStationList stations(this->getAtcStationsOnline());
for (const CAtcStation &station : stations)
{
m_network->sendAtisQuery(station.getCallsign()); // for each online station
const CCallsign cs = station.getCallsign();
m_network->sendAtisQuery(cs); // for each online station
}
}
@@ -722,8 +723,11 @@ namespace BlackCore
this->updateBookedStation(callsign, vm);
// receiving voice room means ATC has voice
vm = CPropertyIndexVariantMap(CClient::IndexVoiceCapabilities, CVariant::from(CVoiceCapabilities::fromVoiceCapabilities(CVoiceCapabilities::Voice)));
this->updateOrAddClient(callsign, vm, false);
if (!trimmedUrl.isEmpty())
{
vm = CPropertyIndexVariantMap(CClient::IndexVoiceCapabilities, CVariant::from(CVoiceCapabilities::fromVoiceCapabilities(CVoiceCapabilities::Voice)));
this->updateOrAddClient(callsign, vm, false);
}
}
void CAirspaceMonitor::onAtisLogoffTimeReceived(const CCallsign &callsign, const QString &zuluTime)