MimeTreeParser::PartNodeBodyPart

MimeTreeParser::PartNodeBodyPart Class Reference

#include <partnodebodypart.h>

Inheritance diagram for MimeTreeParser::PartNodeBodyPart:

Public Member Functions

 PartNodeBodyPart (ObjectTreeParser *otp, ProcessResult *result, KMime::Content *topLevelContent, KMime::Content *content, NodeHelper *nodeHelper)
 
KMime::Contentcontent () const override
 
Interface::BodyPartMementomemento () const override
 
NodeHelpernodeHelper () const override
 
ObjectTreeParserobjectTreeParser () const override
 
ProcessResultprocessResult () const override
 
Interface::ObjectTreeSourcesource () const override
 
KMime::ContenttopLevelContent () const override
 

Detailed Description

an implementation of the BodyPart interface using KMime::Content's

Definition at line 29 of file partnodebodypart.h.

Member Function Documentation

KMime::Content * PartNodeBodyPart::content ( ) const
overridevirtual

Returns the KMime::Content node represented here.

Makes most of the above obsolete and probably should be used in the interfaces in the first place.

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 42 of file partnodebodypart.cpp.

Interface::BodyPartMemento * PartNodeBodyPart::memento ( ) const
overridevirtual
Returns
the BodyPartMemento set for this part, or null, if none is set.

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 29 of file partnodebodypart.cpp.

NodeHelper * PartNodeBodyPart::nodeHelper ( ) const
overridevirtual

Ok, this is ugly, exposing the node helper here, but there is too much useful stuff in there for real-world plugins.

Still, there should be a nicer way for this.

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 52 of file partnodebodypart.cpp.

ObjectTreeParser * PartNodeBodyPart::objectTreeParser ( ) const
overridevirtual

For making it easier to refactor, add objectTreeParser.

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 57 of file partnodebodypart.cpp.

KMime::Content * PartNodeBodyPart::topLevelContent ( ) const
overridevirtual

Returns the top-level content.

Note that this is not necessarily the same as content()->topLevel(), for example the later will not work for "extra nodes", i.e. nodes in encrypted parts of the mail. topLevelContent() will return the correct result in this case. Also note that topLevelContent()

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 47 of file partnodebodypart.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Fri Aug 7 2020 23:11:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.