mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
Ref T105, use timer in base class CContinuousWorker
* remove unused cleanup * object name set in base class
This commit is contained in:
committed by
Mathew Sutcliffe
parent
4a7ad09e46
commit
0bfd9a55a2
@@ -35,20 +35,9 @@ namespace BlackCore
|
||||
//! Constructor
|
||||
CBackgroundDataUpdater(QObject *owner);
|
||||
|
||||
//! Enable updates
|
||||
void startUpdating(int updateTimeSecs);
|
||||
|
||||
protected:
|
||||
//! \copydoc BlackMisc::CContinuousWorker::initialize
|
||||
virtual void initialize() override;
|
||||
|
||||
//! \copydoc BlackMisc::CContinuousWorker::cleanup
|
||||
virtual void cleanup() override;
|
||||
|
||||
private:
|
||||
int m_cycle = 0; //!< cycle
|
||||
bool m_inWork = false; //!< indicates a running update
|
||||
QTimer m_updateTimer { this };
|
||||
|
||||
BlackMisc::Simulation::Data::CModelCaches m_modelCaches { false, this }; //!< caches
|
||||
BlackMisc::Simulation::Data::CModelSetCaches m_modelSetCaches { false, this }; //!< caches
|
||||
|
||||
Reference in New Issue
Block a user