mailcommon
#include <jobscheduler.h>
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
|
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:
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.