Style and comments of CBackgroundValidation

This commit is contained in:
Klaus Basan
2019-02-23 16:28:42 +01:00
committed by Mat Sutcliffe
parent bd1ef5dfea
commit 892b5919f7
2 changed files with 5 additions and 6 deletions

View File

@@ -64,7 +64,7 @@ namespace BlackMisc
const QPointer<CBackgroundValidation> myself(this); const QPointer<CBackgroundValidation> myself(this);
if (simulator.isNoSimulator()) if (simulator.isNoSimulator())
{ {
return this->requestLastResults(); return this->requestLastValidationResults();
} }
{ {
@@ -81,7 +81,7 @@ namespace BlackMisc
return true; return true;
} }
bool CBackgroundValidation::requestLastResults() bool CBackgroundValidation::requestLastValidationResults()
{ {
CAircraftModelList valid; CAircraftModelList valid;
CAircraftModelList invalid; CAircraftModelList invalid;
@@ -144,7 +144,6 @@ namespace BlackMisc
} }
while (false); while (false);
m_inWork = false; m_inWork = false;
emit this->validating(false); emit this->validating(false);
if (validated) if (validated)

View File

@@ -27,7 +27,7 @@ namespace BlackMisc
{ {
namespace Simulation namespace Simulation
{ {
//! Update and consolidation of DB data //! Validate model files from the sets and check if the model still exists
class BLACKMISC_EXPORT CBackgroundValidation : public CContinuousWorker class BLACKMISC_EXPORT CBackgroundValidation : public CContinuousWorker
{ {
Q_OBJECT Q_OBJECT
@@ -66,7 +66,7 @@ namespace BlackMisc
//! Request last results (again), if there are any //! Request last results (again), if there are any
//! \remark emits CBackgroundValidation::validated signal //! \remark emits CBackgroundValidation::validated signal
//! \threadsafe //! \threadsafe
bool requestLastResults(); bool requestLastValidationResults();
signals: signals:
//! Validating //! Validating
@@ -93,7 +93,7 @@ namespace BlackMisc
// Set/caches as member as we are in own thread, central instance will not work // Set/caches as member as we are in own thread, central instance will not work
Data::CModelSetCaches m_modelSets { false, this }; Data::CModelSetCaches m_modelSets { false, this };
//! Do the update checks //! Do the validation checks
void doWork(); void doWork();
}; };
} // ns } // ns