ThreadWeaver::IdDecorator

Search for usage in LXR

ThreadWeaver::IdDecorator Class Reference

#include <iddecorator.h>

Inherits ThreadWeaver::JobInterface.

Inherited by ThreadWeaver::QObjectDecorator.

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
 
Collectioncollection ()
 
const Collectioncollection () const
 
void execute (const JobPointer &job, Thread *) override
 
Executor * executor () const override
 
bool isFinished () const override
 
JobInterface * job ()
 
const JobInterface * job () const
 
QMutexmutex () const override
 
int priority () const override
 
QList< QueuePolicy * > queuePolicies () const override
 
void removeQueuePolicy (QueuePolicy *) override
 
void requestAbort () override
 
Sequencesequence ()
 
const Sequencesequence () 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.

Member Function Documentation

◆ autoDelete()

bool ThreadWeaver::IdDecorator::autoDelete ( ) const

Will the decoratee be auto-deleted?

Definition at line 186 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.

◆ collection() [2/2]

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.

◆ job() [1/2]

JobInterface* ThreadWeaver::IdDecorator::job ( )

Retrieve the decorated job.

◆ job() [2/2]

JobInterface * ThreadWeaver::IdDecorator::job ( ) const

Retrieve the decorated job.

Definition at line 167 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.

◆ sequence() [2/2]

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.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Dec 4 2022 04:06:48 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.