URLs for airports (slack discussion with MG)

This commit is contained in:
Klaus Basan
2016-07-13 02:55:32 +02:00
parent ade581fd50
commit 7c9328b868
2 changed files with 5 additions and 2 deletions

View File

@@ -55,7 +55,7 @@ namespace BlackCore
CUrlList CGlobalSetup::getSwiftAirportUrls() const
{
// currently subdir of shared, this might change
const CUrlList airportUrls(getSwiftSharedUrls().appendPath("/airports/airports.json"));
const CUrlList airportUrls(getSwiftSharedUrls().appendPath(versionString() + "/airports/airports.json"));
return airportUrls;
}
@@ -249,6 +249,8 @@ namespace BlackCore
return CVariant::fromValue(this->getBootstrapFileUrls());
case IndexSwiftDbFiles:
return CVariant::fromValue(this->getSwiftDbDataFileLocationUrls());
case IndexSwiftAirportUrls:
return CVariant::fromValue(this->getSwiftAirportUrls());
case IndexShared:
return CVariant::fromValue(this->m_sharedUrls);
case IndexWasLoaded:
@@ -304,9 +306,9 @@ namespace BlackCore
const QString &CGlobalSetup::versionString()
{
// This not the current swift version, but the schema version
static const QString v("0.7.0");
return v;
}
} // ns
} // ns

View File

@@ -48,6 +48,7 @@ namespace BlackCore
IndexVatsimMetars,
IndexVatsimData,
IndexSwiftDbFiles,
IndexSwiftAirportUrls,
IndexBootstrap,
IndexUpdateInfo,
IndexWasLoaded,