Ref T554, check function for auto publishing

This commit is contained in:
Klaus Basan
2019-07-16 18:12:13 +02:00
committed by Mat Sutcliffe
parent fab65c23b1
commit ac22e1d17d
3 changed files with 45 additions and 1 deletions

View File

@@ -42,6 +42,22 @@ namespace BlackMisc
};
}
//! Which data have changed
struct ChangedAutoPublishData
{
bool modelKnown = false; //!< model known in DB
bool changedCG = false; //!< CG changed
bool changedSim = false; //!< simulator changed
//! Set all to true;
void setAllTrue()
{
modelKnown = true;
changedCG = true;
changedSim = true;
}
};
//! Objects that can be use for auto-publishing.
//! Auto publishing means we sent those data to the DB.
class BLACKMISC_EXPORT CAutoPublishData