mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
URLs for airports (slack discussion with MG)
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ namespace BlackCore
|
|||||||
IndexVatsimMetars,
|
IndexVatsimMetars,
|
||||||
IndexVatsimData,
|
IndexVatsimData,
|
||||||
IndexSwiftDbFiles,
|
IndexSwiftDbFiles,
|
||||||
|
IndexSwiftAirportUrls,
|
||||||
IndexBootstrap,
|
IndexBootstrap,
|
||||||
IndexUpdateInfo,
|
IndexUpdateInfo,
|
||||||
IndexWasLoaded,
|
IndexWasLoaded,
|
||||||
|
|||||||
Reference in New Issue
Block a user