Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/partnodebodypart.h
Show First 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
53 | { | 53 | { | ||
54 | 54 | | |||
55 | /** | 55 | /** | ||
56 | @short an implementation of the BodyPart interface using KMime::Content's | 56 | @short an implementation of the BodyPart interface using KMime::Content's | ||
57 | */ | 57 | */ | ||
58 | class PartNodeBodyPart : public Interface::BodyPart | 58 | class PartNodeBodyPart : public Interface::BodyPart | ||
59 | { | 59 | { | ||
60 | public: | 60 | public: | ||
61 | explicit PartNodeBodyPart(KMime::Content *topLevelContent, KMime::Content *content, | 61 | explicit PartNodeBodyPart(ObjectTreeParser *otp, ProcessResult *result, KMime::Content *topLevelContent, KMime::Content *content, | ||
62 | NodeHelper *nodeHelper, const QTextCodec *codec = 0); | 62 | NodeHelper *nodeHelper, const QTextCodec *codec = 0); | ||
63 | 63 | | |||
64 | QString makeLink(const QString &path) const Q_DECL_OVERRIDE; | 64 | QString makeLink(const QString &path) const Q_DECL_OVERRIDE; | ||
65 | QString asText() const Q_DECL_OVERRIDE; | 65 | QString asText() const Q_DECL_OVERRIDE; | ||
66 | QByteArray asBinary() const Q_DECL_OVERRIDE; | 66 | QByteArray asBinary() const Q_DECL_OVERRIDE; | ||
67 | QString contentTypeParameter(const char *param) const Q_DECL_OVERRIDE; | 67 | QString contentTypeParameter(const char *param) const Q_DECL_OVERRIDE; | ||
68 | QString contentDescription() const Q_DECL_OVERRIDE; | 68 | QString contentDescription() const Q_DECL_OVERRIDE; | ||
69 | //int contentDisposition() const; | 69 | //int contentDisposition() const; | ||
Show All 12 Lines | |||||
82 | { | 82 | { | ||
83 | return mTopLevelContent; | 83 | return mTopLevelContent; | ||
84 | } | 84 | } | ||
85 | NodeHelper *nodeHelper() const Q_DECL_OVERRIDE | 85 | NodeHelper *nodeHelper() const Q_DECL_OVERRIDE | ||
86 | { | 86 | { | ||
87 | return mNodeHelper; | 87 | return mNodeHelper; | ||
88 | } | 88 | } | ||
89 | 89 | | |||
90 | ObjectTreeParser *objectTreeParser() const Q_DECL_OVERRIDE | ||||
91 | { | ||||
92 | return mObjectTreeParser; | ||||
93 | } | ||||
94 | | ||||
95 | ProcessResult *processResult() const Q_DECL_OVERRIDE | ||||
96 | { | ||||
97 | return mProcessResult; | ||||
98 | } | ||||
99 | | ||||
90 | private: | 100 | private: | ||
91 | KMime::Content *mTopLevelContent; | 101 | KMime::Content *mTopLevelContent; | ||
92 | KMime::Content *mContent; | 102 | KMime::Content *mContent; | ||
93 | const QTextCodec *mCodec; | 103 | const QTextCodec *mCodec; | ||
94 | BodyPart::Display mDefaultDisplay; | 104 | BodyPart::Display mDefaultDisplay; | ||
95 | NodeHelper *mNodeHelper; | 105 | NodeHelper *mNodeHelper; | ||
106 | ObjectTreeParser *mObjectTreeParser; | ||||
107 | ProcessResult *mProcessResult; | ||||
96 | }; | 108 | }; | ||
97 | 109 | | |||
98 | } | 110 | } | ||
99 | 111 | | |||
100 | #endif // __MESSAGEVIEWER_PARTNODEBODYPART_H_ | 112 | #endif // __MESSAGEVIEWER_PARTNODEBODYPART_H_ |