knode
#include <knjobdata.h>
Public Member Functions | |
KNJobConsumer () | |
virtual | ~KNJobConsumer () |
void | cancelJobs (boost::shared_ptr< KNJobItem > item) |
void | emitJob (KNJobData *j) |
void | jobDone (KNJobData *j) |
bool | jobsPending () const |
Protected Member Functions | |
virtual void | processJob (KNJobData *j) |
Protected Attributes | |
QList< KNJobData * > | mJobs |
Detailed Description
Base class for classes that want to create and schedule jobs.
Definition at line 39 of file knjobdata.h.
Constructor & Destructor Documentation
KNJobConsumer::KNJobConsumer | ( | ) |
Definition at line 30 of file knjobdata.cpp.
|
virtual |
Definition at line 35 of file knjobdata.cpp.
Member Function Documentation
void KNJobConsumer::cancelJobs | ( | boost::shared_ptr< KNJobItem > | item | ) |
Find any job related to a job item and cancel it.
Definition at line 57 of file knjobdata.cpp.
void KNJobConsumer::emitJob | ( | KNJobData * | j | ) |
Send the job to the scheduler and append it to the job queue.
Definition at line 42 of file knjobdata.cpp.
void KNJobConsumer::jobDone | ( | KNJobData * | j | ) |
Remove the job from the joblist and process it by calling processJob.
Definition at line 51 of file knjobdata.cpp.
|
inline |
Returns true if we are waiting for at least one job to be completed.
Definition at line 58 of file knjobdata.h.
|
protectedvirtual |
The actual work is done here.
Reimplemented in KNGroupManager, KNode::ArticleWidget, KNArticleManager, and KNArticleFactory.
Definition at line 68 of file knjobdata.cpp.
Member Data Documentation
List of all active jobs.
Definition at line 68 of file knjobdata.h.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:34:18 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.