ThreadWeaver::IdDecorator Class
class ThreadWeaver::IdDecoratorIdDecorator decorates a job without changing it's behaviour. More...
| Header: | #include <ThreadWeaver/IdDecorator> |
| CMake: | find_package(KF6 REQUIRED COMPONENTS ThreadWeaver)target_link_libraries(mytarget PRIVATE KF6::ThreadWeaver) |
| Inherits: | ThreadWeaver::JobInterface |
| Inherited By: |
Public Functions
| IdDecorator(ThreadWeaver::JobInterface *job, bool autoDelete = true) | |
| bool | autoDelete() const |
| ThreadWeaver::Collection * | collection() |
| const ThreadWeaver::Collection * | collection() const |
| ThreadWeaver::JobInterface * | job() |
| const ThreadWeaver::JobInterface * | job() const |
| ThreadWeaver::Sequence * | sequence() |
| const ThreadWeaver::Sequence * | sequence() const |
| void | setAutoDelete(bool onOff) |
Detailed Description
It is supposed to be used as the base class for actual decorators that do change the behaviour of jobs.
Member Function Documentation
[explicit] IdDecorator::IdDecorator(ThreadWeaver::JobInterface *job, bool autoDelete = true)
bool IdDecorator::autoDelete() const
Will the decoratee be auto-deleted?
See also setAutoDelete().
ThreadWeaver::Collection *IdDecorator::collection()
Retrieve the decorated job as a Collection. If the decorated Job is not a Collection, 0 is returned.
const ThreadWeaver::Collection *IdDecorator::collection() const
Retrieve the decorated job as a Collection. If the decorated Job is not a Collection, 0 is returned.
ThreadWeaver::JobInterface *IdDecorator::job()
Retrieve the decorated job.
const ThreadWeaver::JobInterface *IdDecorator::job() const
Retrieve the decorated job.
ThreadWeaver::Sequence *IdDecorator::sequence()
Retrieve the decorated job as a Sequence. If the decorated Job is not a Sequence, 0 is returned.
const ThreadWeaver::Sequence *IdDecorator::sequence() const
Retrieve the decorated job as a Sequence. If the decorated Job is not a Sequence, 0 is returned.
void IdDecorator::setAutoDelete(bool onOff)
Auto-delete the decoratee or not.
See also autoDelete().