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

knode

Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
KNJobConsumer Class Reference

#include <knjobdata.h>

Inheritance diagram for KNJobConsumer:
Inheritance graph
[legend]

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.

KNJobConsumer::~KNJobConsumer ( )
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.

bool KNJobConsumer::jobsPending ( ) const
inline

Returns true if we are waiting for at least one job to be completed.

Definition at line 58 of file knjobdata.h.

void KNJobConsumer::processJob ( KNJobData *  j)
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

QList<KNJobData*> KNJobConsumer::mJobs
protected

List of all active jobs.

Definition at line 68 of file knjobdata.h.


The documentation for this class was generated from the following files:
  • knjobdata.h
  • knjobdata.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

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

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal