• Skip to content
  • Skip to link menu
KDE 4.2 API Reference
  • KDE API Reference
  • kdepim
  • Sitemap
  • Contact Us
 

knode

KNJobConsumer Class Reference

#include <knjobdata.h>

Inheritance diagram for KNJobConsumer:

Inheritance graph
[legend]

List of all members.


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]

List of all active jobs.

Definition at line 62 of file knjobdata.h.


The documentation for this class was generated from the following files:
  • knjobdata.h
  • knjobdata.cpp

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Class Members
  • Related Pages

kdepim

Skip menu "kdepim"
  • akonadi
  •   clients
  •   kabc
  •   kcal
  •   kcm
  • akregator
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt
  • kdgantt1
  • kjots
  • kleopatra
  • kmail
  • kmobiletools
  • knode
  • knotes
  • kontact
  • kontactinterfaces
  • korganizer
  •   korgac
  • kpilot
  • ktimetracker
  •   doc
  • libkdepim
  • libkholidays
  • libkleo
  • libkpgp
  • maildir
Generated for kdepim by doxygen 1.5.4
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal