mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-31 04:25:35 +08:00
Some Web readers adjustemnts
* do not init shared URLs before needed * do not load info objects when DB is unavailable * adjust reader flags when DB is down * airport URL available in setup
This commit is contained in:
@@ -52,6 +52,13 @@ namespace BlackCore
|
||||
return this->m_sharedUrls;
|
||||
}
|
||||
|
||||
CUrlList CGlobalSetup::getSwiftAirportUrls() const
|
||||
{
|
||||
// currently subdir of shared, this might change
|
||||
const CUrlList airportUrls(getSwiftSharedUrls().appendPath("/airports/airports.json"));
|
||||
return airportUrls;
|
||||
}
|
||||
|
||||
CUrl CGlobalSetup::getDbHomePageUrl() const
|
||||
{
|
||||
return getDbRootDirectoryUrl().withAppendedPath("/page/index.php");
|
||||
@@ -156,7 +163,7 @@ namespace BlackCore
|
||||
s.append(this->getFormattedUtcTimestampYmdhms());
|
||||
s.append(separator);
|
||||
|
||||
s.append("Loaded: ");
|
||||
s.append("Global setup loaded: ");
|
||||
s.append(boolToYesNo(this->wasLoaded()));
|
||||
s.append(separator);
|
||||
|
||||
@@ -193,6 +200,10 @@ namespace BlackCore
|
||||
s.append(getSwiftDbDataFileLocationUrls().toQString(i18n));
|
||||
s.append(separator);
|
||||
|
||||
s.append("swift airport files: ");
|
||||
s.append(getSwiftAirportUrls().toQString(i18n));
|
||||
s.append(separator);
|
||||
|
||||
s.append("VATSIM bookings: ");
|
||||
s.append(getVatsimBookingsUrl().toQString(i18n));
|
||||
s.append(separator);
|
||||
|
||||
@@ -105,6 +105,9 @@ namespace BlackCore
|
||||
//! Shared URLs
|
||||
const BlackMisc::Network::CUrlList &getSwiftSharedUrls() const;
|
||||
|
||||
//! Airport URLs
|
||||
BlackMisc::Network::CUrlList getSwiftAirportUrls() const;
|
||||
|
||||
//! URL to read VATSIM bookings
|
||||
const BlackMisc::Network::CUrl &getVatsimBookingsUrl() const { return m_vatsimBookingsUrl; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user