mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-17 19:05:31 +08:00
Formatting
This commit is contained in:
committed by
Mathew Sutcliffe
parent
847fcfbb71
commit
291af98770
@@ -138,10 +138,10 @@ namespace BlackCore
|
|||||||
//! Airlines have been read
|
//! Airlines have been read
|
||||||
void ps_parseAirlineIcaoData(QNetworkReply *nwReply);
|
void ps_parseAirlineIcaoData(QNetworkReply *nwReply);
|
||||||
|
|
||||||
//! Airlines have been read
|
//! Countries have been read
|
||||||
void ps_parseCountryData(QNetworkReply *nwReply);
|
void ps_parseCountryData(QNetworkReply *nwReply);
|
||||||
|
|
||||||
//! Read / re-read data file
|
//! Read / re-read data
|
||||||
void ps_read(BlackMisc::Network::CEntityFlags::Entity entities,
|
void ps_read(BlackMisc::Network::CEntityFlags::Entity entities,
|
||||||
BlackMisc::Db::CDbFlags::DataRetrievalModeFlag mode, const QDateTime &newerThan);
|
BlackMisc::Db::CDbFlags::DataRetrievalModeFlag mode, const QDateTime &newerThan);
|
||||||
|
|
||||||
|
|||||||
@@ -262,10 +262,10 @@ namespace BlackCore
|
|||||||
if (res.isRestricted())
|
if (res.isRestricted())
|
||||||
{
|
{
|
||||||
// create full list if it was just incremental
|
// create full list if it was just incremental
|
||||||
const CLiveryList incLiveries(CLiveryList::fromDatabaseJson(res));
|
const CLiveryList incrementalLiveries(CLiveryList::fromDatabaseJson(res));
|
||||||
if (incLiveries.isEmpty()) { return; } // currenty ignored
|
if (incrementalLiveries.isEmpty()) { return; } // currenty ignored
|
||||||
liveries = this->getLiveries();
|
liveries = this->getLiveries();
|
||||||
liveries.replaceOrAddObjectsByKey(incLiveries);
|
liveries.replaceOrAddObjectsByKey(incrementalLiveries);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -304,10 +304,10 @@ namespace BlackCore
|
|||||||
if (res.isRestricted())
|
if (res.isRestricted())
|
||||||
{
|
{
|
||||||
// create full list if it was just incremental
|
// create full list if it was just incremental
|
||||||
const CDistributorList incDistributors(CDistributorList::fromDatabaseJson(res));
|
const CDistributorList incrementalDistributors(CDistributorList::fromDatabaseJson(res));
|
||||||
if (incDistributors.isEmpty()) { return; } // currently ignored
|
if (incrementalDistributors.isEmpty()) { return; } // currently ignored
|
||||||
distributors = this->getDistributors();
|
distributors = this->getDistributors();
|
||||||
distributors.replaceOrAddObjectsByKey(incDistributors);
|
distributors.replaceOrAddObjectsByKey(incrementalDistributors);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -346,10 +346,10 @@ namespace BlackCore
|
|||||||
if (res.isRestricted())
|
if (res.isRestricted())
|
||||||
{
|
{
|
||||||
// create full list if it was just incremental
|
// create full list if it was just incremental
|
||||||
const CAircraftModelList incModels(CAircraftModelList::fromDatabaseJson(res));
|
const CAircraftModelList incrementalModels(CAircraftModelList::fromDatabaseJson(res));
|
||||||
if (incModels.isEmpty()) { return; } // currently ignored
|
if (incrementalModels.isEmpty()) { return; } // currently ignored
|
||||||
models = this->getModels();
|
models = this->getModels();
|
||||||
models.replaceOrAddObjectsByKey(incModels);
|
models.replaceOrAddObjectsByKey(incrementalModels);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -60,9 +60,11 @@ namespace BlackMisc
|
|||||||
QDateTime oldestDbTimestamp() const;
|
QDateTime oldestDbTimestamp() const;
|
||||||
|
|
||||||
//! From DB JSON with default prefixes
|
//! From DB JSON with default prefixes
|
||||||
|
//! \remark Specialized classes might have their own fromDatabaseJson implementation
|
||||||
static CONTAINER fromDatabaseJson(const QJsonArray &array);
|
static CONTAINER fromDatabaseJson(const QJsonArray &array);
|
||||||
|
|
||||||
//! From DB JSON
|
//! From DB JSON
|
||||||
|
//! \remark Specialized classes might have their own fromDatabaseJson implementation
|
||||||
static CONTAINER fromDatabaseJson(const QJsonArray &array, const QString &prefix);
|
static CONTAINER fromDatabaseJson(const QJsonArray &array, const QString &prefix);
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user