6 #ifndef SWIFT_CORE_DATABASE_WRITER_H
7 #define SWIFT_CORE_DATABASE_WRITER_H
21 namespace swift::misc::simulation
23 class CAutoPublishData;
38 const QString &extraInfo);
42 const QString &extraInfo);
48 void gracefulShutdown();
54 const QString &getName();
60 static const QStringList &getLogCategories();
79 QNetworkReply *m_pendingModelPublishReply =
nullptr;
80 QNetworkReply *m_pendingAutoPublishReply =
nullptr;
81 qint64 m_modelReplyPendingSince = -1;
82 qint64 m_autoPublishReplyPendingSince = -1;
83 bool m_shutdown =
false;
86 void postedModelsResponse(QNetworkReply *nwReplyPtr);
89 void postedAutoPublishResponse(QNetworkReply *nwReplyPtr);
92 bool killPendingModelReply();
95 bool isModelReplyOverdue()
const;
104 static QList<QByteArray> splitData(
const QByteArray &data,
int size);
107 static bool parseSwiftPublishResponse(
const QString &jsonResponse,
const swift::misc::network::CUrlLogList & getWriteLog() const
Write log.
bool isShuttingDown() const
Shutting down?
void publishedModelsSimplified(const swift::misc::simulation::CAircraftModelList &modelsPublished, bool directWrite)
Published models, simplified version of publishedModels.
void autoPublished(bool success, const QString &url, const swift::misc::CStatusMessageList &msgs)
Auto publishing completed.
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.
Classes interacting with the swift database (aka "datastore").
#define SWIFT_CORE_EXPORT
Export a class or function from the library.