6 #ifndef SWIFT_CORE_MODELDATAREADER_H 
    7 #define SWIFT_CORE_MODELDATAREADER_H 
   14 #include <QStringList> 
   79         bool containsModelString(
const QString &modelString) 
const;
 
   97         getModelsForAircraftDesignatorAndLiveryCombinedCode(
const QString &aircraftDesignator,
 
  102         int getLiveriesCount() 
const;
 
  106         int getDistributorsCount() 
const;
 
  121         int getModelsCount() 
const;
 
  129         QStringList getModelStringList(
bool sort = 
false) 
const;
 
  133         bool areAllDataRead() 
const;
 
  136         bool writeToJsonFiles(
const QString &dir);
 
  140                                                           swift::misc::network::CEntityFlags::Entity whatToRead,
 
  141                                                           bool overrideNewerOnly) 
override;
 
  142         bool readFromJsonFilesInBackground(
const QString &dir, swift::misc::network::CEntityFlags::Entity whatToRead,
 
  143                                            bool overrideNewerOnly) 
override;
 
  146         swift::misc::network::CEntityFlags::Entity getSupportedEntities() 
const override;
 
  147         QDateTime getCacheTimestamp(swift::misc::network::CEntityFlags::Entity entity) 
const override;
 
  148         int getCacheCount(swift::misc::network::CEntityFlags::Entity entity) 
const override;
 
  149         swift::misc::network::CEntityFlags::Entity getEntitiesWithCacheCount() 
const override;
 
  150         swift::misc::network::CEntityFlags::Entity
 
  151         getEntitiesWithCacheTimestampNewerThan(
const QDateTime &threshold) 
const override;
 
  152         void synchronizeCaches(swift::misc::network::CEntityFlags::Entity entities) 
override;
 
  153         void admitCaches(swift::misc::network::CEntityFlags::Entity entities) 
override;
 
  157         void invalidateCaches(swift::misc::network::CEntityFlags::Entity entities) 
override;
 
  164                                                                               &CModelDataReader::liveryCacheChanged };
 
  166                                                                             &CModelDataReader::modelCacheChanged };
 
  168             this, &CModelDataReader::distributorCacheChanged
 
  170         std::atomic_bool m_syncedLiveryCache { 
false }; 
 
  171         std::atomic_bool m_syncedModelCache { 
false }; 
 
  172         std::atomic_bool m_syncedDistributorCache { 
false }; 
 
  175         void read(swift::misc::network::CEntityFlags::Entity entities =
 
  182             this, &CModelDataReader::baseUrlCacheChanged
 
  195         void liveryCacheChanged();
 
  198         void modelCacheChanged();
 
  201         void distributorCacheChanged();
 
  204         void baseUrlCacheChanged();
 
Value object encapsulating a list of reader configs.
 
Specialized version of threaded reader for DB data.
 
Read model related data from Database.
 
Status messages, e.g. from Core -> GUI.
 
Value object encapsulating a list of ICAO codes.
 
Value object encapsulating a list of ICAO codes.
 
Value object for ICAO classification.
 
Value object encapsulating information about an airpot.
 
Value object for a list of airports.
 
DataRetrievalModeFlag
Which data to read, requires corresponding readers.
 
@ DbReading
directly from DB
 
@ DistributorLiveryModel
Combined.
 
Value object encapsulating information of a location, kind of simplified CValueObject compliant versi...
 
Aircraft model (used by another pilot, my models on disk)
 
Value object encapsulating a list of aircraft models.
 
Value object encapsulating information of software distributor.
 
Value object encapsulating a list of distributors.
 
Classes interacting with the swift database (aka "datastore").
 
#define SWIFT_CORE_EXPORT
Export a class or function from the library.