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

mailcommon

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

#include <expirejob.h>

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

Public Member Functions

 ScheduledExpireTask (const Akonadi::Collection &folder, bool immediate)
 
virtual ~ScheduledExpireTask ()
 
virtual ScheduledJob * run ()
 
virtual int taskTypeId () const
 
- Public Member Functions inherited from MailCommon::ScheduledTask
 ScheduledTask (const Akonadi::Collection &folder, bool immediate)
 
virtual ~ScheduledTask ()
 
Akonadi::Collection folder () const
 
bool isImmediate () const
 

Detailed Description

A scheduled "expire mails in this folder" task.

Definition at line 70 of file expirejob.h.

Constructor & Destructor Documentation

MailCommon::ScheduledExpireTask::ScheduledExpireTask ( const Akonadi::Collection &  folder,
bool  immediate 
)
inline

If immediate is set, the job will execute synchronously.

This is used when the user requests explicitly that the operation should happen immediately.

Definition at line 75 of file expirejob.h.

virtual MailCommon::ScheduledExpireTask::~ScheduledExpireTask ( )
inlinevirtual

Definition at line 80 of file expirejob.h.

Member Function Documentation

virtual ScheduledJob* MailCommon::ScheduledExpireTask::run ( )
inlinevirtual

Run this task, i.e.

create a job for it. Important: the job's execute() method must either call open() on the folder or storage immediately, or abort (deleting itself). Usually, that job should also be cancellable. Otherwise (if the open() is delayed) an unrelated open() could happen first and mess things up. If for some reason (e.g. folder deleted) nothing should be done, return 0.

Implements MailCommon::ScheduledTask.

Definition at line 84 of file expirejob.h.

virtual int MailCommon::ScheduledExpireTask::taskTypeId ( ) const
inlinevirtual

An identifier for the type of task (a bit like QListViewItem::rtti) This allows to automatically prevent two identical tasks from being scheduled for the same folder.

To circumvent this feature and make every task unique, return 0 here.

Implements MailCommon::ScheduledTask.

Definition at line 89 of file expirejob.h.


The documentation for this class was generated from the following file:
  • expirejob.h
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