mailtransport
#include <filteractionjob_p.h>
Inherits TransactionSequence.
Public Member Functions | |
FilterActionJob (const Item &item, FilterAction *functor, QObject *parent=0) | |
FilterActionJob (const Item::List &items, FilterAction *functor, QObject *parent=0) | |
FilterActionJob (const Collection &collection, FilterAction *functor, QObject *parent=0) | |
~FilterActionJob () | |
Protected Member Functions | |
virtual void | doStart () |
Detailed Description
Job to filter and apply an action on a set of items.
This jobs filters through a set of items, and applies an action to the items which are accepted by the filter. The filter and action are provided by a functor class derived from FilterAction.
For example, a MarkAsRead action/filter may be used to mark all messages in a folder as read.
- See also
- FilterAction
- Since
- 4.4
Definition at line 131 of file filteractionjob_p.h.
Constructor & Destructor Documentation
FilterActionJob::FilterActionJob | ( | const Item & | item, |
FilterAction * | functor, | ||
QObject * | parent = 0 |
||
) |
Creates a filter action job to act on a single item.
- Parameters
-
item The item to act on. The item is not re-fetched. functor The FilterAction to use. parent The parent object.
Definition at line 91 of file filteractionjob.cpp.
FilterActionJob::FilterActionJob | ( | const Item::List & | items, |
FilterAction * | functor, | ||
QObject * | parent = 0 |
||
) |
Creates a filter action job to act on a set of items.
- Parameters
-
items The items to act on. The items are not re-fetched. functor The FilterAction to use. parent The parent object.
Definition at line 98 of file filteractionjob.cpp.
FilterActionJob::FilterActionJob | ( | const Collection & | collection, |
FilterAction * | functor, | ||
QObject * | parent = 0 |
||
) |
Creates a filter action job to act on items in a collection.
- Parameters
-
collection The collection to act on. The items of the collection are fetched using functor->fetchScope(). functor The FilterAction to use. parent The parent object.
Definition at line 105 of file filteractionjob.cpp.
FilterActionJob::~FilterActionJob | ( | ) |
Destroys the filter action job.
Definition at line 114 of file filteractionjob.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:37:49 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.