mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-26 02:35:38 +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);
|
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)
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user