mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-27 11:05:44 +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/");
|
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
|
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) });
|
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;
|
BlackMisc::Network::CUrlList getSwiftDbDataFileLocationUrls() const;
|
||||||
|
|
||||||
//! Locations of swift DB news
|
//! Locations of swift DB news
|
||||||
const BlackMisc::Network::CUrlList &getSwiftLatestNewsUrls() const { return m_newsUrls; }
|
const BlackMisc::Network::CUrlList &getSwiftLatestNewsUrls() const;
|
||||||
|
|
||||||
//! Online help URLs
|
//! Online help URLs
|
||||||
const BlackMisc::Network::CUrlList &getOnlineHelpUrls() const { return m_onlineHelpUrls; }
|
const BlackMisc::Network::CUrlList &getOnlineHelpUrls() const;
|
||||||
|
|
||||||
//! swift map URLs
|
//! swift map URLs
|
||||||
const BlackMisc::Network::CUrlList &getSwiftMapUrls() const { return m_mapUrls; }
|
const BlackMisc::Network::CUrlList &getSwiftMapUrls() const;
|
||||||
|
|
||||||
//! FSD test servers
|
//! FSD test servers
|
||||||
const BlackMisc::Network::CServerList &getFsdTestServers() const { return m_fsdTestServers; }
|
const BlackMisc::Network::CServerList &getFsdTestServers() const { return m_fsdTestServers; }
|
||||||
|
|||||||
Reference in New Issue
Block a user