mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
Move URLs getter to cpp. This is a tweak so I can easily change the URLs for testing.
This commit is contained in:
committed by
Mathew Sutcliffe
parent
991cc3463d
commit
8119aafca4
@@ -179,6 +179,21 @@ namespace BlackCore
|
||||
return urls.appendPath(CGlobalSetup::versionString() + "/dbdata/");
|
||||
}
|
||||
|
||||
const CUrlList &CGlobalSetup::getSwiftLatestNewsUrls() const
|
||||
{
|
||||
return m_newsUrls;
|
||||
}
|
||||
|
||||
const CUrlList &CGlobalSetup::getOnlineHelpUrls() const
|
||||
{
|
||||
return m_onlineHelpUrls;
|
||||
}
|
||||
|
||||
const CUrlList &CGlobalSetup::getSwiftMapUrls() const
|
||||
{
|
||||
return m_mapUrls;
|
||||
}
|
||||
|
||||
CServerList CGlobalSetup::getFsdTestServersPlusHardcodedServers() const
|
||||
{
|
||||
static const CServerList hardcoded({ CServer("swift", "swift Testserver", "vatsim-germany.org", 6809, CUser("1234567", "swift Test User", "", "123456"), CServer::FSDServerVatsim, true) });
|
||||
|
||||
@@ -141,13 +141,13 @@ namespace BlackCore
|
||||
BlackMisc::Network::CUrlList getSwiftDbDataFileLocationUrls() const;
|
||||
|
||||
//! Locations of swift DB news
|
||||
const BlackMisc::Network::CUrlList &getSwiftLatestNewsUrls() const { return m_newsUrls; }
|
||||
const BlackMisc::Network::CUrlList &getSwiftLatestNewsUrls() const;
|
||||
|
||||
//! Online help URLs
|
||||
const BlackMisc::Network::CUrlList &getOnlineHelpUrls() const { return m_onlineHelpUrls; }
|
||||
const BlackMisc::Network::CUrlList &getOnlineHelpUrls() const;
|
||||
|
||||
//! swift map URLs
|
||||
const BlackMisc::Network::CUrlList &getSwiftMapUrls() const { return m_mapUrls; }
|
||||
const BlackMisc::Network::CUrlList &getSwiftMapUrls() const;
|
||||
|
||||
//! FSD test servers
|
||||
const BlackMisc::Network::CServerList &getFsdTestServers() const { return m_fsdTestServers; }
|
||||
|
||||
Reference in New Issue
Block a user