mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
refs #288, added FSD servers to VATSIM reader
* Voice and FSD servers can be obtained via context * using QSCopedPointer for network reply * minor fixes / renaming
This commit is contained in:
committed by
Roland Winklmeier
parent
adba17da0f
commit
a401ce439d
@@ -53,6 +53,10 @@ namespace BlackCore
|
||||
//! \threadsafe
|
||||
BlackMisc::Network::CServerList getVoiceServers() const;
|
||||
|
||||
//! Get all FSD servers
|
||||
//! \threadsafe
|
||||
BlackMisc::Network::CServerList getFsdServers() const;
|
||||
|
||||
//! Users for callsign(s)
|
||||
//! \threadsafe
|
||||
BlackMisc::Network::CUserList getUsersForCallsigns(const BlackMisc::Aviation::CCallsignList &callsigns);
|
||||
@@ -98,6 +102,7 @@ namespace BlackCore
|
||||
int m_currentUrlIndex;
|
||||
QNetworkAccessManager *m_networkManager;
|
||||
BlackMisc::Network::CServerList m_voiceServers;
|
||||
BlackMisc::Network::CServerList m_fsdServers;
|
||||
BlackMisc::Aviation::CAtcStationList m_atcStations;
|
||||
BlackMisc::Aviation::CAircraftList m_aircrafts;
|
||||
QMap<BlackMisc::Aviation::CCallsign, BlackMisc::Network::CVoiceCapabilities> m_voiceCapabilities;
|
||||
@@ -109,13 +114,17 @@ namespace BlackCore
|
||||
enum Section
|
||||
{
|
||||
SectionNone,
|
||||
SectionVoiceServer,
|
||||
SectionFsdServers,
|
||||
SectionVoiceServers,
|
||||
SectionClients,
|
||||
SectionGeneral
|
||||
};
|
||||
|
||||
//! Get current section
|
||||
static Section currentLineToSection(const QString ¤tLine);
|
||||
|
||||
//! Parse the VATSIM data file in backgroun
|
||||
void parseVatsimFileInBackground(QNetworkReply *nwReply);
|
||||
void parseVatsimFileInBackground(QNetworkReply *nwReplyPtr);
|
||||
|
||||
signals:
|
||||
//! Data have been read
|
||||
|
||||
Reference in New Issue
Block a user