Ref T286, multi caches/setting utility functions to check other versions

This commit is contained in:
Klaus Basan
2018-07-03 19:43:06 +02:00
parent a2bca21715
commit f2820d81a4
2 changed files with 27 additions and 3 deletions

View File

@@ -12,12 +12,13 @@
#ifndef BLACKMISC_SIMULATION_DATA_MODELCACHES
#define BLACKMISC_SIMULATION_DATA_MODELCACHES
#include "blackmisc/blackmiscexport.h"
#include "blackmisc/datacache.h"
#include "blackmisc/simulation/aircraftmodelinterfaces.h"
#include "blackmisc/simulation/aircraftmodellist.h"
#include "blackmisc/simulation/simulatorinfo.h"
#include "blackmisc/applicationinfo.h"
#include "blackmisc/statusmessage.h"
#include "blackmisc/datacache.h"
#include "blackmisc/blackmiscexport.h"
#include <QDateTime>
#include <QObject>
@@ -170,6 +171,12 @@ namespace BlackMisc
//! Get filename for simulator cache file
virtual QString getFilename(const BlackMisc::Simulation::CSimulatorInfo &simulator) const = 0;
//! Has the other version the file?
bool hasOtherVersionFile(const BlackMisc::CApplicationInfo &info, const BlackMisc::Simulation::CSimulatorInfo &simulator) const;
//! Simulators of given other versionwhich have a cache file
BlackMisc::Simulation::CSimulatorInfo otherVersionSimulatorsWithFile(const BlackMisc::CApplicationInfo &info) const;
//! All file names
virtual QStringList getAllFilenames() const;