Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/src/objecttreeparser.cpp
Show First 20 Lines • Show All 129 Lines • ▼ Show 20 Line(s) | 129 | { | |||
---|---|---|---|---|---|
130 | return mPlainTextContent; | 130 | return mPlainTextContent; | ||
131 | } | 131 | } | ||
132 | 132 | | |||
133 | QString ObjectTreeParser::htmlContent() const | 133 | QString ObjectTreeParser::htmlContent() const | ||
134 | { | 134 | { | ||
135 | return mHtmlContent; | 135 | return mHtmlContent; | ||
136 | } | 136 | } | ||
137 | 137 | | |||
138 | void ObjectTreeParser::copyContentFrom(const ObjectTreeParser *other) | | |||
139 | { | | |||
140 | mPlainTextContent += other->plainTextContent(); | | |||
141 | mHtmlContent += other->htmlContent(); | | |||
142 | if (!other->plainTextContentCharset().isEmpty()) { | | |||
143 | mPlainTextContentCharset = other->plainTextContentCharset(); | | |||
144 | } | | |||
145 | if (!other->htmlContentCharset().isEmpty()) { | | |||
146 | mHtmlContentCharset = other->htmlContentCharset(); | | |||
147 | } | | |||
148 | } | | |||
149 | | ||||
150 | //----------------------------------------------------------------------------- | 138 | //----------------------------------------------------------------------------- | ||
151 | 139 | | |||
152 | void ObjectTreeParser::parseObjectTree(KMime::Content *node, bool parseOnlySingleNode) | 140 | void ObjectTreeParser::parseObjectTree(KMime::Content *node, bool parseOnlySingleNode) | ||
153 | { | 141 | { | ||
154 | mTopLevelContent = node; | 142 | mTopLevelContent = node; | ||
155 | mParsedPart = parseObjectTreeInternal(node, parseOnlySingleNode); | 143 | mParsedPart = parseObjectTreeInternal(node, parseOnlySingleNode); | ||
156 | 144 | | |||
157 | if (mParsedPart) { | 145 | if (mParsedPart) { | ||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |