summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSandro Knauß <[email protected]>2017-10-30 18:36:42 +0100
committerSandro Knauß <[email protected]>2017-11-14 15:42:20 +0100
commitcd7c19a7e9ba819ed28d5803ccb78e7a6ec8be21 (patch)
treebc5be5f8faf14f9825a73560c0273119cb2ccdd0
parent24192bcb072bdf3377c56cf5502f5a2aaba73428 (diff)
Cleanup PartNodeBodyPart
-rw-r--r--mimetreeparser/src/partnodebodypart.cpp27
-rw-r--r--mimetreeparser/src/partnodebodypart.h29
2 files changed, 30 insertions, 26 deletions
diff --git a/mimetreeparser/src/partnodebodypart.cpp b/mimetreeparser/src/partnodebodypart.cpp
index e48e4f1..00c5d69 100644
--- a/mimetreeparser/src/partnodebodypart.cpp
+++ b/mimetreeparser/src/partnodebodypart.cpp
@@ -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;
+}
diff --git a/mimetreeparser/src/partnodebodypart.h b/mimetreeparser/src/partnodebodypart.h
index 3fc122f..cd8eb13 100644
--- a/mimetreeparser/src/partnodebodypart.h
+++ b/mimetreeparser/src/partnodebodypart.h
@@ -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;