Ref T554, setting for auto publish (timestamp)

This commit is contained in:
Klaus Basan
2019-06-27 13:03:22 +02:00
committed by Mat Sutcliffe
parent 16e19ad6d3
commit 66f19b29be
5 changed files with 27 additions and 0 deletions

View File

@@ -14,6 +14,7 @@
#include "aircraftmodellist.h"
#include "simulatorinfo.h"
#include "blackmisc/pq/length.h"
#include "blackmisc/datacache.h"
#include "blackmisc/statusmessagelist.h"
#include "blackmisc/directoryutils.h"
#include "blackmisc/blackmiscexport.h"
@@ -25,6 +26,22 @@ namespace BlackMisc
{
namespace Simulation
{
namespace Data
{
//! Last selection
struct TLastAutoPublish : public TDataTrait<qint64>
{
//! First load is synchronous
static constexpr bool isPinned() { return true; }
//! Default simulator
static const qint64 &defaultValue() { static constexpr qint64 d = -1; return d; }
//! Key
static const char *key() { return "autopublishlast"; }
};
}
//! Objects that can be use for auto-publishing.
//! Auto publishing means we sent those data to the DB.
class BLACKMISC_EXPORT CAutoPublishData