ThreadWeaver::IdDecorator
#include <iddecorator.h>
Public Member Functions | |
IdDecorator (JobInterface *job, bool autoDelete=true) | |
void | aboutToBeDequeued (QueueAPI *api) override |
void | aboutToBeDequeued_locked (QueueAPI *api) override |
void | aboutToBeQueued (QueueAPI *api) override |
void | aboutToBeQueued_locked (QueueAPI *api) override |
void | assignQueuePolicy (QueuePolicy *) override |
bool | autoDelete () const |
void | blockingExecute () override |
Collection * | collection () |
const Collection * | collection () const |
void | execute (const JobPointer &job, Thread *) override |
Executor * | executor () const override |
bool | isFinished () const override |
JobInterface * | job () |
const JobInterface * | job () const |
QMutex * | mutex () const override |
int | priority () const override |
QList< QueuePolicy * > | queuePolicies () const override |
void | removeQueuePolicy (QueuePolicy *) override |
void | requestAbort () override |
Sequence * | sequence () |
const Sequence * | sequence () const |
void | setAutoDelete (bool onOff) |
Executor * | setExecutor (Executor *executor) override |
void | setStatus (Status) override |
Status | status () const override |
bool | success () const override |
Protected Member Functions | |
void | defaultBegin (const JobPointer &job, Thread *thread) override |
void | defaultEnd (const JobPointer &job, Thread *thread) override |
void | run (JobPointer self, Thread *thread) override |
Detailed Description
IdDecorator decorates a job without changing it's behaviour.
It is supposed to be used as the base class for actual decorators that do change the behaviour of jobs.
Definition at line 25 of file iddecorator.h.
Constructor & Destructor Documentation
◆ IdDecorator()
|
explicit |
Definition at line 25 of file iddecorator.cpp.
◆ ~IdDecorator()
|
override |
Definition at line 32 of file iddecorator.cpp.
Member Function Documentation
◆ aboutToBeDequeued()
|
override |
Definition at line 101 of file iddecorator.cpp.
◆ aboutToBeDequeued_locked()
|
override |
Definition at line 107 of file iddecorator.cpp.
◆ aboutToBeQueued()
|
override |
Definition at line 89 of file iddecorator.cpp.
◆ aboutToBeQueued_locked()
|
override |
Definition at line 95 of file iddecorator.cpp.
◆ assignQueuePolicy()
|
override |
Definition at line 77 of file iddecorator.cpp.
◆ autoDelete()
bool ThreadWeaver::IdDecorator::autoDelete | ( | ) | const |
Will the decoratee be auto-deleted?
Definition at line 186 of file iddecorator.cpp.
◆ blockingExecute()
|
override |
Definition at line 161 of file iddecorator.cpp.
◆ collection() [1/2]
Collection * ThreadWeaver::IdDecorator::collection | ( | ) |
Retrieve the decorated job as a Collection.
If the decorated Job is not a Collection, 0 is returned.
Definition at line 196 of file iddecorator.cpp.
◆ collection() [2/2]
const ThreadWeaver::Collection * ThreadWeaver::IdDecorator::collection | ( | ) | const |
Retrieve the decorated job as a Collection.
If the decorated Job is not a Collection, 0 is returned.
Definition at line 191 of file iddecorator.cpp.
◆ defaultBegin()
|
overrideprotected |
Definition at line 53 of file iddecorator.cpp.
◆ defaultEnd()
|
overrideprotected |
Definition at line 59 of file iddecorator.cpp.
◆ execute()
|
override |
Definition at line 155 of file iddecorator.cpp.
◆ executor()
|
override |
Definition at line 143 of file iddecorator.cpp.
◆ isFinished()
|
override |
Definition at line 83 of file iddecorator.cpp.
◆ job() [1/2]
JobInterface * ThreadWeaver::IdDecorator::job | ( | ) |
Retrieve the decorated job.
Definition at line 172 of file iddecorator.cpp.
◆ job() [2/2]
const ThreadWeaver::JobInterface * ThreadWeaver::IdDecorator::job | ( | ) | const |
Retrieve the decorated job.
Definition at line 167 of file iddecorator.cpp.
◆ mutex()
|
override |
Definition at line 41 of file iddecorator.cpp.
◆ priority()
|
override |
Definition at line 125 of file iddecorator.cpp.
◆ queuePolicies()
|
override |
Definition at line 71 of file iddecorator.cpp.
◆ removeQueuePolicy()
|
override |
Definition at line 65 of file iddecorator.cpp.
◆ requestAbort()
|
override |
Definition at line 113 of file iddecorator.cpp.
◆ run()
|
overrideprotected |
Definition at line 47 of file iddecorator.cpp.
◆ sequence() [1/2]
Sequence * ThreadWeaver::IdDecorator::sequence | ( | ) |
Retrieve the decorated job as a Sequence.
If the decorated Job is not a Sequence, 0 is returned.
Definition at line 206 of file iddecorator.cpp.
◆ sequence() [2/2]
const Sequence * ThreadWeaver::IdDecorator::sequence | ( | ) | const |
Retrieve the decorated job as a Sequence.
If the decorated Job is not a Sequence, 0 is returned.
Definition at line 201 of file iddecorator.cpp.
◆ setAutoDelete()
void ThreadWeaver::IdDecorator::setAutoDelete | ( | bool | onOff | ) |
Auto-delete the decoratee or not.
Definition at line 177 of file iddecorator.cpp.
◆ setExecutor()
|
override |
Definition at line 149 of file iddecorator.cpp.
◆ setStatus()
|
override |
Definition at line 131 of file iddecorator.cpp.
◆ status()
|
override |
Definition at line 137 of file iddecorator.cpp.
◆ success()
|
override |
Definition at line 119 of file iddecorator.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 8 2024 11:58:32 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.