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

Detailed Description

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

Definition at line 31 of file partnodebodypart.h.

Member Function Documentation

◆ content()

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

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
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

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

For making it easier to refactor, add objectTreeParser.

Implements MimeTreeParser::Interface::BodyPart.

Definition at line 60 of file partnodebodypart.cpp.

◆ topLevelContent()

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

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-2023 The KDE developers.
Generated on Fri Dec 1 2023 03:57:08 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.