swift
Signals | Public Member Functions | Static Public Member Functions | List of all members
swift::misc::simulation::CMultiAircraftModelLoaderProvider Class Reference

Single instances of all model loaders (lazy init) More...

Inheritance diagram for swift::misc::simulation::CMultiAircraftModelLoaderProvider:
[legend]

Signals

void loadingFinished (const swift::misc::CStatusMessageList &status, const CSimulatorInfo &simulator, IAircraftModelLoader::LoadFinishedInfo info)
 Parsing is finished or cache has been loaded. More...
 
void diskLoadingStarted (const CSimulatorInfo &simulator, IAircraftModelLoader::LoadMode mode)
 Disk loading started. More...
 
void loadingProgress (const CSimulatorInfo &simulator, const QString &message, int progressPercentage)
 Loading progress, normally from disk. More...
 
void cacheChanged (const CSimulatorInfo &simulator)
 Relayed from centralized caches. More...
 

Public Member Functions

IAircraftModelLoaderloaderInstance (const CSimulatorInfo &simulator)
 Loader instance.
 
IAircraftModelLoadermodelLoaderFsx () const
 Simulator specific loaders.
 
IAircraftModelLoadermodelLoaderP3D () const
 Simulator specific loaders.
 
IAircraftModelLoadermodelLoaderXP () const
 Simulator specific loaders.
 
IAircraftModelLoadermodelLoaderFS9 () const
 Simulator specific loaders.
 
IAircraftModelLoadermodelLoaderFG () const
 Simulator specific loaders.
 
IAircraftModelLoadermodelLoaderMsfs () const
 Simulator specific loaders.
 

Static Public Member Functions

static IAircraftModelLoadercreateModelLoader (const CSimulatorInfo &simulator, QObject *parent=nullptr)
 Create a loader and synchronize caches.
 
static CMultiAircraftModelLoaderProvidermultiModelLoaderInstance ()
 Singleton.
 

Detailed Description

Single instances of all model loaders (lazy init)

Definition at line 16 of file aircraftmodelloaderprovider.h.

Member Function Documentation

◆ cacheChanged

void swift::misc::simulation::CMultiAircraftModelLoaderProvider::cacheChanged ( const CSimulatorInfo simulator)
signal

Relayed from centralized caches.

Remarks
this can result from loading, the cache changed elsewhere or clearing data

◆ diskLoadingStarted

void swift::misc::simulation::CMultiAircraftModelLoaderProvider::diskLoadingStarted ( const CSimulatorInfo simulator,
IAircraftModelLoader::LoadMode  mode 
)
signal

Disk loading started.

Remarks
will only indicate loading from disk, not cache loading

◆ loadingFinished

void swift::misc::simulation::CMultiAircraftModelLoaderProvider::loadingFinished ( const swift::misc::CStatusMessageList status,
const CSimulatorInfo simulator,
IAircraftModelLoader::LoadFinishedInfo  info 
)
signal

Parsing is finished or cache has been loaded.

Remarks
does to fire if the cache has been changed elsewhere and it has just been reloaded here!

◆ loadingProgress

void swift::misc::simulation::CMultiAircraftModelLoaderProvider::loadingProgress ( const CSimulatorInfo simulator,
const QString &  message,
int  progressPercentage 
)
signal

Loading progress, normally from disk.

Parameters
simulatorcorresponding simulator
messagea progress message which can be sent by each individual loader implementation as needed
progressPercentage0-100 or -1 if not available

The documentation for this class was generated from the following files: