Commit cd7c19a7 authored by Sandro Knauß's avatar Sandro Knauß

Cleanup PartNodeBodyPart

parent 24192bcb
......@@ -57,9 +57,32 @@ Interface::BodyPartMemento *PartNodeBodyPart::memento() const
return mNodeHelper->bodyPartMemento(mContent, "__plugin__");
}
Interface::ObjectTreeSource *PartNodeBodyPart::source() const
{
return mObjectTreeParser->mSource;
}
KMime::Content *PartNodeBodyPart::content() const
{
return mContent;
}
KMime::Content *PartNodeBodyPart::topLevelContent() const
{
return mTopLevelContent;
}
NodeHelper *PartNodeBodyPart::nodeHelper() const
{
return mNodeHelper;
}
ObjectTreeParser *PartNodeBodyPart::objectTreeParser() const
{
return mObjectTreeParser;
}
ProcessResult *PartNodeBodyPart::processResult() const
{
return mProcessResult;
}
......@@ -55,31 +55,12 @@ public:
explicit PartNodeBodyPart(ObjectTreeParser *otp, ProcessResult *result, KMime::Content *topLevelContent, KMime::Content *content, NodeHelper *nodeHelper);
Interface::BodyPartMemento *memento() const override;
KMime::Content *content() const override
{
return mContent;
}
KMime::Content *topLevelContent() const override
{
return mTopLevelContent;
}
NodeHelper *nodeHelper() const override
{
return mNodeHelper;
}
ObjectTreeParser *objectTreeParser() const override
{
return mObjectTreeParser;
}
ProcessResult *processResult() const override
{
return mProcessResult;
}
KMime::Content *content() const override;
KMime::Content *topLevelContent() const override;
ProcessResult *processResult() const override;
NodeHelper *nodeHelper() const override;
ObjectTreeParser *objectTreeParser() const override;
Interface::ObjectTreeSource *source() const override;
private:
KMime::Content *mTopLevelContent = nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment