mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-01 05:26:45 +08:00
refs #395, improved synchronization of booked and online stations
* moved sync functionality into CAtcStation * consolidated function names
This commit is contained in:
committed by
Mathew Sutcliffe
parent
f7158f17f9
commit
79e2a7b805
@@ -45,6 +45,17 @@ namespace BlackCore
|
||||
return this->m_atcStations;
|
||||
}
|
||||
|
||||
CAtcStationList CVatsimDataFileReader::getAtcStationsForCallsign(const CCallsign &callsign) const
|
||||
{
|
||||
CCallsignSet cs({callsign});
|
||||
return this->getAtcStationsForCallsigns(cs);
|
||||
}
|
||||
|
||||
CAtcStationList CVatsimDataFileReader::getAtcStationsForCallsigns(const CCallsignSet &callsigns) const
|
||||
{
|
||||
return this->getAtcStations().findByCallsigns(callsigns);
|
||||
}
|
||||
|
||||
CServerList CVatsimDataFileReader::getVoiceServers() const
|
||||
{
|
||||
QReadLocker rl(&this->m_lock);
|
||||
@@ -64,8 +75,7 @@ namespace BlackCore
|
||||
|
||||
CUserList CVatsimDataFileReader::getPilotsForCallsign(const CCallsign &callsign)
|
||||
{
|
||||
CCallsignSet callsigns;
|
||||
callsigns.push_back(callsign);
|
||||
CCallsignSet callsigns({callsign});
|
||||
return this->getPilotsForCallsigns(callsigns);
|
||||
}
|
||||
|
||||
@@ -95,16 +105,8 @@ namespace BlackCore
|
||||
|
||||
CUserList CVatsimDataFileReader::getControllersForCallsign(const CCallsign &callsign)
|
||||
{
|
||||
CCallsignSet callsigns;
|
||||
callsigns.push_back(callsign);
|
||||
return this->getControllersForCallsigns(callsigns);
|
||||
}
|
||||
|
||||
CUserList CVatsimDataFileReader::getUsersForCallsign(const CCallsign &callsign)
|
||||
{
|
||||
CCallsignSet callsigns;
|
||||
callsigns.push_back(callsign);
|
||||
return this->getUsersForCallsigns(callsigns);
|
||||
CCallsignSet cs({callsign});
|
||||
return this->getControllersForCallsigns(cs);
|
||||
}
|
||||
|
||||
CUserList CVatsimDataFileReader::getControllersForCallsigns(const CCallsignSet &callsigns)
|
||||
@@ -112,6 +114,12 @@ namespace BlackCore
|
||||
return this->getAtcStations().findByCallsigns(callsigns).transform(Predicates::MemberTransform(&CAtcStation::getController));
|
||||
}
|
||||
|
||||
CUserList CVatsimDataFileReader::getUsersForCallsign(const CCallsign &callsign)
|
||||
{
|
||||
CCallsignSet callsigns({callsign});
|
||||
return this->getUsersForCallsigns(callsigns);
|
||||
}
|
||||
|
||||
CUserList CVatsimDataFileReader::getUsersForCallsigns(const CCallsignSet &callsigns)
|
||||
{
|
||||
CUserList users;
|
||||
|
||||
Reference in New Issue
Block a user