mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 00:25:35 +08:00
refs #787, support for headers / shared files in web data services
* allow to load shared files * utility functions for timestamps * some functions renamed
This commit is contained in:
@@ -165,7 +165,7 @@ namespace BlackGui
|
||||
|
||||
void CDataInfoAreaComponent::requestUpdateOfAllDbData()
|
||||
{
|
||||
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::AllDbEntitiesNoInfoObjectsNoAirports, QDateTime());
|
||||
sGui->getWebDataServices()->triggerLoadingDirectlyFromDb(CEntityFlags::AllDbEntitiesNoInfoObjectsNoAirports, QDateTime());
|
||||
}
|
||||
|
||||
void CDataInfoAreaComponent::requestUpdatedData(CEntityFlags::Entity entity)
|
||||
|
||||
@@ -70,7 +70,7 @@ namespace BlackGui
|
||||
void CDbAircraftIcaoComponent::ps_reload()
|
||||
{
|
||||
if (!sGui) { return; }
|
||||
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::AircraftIcaoEntity, QDateTime());
|
||||
sGui->getWebDataServices()->triggerLoadingDirectlyFromDb(CEntityFlags::AircraftIcaoEntity, QDateTime());
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace BlackGui
|
||||
void CDbAirlineIcaoComponent::ps_reload()
|
||||
{
|
||||
if (!sGui || !sGui->hasWebDataServices()) { return; }
|
||||
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::AirlineIcaoEntity, QDateTime());
|
||||
sGui->getWebDataServices()->triggerLoadingDirectlyFromDb(CEntityFlags::AirlineIcaoEntity, QDateTime());
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -58,7 +58,7 @@ namespace BlackGui
|
||||
void CDbCountryComponent::ps_reload()
|
||||
{
|
||||
if (!sGui || !sGui->getWebDataServices()) { return; }
|
||||
sApp->getWebDataServices()->triggerReloadFromDb(CEntityFlags::CountryEntity);
|
||||
sApp->getWebDataServices()->triggerLoadingDirectlyFromDb(CEntityFlags::CountryEntity);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -60,7 +60,7 @@ namespace BlackGui
|
||||
void CDbDistributorComponent::ps_reload()
|
||||
{
|
||||
if (!sGui) { return; }
|
||||
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::DistributorEntity);
|
||||
sGui->getWebDataServices()->triggerLoadingDirectlyFromDb(CEntityFlags::DistributorEntity);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -71,7 +71,7 @@ namespace BlackGui
|
||||
void CDbLiveryComponent::ps_reload()
|
||||
{
|
||||
if (!sGui) { return; }
|
||||
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::LiveryEntity);
|
||||
sGui->getWebDataServices()->triggerLoadingDirectlyFromDb(CEntityFlags::LiveryEntity);
|
||||
}
|
||||
} // ns
|
||||
} // ns
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace BlackGui
|
||||
CAircraftModel model(ui->tvp_AircraftModel->container().latestObject());
|
||||
ts = model.getUtcTimestamp();
|
||||
}
|
||||
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::ModelEntity, ts);
|
||||
sGui->getWebDataServices()->triggerLoadingDirectlyFromDb(CEntityFlags::ModelEntity, ts);
|
||||
}
|
||||
|
||||
void CDbModelComponent::ps_modelsRead(CEntityFlags::Entity entity, CEntityFlags::ReadState readState, int count)
|
||||
@@ -91,7 +91,7 @@ namespace BlackGui
|
||||
void CDbModelComponent::ps_reload()
|
||||
{
|
||||
if (!sGui) { return; }
|
||||
sGui->getWebDataServices()->triggerReloadFromDb(CEntityFlags::ModelEntity);
|
||||
sGui->getWebDataServices()->triggerLoadingDirectlyFromDb(CEntityFlags::ModelEntity);
|
||||
}
|
||||
|
||||
void CDbModelComponent::ps_onStyleSheetChanged()
|
||||
|
||||
Reference in New Issue
Block a user