11#ifndef THREADWEAVER_STATE_H
12#define THREADWEAVER_STATE_H
16#include "queueinterface.h"
17#include "queuesignals.h"
18#include "threadweaver_export.h"
19#include "weaverinterface.h"
WeaverInterface provides a common interface for weaver implementations.
Definition queueinterface.h:45
QueueSignals declares the Qt signals shared by the Queue and Weaver classes.
Definition queuesignals.h:24
We use a State pattern to handle the system state in ThreadWeaver.
Definition state.h:56
QString stateName() const
The ID of the current state.
virtual QueueInterface * weaver()
The Weaver interface this state handles.
State(QueueSignals *weaver)
Default constructor.
~State() override
Destructor.
virtual void activated()
The state has been changed so that this object is responsible for state handling.
virtual StateId stateId() const =0
The state Id.