MimeTreeParser::PartNodeBodyPart

Search for usage in LXR

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
 
- Public Member Functions inherited from MimeTreeParser::Interface::BodyPart

Detailed Description

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

Definition at line 31 of file partnodebodypart.h.

Constructor & Destructor Documentation

◆ PartNodeBodyPart()

PartNodeBodyPart::PartNodeBodyPart ( ObjectTreeParser * otp,
ProcessResult * result,
KMime::Content * topLevelContent,
KMime::Content * content,
NodeHelper * nodeHelper )
explicit

Definition at line 18 of file partnodebodypart.cpp.

Member Function Documentation

◆ content()

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 45 of file partnodebodypart.cpp.

◆ memento()

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 32 of file partnodebodypart.cpp.

◆ nodeHelper()

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 55 of file partnodebodypart.cpp.

◆ objectTreeParser()

ObjectTreeParser * PartNodeBodyPart::objectTreeParser ( ) const
overridevirtual

For making it easier to refactor, add objectTreeParser.

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 60 of file partnodebodypart.cpp.

◆ processResult()

ProcessResult * PartNodeBodyPart::processResult ( ) const
overridevirtual

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 65 of file partnodebodypart.cpp.

◆ source()

Interface::ObjectTreeSource * PartNodeBodyPart::source ( ) const
overridevirtual

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 40 of file partnodebodypart.cpp.

◆ topLevelContent()

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 50 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-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:59:13 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.