mailtransport
#include <filteractionjob_p.h>
Public Member Functions | |
virtual | ~FilterAction () |
virtual Akonadi::ItemFetchScope | fetchScope () const =0 |
virtual bool | itemAccepted (const Akonadi::Item &item) const =0 |
virtual Akonadi::Job * | itemAction (const Akonadi::Item &item, Akonadi::FilterActionJob *parent) const =0 |
Detailed Description
Base class for a filter/action for FilterActionJob.
Abstract class defining an interface for a filter and an action for FilterActionJob. The virtual methods must be implemented in subclasses.
- See also
- FilterActionJob
- Since
- 4.4
Definition at line 75 of file filteractionjob_p.h.
Constructor & Destructor Documentation
|
virtual |
Destroys this filter action.
A FilterActionJob will delete its FilterAction automatically.
Definition at line 87 of file filteractionjob.cpp.
Member Function Documentation
|
pure virtual |
Returns an ItemFetchScope to use if the FilterActionJob needs to fetch the items from a collection.
- Note
- The items are not fetched unless FilterActionJob is constructed with a Collection parameter.
Implemented in MailTransport::DispatchManualTransportAction, MailTransport::ClearErrorAction, and MailTransport::SendQueuedAction.
|
pure virtual |
Returns true
if the item
is accepted by the filter and should be acted upon by the FilterActionJob.
Implemented in MailTransport::DispatchManualTransportAction, MailTransport::ClearErrorAction, and MailTransport::SendQueuedAction.
|
pure virtual |
Returns a job to act on the item
.
The FilterActionJob will finish when all such jobs are finished.
- Parameters
-
item the item to work on parent the parent job
Implemented in MailTransport::DispatchManualTransportAction, MailTransport::ClearErrorAction, and MailTransport::SendQueuedAction.
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.