void setTimerInterval(const int msec, const int firstMsec=0)
Set timer interval for the periodically called worker.
bool isActive() const
Return true if thread is running and not suspended.
QString getThreadName() const
Get thread name.
QString getThreadName() const
Helper function for debugging: Get the current thread id and time.
virtual void periodicallyCalledWorker()
Virtual worker function called periodically from the timer.
virtual void suspend()
Mark the thread as suspended.
void setPriority(const QThread::Priority p)
Set thread priority.
bool start()
Start thread and move base class to the new thread.
void setTimerInterval(const int msec, const int firstMsec)
Set timer interval in milliseconds.
ThreadWorker mThreadWorker
Instance of the worker.
void setVerbosity(int verbosity)
Set verbosity level of messages.
void setPriority(const QThread::Priority p)
Specify the priority of the thread.
virtual void resume()
Resume from the suspend mode.
void setVerbosity(int verbosity)
Set the verbosity level of the class-specific messages.
virtual void timeout()
Private timeout slot called by the worker.
void setThreadName(const QString name)
Set thread name.
bool stop()
Send a request to the thread for termination.
~ThreadBase()
Destructor, stops the thread if it is still running.
void stopTimer()
Helper signal for stopping the temporarily existing timer.
virtual bool start()
Start the thread.
bool isInterruptionRequested() const
Return true if the thread was requested to interrupt or terminate.
void setThreadName(const QString name)
Set thread name (Linux only)
virtual bool stop()
Stop the thread.
bool mSuspended
Flag indicating suspended state.
void startTimer()
Helper signal for starting the temporarily existing timer.