knode
KNJobConsumer Class Reference
#include <knjobdata.h>
Inheritance diagram for KNJobConsumer:

Detailed Description
Base class for classes that want to create and schedule jobs.
Definition at line 37 of file knjobdata.h.
Public Member Functions | |
| void | emitJob (KNJobData *j) |
| void | jobDone (KNJobData *j) |
| bool | jobsPending () const |
| KNJobConsumer () | |
| virtual | ~KNJobConsumer () |
Protected Member Functions | |
| virtual void | processJob (KNJobData *j) |
Protected Attributes | |
| QList< KNJobData * > | mJobs |
Constructor & Destructor Documentation
| KNJobConsumer::KNJobConsumer | ( | ) |
Definition at line 30 of file knjobdata.cpp.
| KNJobConsumer::~KNJobConsumer | ( | ) | [virtual] |
Definition at line 35 of file knjobdata.cpp.
Member Function Documentation
| 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.
| bool KNJobConsumer::jobsPending | ( | ) | const [inline] |
Returns true if we are waiting for at least one job to be completed.
Definition at line 56 of file knjobdata.h.
| void KNJobConsumer::processJob | ( | KNJobData * | j | ) | [protected, virtual] |
The actual work is done here.
Reimplemented in KNode::ArticleWidget, KNArticleFactory, KNArticleManager, and KNGroupManager.
Definition at line 58 of file knjobdata.cpp.
Member Data Documentation
QList<KNJobData*> KNJobConsumer::mJobs [protected] |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference