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

View File

@@ -27,7 +27,7 @@ namespace BlackMisc
{
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
{
Q_OBJECT
@@ -66,7 +66,7 @@ namespace BlackMisc
//! Request last results (again), if there are any
//! \remark emits CBackgroundValidation::validated signal
//! \threadsafe
bool requestLastResults();
bool requestLastValidationResults();
signals:
//! Validating
@@ -93,7 +93,7 @@ namespace BlackMisc
// Set/caches as member as we are in own thread, central instance will not work
Data::CModelSetCaches m_modelSets { false, this };
//! Do the update checks
//! Do the validation checks
void doWork();
};
} // ns