mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-04 00:45:46 +08:00
Ref T125, URL for XSwiftBus file info webservice
This commit is contained in:
committed by
Mathew Sutcliffe
parent
0bbad2ff83
commit
15f5a7f489
@@ -29,13 +29,30 @@ namespace BlackCore
|
|||||||
namespace Data
|
namespace Data
|
||||||
{
|
{
|
||||||
CGlobalSetup::CGlobalSetup() :
|
CGlobalSetup::CGlobalSetup() :
|
||||||
ITimestampBased(0),
|
ITimestampBased(0)
|
||||||
m_dbRootDirectoryUrl("https://datastore.swift-project.org/"), m_vatsimBookingsUrl("http://vatbook.euroutepro.com/xml2.php"),
|
{
|
||||||
m_vatsimMetarsUrls( {"http://metar.vatsim.net/metar.php"}), m_vatsimStatusFileUrls({ "https://status.vatsim.net" }),
|
this->initDefaultUrls();
|
||||||
m_vatsimDataFileUrls({ "http://info.vroute.net/vatsim-data.txt" }), m_sharedUrls({"https://datastore.swift-project.org/shared", "https://vatsim-germany.org:50443/datastore/shared"}),
|
}
|
||||||
m_newsUrls(QStringList({ "http://swift-project.org/" })), m_onlineHelpUrls(QStringList({ "help.swift-project.org/" })),
|
|
||||||
m_mapUrls(QStringList({ "map.swift-project.org/" }))
|
void CGlobalSetup::initDefaultUrls()
|
||||||
{ }
|
{
|
||||||
|
m_dbRootDirectoryUrl = CUrl("https://datastore.swift-project.org/");
|
||||||
|
m_vatsimBookingsUrl = CUrl("http://vatbook.euroutepro.com/xml2.php");
|
||||||
|
m_vatsimMetarsUrls = CUrlList({"http://metar.vatsim.net/metar.php"});
|
||||||
|
m_vatsimStatusFileUrls = CUrlList({ "https://status.vatsim.net" });
|
||||||
|
m_vatsimDataFileUrls = CUrlList({ "http://info.vroute.net/vatsim-data.txt" });
|
||||||
|
m_sharedUrls = CUrlList(
|
||||||
|
{
|
||||||
|
"https://datastore.swift-project.org/shared",
|
||||||
|
"http://www.siliconmind.de/datastore/shared/",
|
||||||
|
"http://swift-project.org/datastore/shared/"
|
||||||
|
});
|
||||||
|
|
||||||
|
// spare: "https://vatsim-germany.org:50443/datastore/shared"
|
||||||
|
m_newsUrls = CUrlList({ "http://swift-project.org/" });
|
||||||
|
m_onlineHelpUrls = CUrlList({ "help.swift-project.org/" });
|
||||||
|
m_mapUrls = CUrlList({ "map.swift-project.org/" });
|
||||||
|
}
|
||||||
|
|
||||||
CUrl CGlobalSetup::getDbIcaoReaderUrl() const
|
CUrl CGlobalSetup::getDbIcaoReaderUrl() const
|
||||||
{
|
{
|
||||||
@@ -91,6 +108,13 @@ namespace BlackCore
|
|||||||
withSwitchedScheme("https", m_dbHttpsPort);
|
withSwitchedScheme("https", m_dbHttpsPort);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CUrl CGlobalSetup::getAlphaXSwiftBusFilesServiceUrl() const
|
||||||
|
{
|
||||||
|
return getDbRootDirectoryUrl().
|
||||||
|
withAppendedPath("/service/jsonalphaxswiftbusfiles.php").
|
||||||
|
withSwitchedScheme("https", m_dbHttpsPort);
|
||||||
|
}
|
||||||
|
|
||||||
bool CGlobalSetup::dbDebugFlag() const
|
bool CGlobalSetup::dbDebugFlag() const
|
||||||
{
|
{
|
||||||
if (!m_dbDebugFlag) { return false; }
|
if (!m_dbDebugFlag) { return false; }
|
||||||
|
|||||||
@@ -101,6 +101,9 @@ namespace BlackCore
|
|||||||
//! Login service
|
//! Login service
|
||||||
BlackMisc::Network::CUrl getDbLoginServiceUrl() const;
|
BlackMisc::Network::CUrl getDbLoginServiceUrl() const;
|
||||||
|
|
||||||
|
//! alpha XSwiftBus files available
|
||||||
|
BlackMisc::Network::CUrl getAlphaXSwiftBusFilesServiceUrl() const;
|
||||||
|
|
||||||
//! Root directory of DB
|
//! Root directory of DB
|
||||||
const BlackMisc::Network::CUrl &getDbRootDirectoryUrl() const { return m_dbRootDirectoryUrl; }
|
const BlackMisc::Network::CUrl &getDbRootDirectoryUrl() const { return m_dbRootDirectoryUrl; }
|
||||||
|
|
||||||
@@ -205,6 +208,9 @@ namespace BlackCore
|
|||||||
// transient members, to be switched on/off via GUI or set from reader
|
// transient members, to be switched on/off via GUI or set from reader
|
||||||
bool m_dbDebugFlag = false; //!< can trigger DEBUG on the server, so you need to know what you are doing
|
bool m_dbDebugFlag = false; //!< can trigger DEBUG on the server, so you need to know what you are doing
|
||||||
|
|
||||||
|
//! Set the default URLs
|
||||||
|
void initDefaultUrls();
|
||||||
|
|
||||||
BLACK_METACLASS(
|
BLACK_METACLASS(
|
||||||
CGlobalSetup,
|
CGlobalSetup,
|
||||||
BLACK_METAMEMBER(wasLoaded),
|
BLACK_METAMEMBER(wasLoaded),
|
||||||
|
|||||||
Reference in New Issue
Block a user