mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-22 14:55:36 +08:00
Style and comments of CBackgroundValidation
This commit is contained in:
committed by
Mat Sutcliffe
parent
bd1ef5dfea
commit
892b5919f7
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user