mailcommon
#include <itemcontext.h>
Public Member Functions | |
ItemContext (const Akonadi::Item &item, bool needsFullPayload) | |
bool | deleteItem () const |
Akonadi::Item & | item () |
Akonadi::Collection | moveTargetCollection () const |
bool | needsFlagStore () const |
bool | needsFullPayload () const |
bool | needsPayloadStore () const |
void | setDeleteItem () |
void | setMoveTargetCollection (const Akonadi::Collection &collection) |
void | setNeedsFlagStore () |
void | setNeedsPayloadStore () |
Detailed Description
A helper class for the filtering process.
The item context is used to pass the item together with meta data through the filter chain. This allows to 'record' all actions that shall be taken and execute them at the end of the filter chain.
Definition at line 39 of file itemcontext.h.
Constructor & Destructor Documentation
ItemContext::ItemContext | ( | const Akonadi::Item & | item, |
bool | needsFullPayload | ||
) |
Creates an item context for the given item
.
requestedPart
the part requested for the item (Envelope, Header or CompleteMessage)
Definition at line 24 of file itemcontext.cpp.
Member Function Documentation
bool ItemContext::deleteItem | ( | ) | const |
Definition at line 70 of file itemcontext.cpp.
Akonadi::Item & ItemContext::item | ( | ) |
Returns the item of the context.
Definition at line 30 of file itemcontext.cpp.
Akonadi::Collection ItemContext::moveTargetCollection | ( | ) | const |
Returns the target collection the item should be moved to, or an invalid collection if the item should not be moved at all.
Definition at line 40 of file itemcontext.cpp.
bool ItemContext::needsFlagStore | ( | ) | const |
Returns whether the item's flags needs to be written back.
Definition at line 60 of file itemcontext.cpp.
bool ItemContext::needsFullPayload | ( | ) | const |
Returns true if the full payload was requested for the item or not.
Full payload is needed to change the headers or the body
Definition at line 76 of file itemcontext.cpp.
bool ItemContext::needsPayloadStore | ( | ) | const |
Returns whether the item's payload needs to be written back.
Definition at line 50 of file itemcontext.cpp.
void ItemContext::setDeleteItem | ( | ) |
Definition at line 65 of file itemcontext.cpp.
void ItemContext::setMoveTargetCollection | ( | const Akonadi::Collection & | collection | ) |
Sets the target collection the item should be moved to.
Definition at line 35 of file itemcontext.cpp.
void ItemContext::setNeedsFlagStore | ( | ) |
Marks that the item's flags has been changed and needs to be written back.
Definition at line 55 of file itemcontext.cpp.
void ItemContext::setNeedsPayloadStore | ( | ) |
Marks that the item's payload has been changed and needs to be written back.
Definition at line 45 of file itemcontext.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.