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

mailcommon

  • MailCommon
  • JobScheduler
Public Member Functions | List of all members
MailCommon::JobScheduler Class Reference

#include <jobscheduler.h>

Inheritance diagram for MailCommon::JobScheduler:
Inheritance graph
[legend]

Public Member Functions

 JobScheduler (QObject *parent)
 
 ~JobScheduler ()
 
void pause ()
 
void registerTask (ScheduledTask *task)
 
void resume ()
 

Detailed Description

The unique JobScheduler instance (owned by kmkernel) implements "background processing" of folder operations (like expiration and compaction).

Tasks (things to be done) are registered with the JobScheduler, and it will execute them one at a time, separated with a 1-minute timer. The jobs themselves should use timers to avoid using too much CPU for too long. Tasks for opened folders are not executed until the folder is closed.

Definition at line 95 of file jobscheduler.h.

Constructor & Destructor Documentation

MailCommon::JobScheduler::JobScheduler ( QObject *  parent)
explicit

Definition at line 44 of file jobscheduler.cpp.

MailCommon::JobScheduler::~JobScheduler ( )

Definition at line 54 of file jobscheduler.cpp.

Member Function Documentation

void MailCommon::JobScheduler::pause ( )

Definition at line 219 of file jobscheduler.cpp.

void MailCommon::JobScheduler::registerTask ( ScheduledTask *  task)

Register a task to be done for a given folder The ownership of the task is transferred to the JobScheduler.

Definition at line 63 of file jobscheduler.cpp.

void MailCommon::JobScheduler::resume ( )

Definition at line 227 of file jobscheduler.cpp.


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

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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