mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-24 06:25:37 +08:00
Ref T199, all file names of multi simulator caches
This commit is contained in:
@@ -47,6 +47,17 @@ namespace BlackMisc
|
|||||||
return this->getCachedModels(simulator).size();
|
return this->getCachedModels(simulator).size();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
QStringList IMultiSimulatorModelCaches::getAllFilenames() const
|
||||||
|
{
|
||||||
|
return QStringList(
|
||||||
|
{
|
||||||
|
this->getFilename(CSimulatorInfo::FS9),
|
||||||
|
this->getFilename(CSimulatorInfo::FSX),
|
||||||
|
this->getFilename(CSimulatorInfo::P3D),
|
||||||
|
this->getFilename(CSimulatorInfo::XPLANE)
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
CSimulatorInfo IMultiSimulatorModelCaches::getSimulatorForFilename(const QString &filename) const
|
CSimulatorInfo IMultiSimulatorModelCaches::getSimulatorForFilename(const QString &filename) const
|
||||||
{
|
{
|
||||||
if (filename.isEmpty()) { return CSimulatorInfo(); }
|
if (filename.isEmpty()) { return CSimulatorInfo(); }
|
||||||
|
|||||||
@@ -150,6 +150,9 @@ namespace BlackMisc
|
|||||||
//! Get filename for simulator cache file
|
//! Get filename for simulator cache file
|
||||||
virtual QString getFilename(const BlackMisc::Simulation::CSimulatorInfo &simulator) const = 0;
|
virtual QString getFilename(const BlackMisc::Simulation::CSimulatorInfo &simulator) const = 0;
|
||||||
|
|
||||||
|
//! All file names
|
||||||
|
virtual QStringList getAllFilenames() const;
|
||||||
|
|
||||||
//! Simulator which uses cache with filename
|
//! Simulator which uses cache with filename
|
||||||
BlackMisc::Simulation::CSimulatorInfo getSimulatorForFilename(const QString &filename) const;
|
BlackMisc::Simulation::CSimulatorInfo getSimulatorForFilename(const QString &filename) const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user