6 #ifndef SWIFT_MISC_SIMULATION_AUTOPUBLISH_H
7 #define SWIFT_MISC_SIMULATION_AUTOPUBLISH_H
22 namespace swift::misc::simulation
30 static constexpr
bool isPinned() {
return true; }
35 static constexpr qint64 d = -1;
40 static const char *
key() {
return "autopublishlast"; }
68 void insert(
const QString &modelString,
const CSimulatorInfo &simulator);
78 QString toDatabaseJson()
const;
81 int fromDatabaseJson(
const QString &jsonData,
bool clear =
true);
85 bool writeJsonToFile()
const;
86 bool writeJsonToFile(
const QString &pathAndFile)
const;
90 bool readFromJsonFile(
const QString &fileAndPath,
bool clear =
true);
99 QString getSummary()
const;
102 QSet<QString> allModelStrings()
const;
105 static const QString &fileBaseName();
108 static const QString &fileAppendix();
124 static QStringList findAndCleanupPublishFiles(
const QString &dirPath);
Status messages, e.g. from Core -> GUI.
static const QString & logDirectory()
Directory for log files.
Physical unit length (length)
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.
Simple hardcoded info about the corresponding simulator.
Base class for traits to be used as template argument to swift::misc::CData.
bool changedCG
CG changed.
bool changedSim
simulator changed
void setAllTrue()
Set all to true;.
bool modelKnown
model known in DB
static const char * key()
Key.
static constexpr bool isPinned()
First load is synchronous.
static const qint64 & defaultValue()
Default simulator.
#define SWIFT_MISC_EXPORT
Export a class or function from the library.