6 #ifndef SWIFT_CORE_AIRPORTDATAREADER_H
7 #define SWIFT_CORE_AIRPORTDATAREADER_H
11 #include <QNetworkAccessManager>
44 int getAirportsCount()
const;
48 swift::misc::network::CEntityFlags::Entity whatToRead,
49 bool overrideNewerOnly)
override;
50 bool readFromJsonFilesInBackground(
const QString &dir, swift::misc::network::CEntityFlags::Entity whatToRead,
51 bool overrideNewerOnly)
override;
54 swift::misc::network::CEntityFlags::Entity getSupportedEntities()
const override;
55 QDateTime getCacheTimestamp(swift::misc::network::CEntityFlags::Entity entities)
const override;
56 int getCacheCount(swift::misc::network::CEntityFlags::Entity entity)
const override;
57 swift::misc::network::CEntityFlags::Entity getEntitiesWithCacheCount()
const override;
58 swift::misc::network::CEntityFlags::Entity
59 getEntitiesWithCacheTimestampNewerThan(
const QDateTime &threshold)
const override;
60 void synchronizeCaches(swift::misc::network::CEntityFlags::Entity entities)
override;
61 void admitCaches(swift::misc::network::CEntityFlags::Entity entities)
override;
65 void invalidateCaches(swift::misc::network::CEntityFlags::Entity entities)
override;
72 this, &CAirportDataReader::airportCacheChanged
74 std::atomic_bool m_syncedAirportCache {
false };
78 this, &CAirportDataReader::baseUrlCacheChanged
82 void read(swift::misc::network::CEntityFlags::Entity entity,
89 void airportCacheChanged();
92 void baseUrlCacheChanged();
Reader for airport database data.
Value object encapsulating a list of reader configs.
Specialized version of threaded reader for DB data.
Status messages, e.g. from Core -> GUI.
Value object encapsulating information about an airpot.
Value object for a list of airports.
DataRetrievalModeFlag
Which data to read, requires corresponding readers.
Value object encapsulating information of a location, kind of simplified CValueObject compliant versi...
Classes interacting with the swift database (aka "datastore").
#define SWIFT_CORE_EXPORT
Export a class or function from the library.