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

View File

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