6#ifndef SWIFT_CORE_DATABASE_WRITER_H
7#define SWIFT_CORE_DATABASE_WRITER_H
21namespace swift::misc::simulation
81 qint64 m_modelReplyPendingSince = -1;
82 qint64 m_autoPublishReplyPendingSince = -1;
83 bool m_shutdown =
false;
92 bool killPendingModelReply();
95 bool isModelReplyOverdue()
const;
107 static bool parseSwiftPublishResponse(
const QString &jsonResponse,
swift::misc::CStatusMessageList asyncPublishModel(const swift::misc::simulation::CAircraftModel &model, const QString &extraInfo)
Write model to DB.
swift::misc::CStatusMessageList asyncPublishModels(const swift::misc::simulation::CAircraftModelList &models, const QString &extraInfo)
Write models to DB.
swift::misc::CStatusMessageList asyncAutoPublish(const swift::misc::simulation::CAutoPublishData &data)
Write auto publis data.
bool isShuttingDown() const
Shutting down?
void publishedModelsSimplified(const swift::misc::simulation::CAircraftModelList &modelsPublished, bool directWrite)
Published models, simplified version of publishedModels.
const swift::misc::network::CUrlLogList & getWriteLog() const
Write log.
void gracefulShutdown()
Shutdown.
void autoPublished(bool success, const QString &url, const swift::misc::CStatusMessageList &msgs)
Auto publishing completed.
CDatabaseWriter(const swift::misc::network::CUrl &baseUrl, QObject *parent)
Constructor.
void publishedModels(const swift::misc::simulation::CAircraftModelList &modelsPublished, const swift::misc::simulation::CAircraftModelList &modelsSkipped, const swift::misc::CStatusMessageList &messages, bool sendingSuccessful, bool directWrite)
Published models, the response to.
Status messages, e.g. from Core -> GUI.
Value object encapsulating information of a location, kind of simplified CValueObject compliant versi...
Value object encapsulating a list of voice rooms.
Aircraft model (used by another pilot, my models on disk).
Value object encapsulating a list of aircraft models.
Objects that can be use for auto-publishing. Auto publishing means we sent those data to the DB.
Core data traits (aka cached values) and classes.
Classes interacting with the swift database (aka "datastore").
QObject * parent() const const
#define SWIFT_CORE_EXPORT
Export a class or function from the library.