mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-05-06 02:16:04 +08:00
Ref T148, public getName so it can be used in logging
This commit is contained in:
committed by
Mathew Sutcliffe
parent
11abb9f481
commit
c0a6574c80
@@ -302,6 +302,9 @@ namespace BlackMisc
|
|||||||
//! \threadsafe
|
//! \threadsafe
|
||||||
void startUpdating(int updateTimeSecs);
|
void startUpdating(int updateTimeSecs);
|
||||||
|
|
||||||
|
//! Name of the worker
|
||||||
|
const QString &getName() { return m_name; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
//! Called when the thread is started.
|
//! Called when the thread is started.
|
||||||
virtual void initialize() {}
|
virtual void initialize() {}
|
||||||
@@ -309,9 +312,6 @@ namespace BlackMisc
|
|||||||
//! Called when the thread is finished.
|
//! Called when the thread is finished.
|
||||||
virtual void cleanup() {}
|
virtual void cleanup() {}
|
||||||
|
|
||||||
//! Name of the worker
|
|
||||||
const QString &getName() { return m_name; }
|
|
||||||
|
|
||||||
QTimer m_updateTimer { this }; //!< timer which can be used by implementing classes
|
QTimer m_updateTimer { this }; //!< timer which can be used by implementing classes
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
Reference in New Issue
Block a user