mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-14 08:45:36 +08:00
Fixes in model loader and caches
* loader/multi cache can clear caches if that is ever needed * check if cache needs to be synchronized when loaded and if, do it * emit changed signal if caches are set
This commit is contained in:
@@ -77,14 +77,17 @@ namespace BlackMisc
|
||||
};
|
||||
|
||||
//! Enum as string
|
||||
static QString enumToString(LoadFinishedInfo info);
|
||||
static const QString &enumToString(LoadFinishedInfo info);
|
||||
|
||||
//! Enum as string
|
||||
static QString enumToString(LoadModeFlag modeFlag);
|
||||
static const QString &enumToString(LoadModeFlag modeFlag);
|
||||
|
||||
//! Enum as string
|
||||
static QString enumToString(LoadMode mode);
|
||||
|
||||
//! Is that mode needing caches synchronized?
|
||||
static bool needsCacheSynchronized(LoadMode mode);
|
||||
|
||||
//! Destructor
|
||||
virtual ~IAircraftModelLoader();
|
||||
|
||||
@@ -159,6 +162,12 @@ namespace BlackMisc
|
||||
//! \copydoc BlackMisc::Simulation::Data::IMultiSimulatorModelCaches::synchronizeCache
|
||||
void synchronizeModelCache(const CSimulatorInfo &simulator);
|
||||
|
||||
//! \copydoc BlackMisc::Simulation::Data::IMultiSimulatorModelCaches::clearCache
|
||||
BlackMisc::CStatusMessage clearCache();
|
||||
|
||||
//! \copydoc BlackMisc::Simulation::Data::IMultiSimulatorModelCaches::clearCache
|
||||
BlackMisc::CStatusMessage clearCache(const CSimulatorInfo &simulator);
|
||||
|
||||
//! \copydoc Settings::CMultiSimulatorSettings::getSpecializedSettings
|
||||
Settings::CSpecializedSimulatorSettings getCurrentSimulatorSettings() const;
|
||||
|
||||
@@ -204,9 +213,6 @@ namespace BlackMisc
|
||||
//! Any cached data?
|
||||
bool hasCachedData() const;
|
||||
|
||||
//! Clear cache
|
||||
BlackMisc::CStatusMessage clearCache();
|
||||
|
||||
//! Start the loading process from disk
|
||||
virtual void startLoadingFromDisk(LoadMode mode, const ModelConsolidationCallback &modelConsolidation, const QStringList &modelDirectories) = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user