Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/objecttreeparser.cpp
Show First 20 Lines • Show All 348 Lines • ▼ Show 20 Line(s) | 348 | if (node->contentType(false) && !node->contentType()->mediaType().isEmpty() && | |||
---|---|---|---|---|---|
349 | !node->contentType()->subType().isEmpty()) { | 349 | !node->contentType()->subType().isEmpty()) { | ||
350 | mediaType = node->contentType()->mediaType(); | 350 | mediaType = node->contentType()->mediaType(); | ||
351 | subType = node->contentType()->subType(); | 351 | subType = node->contentType()->subType(); | ||
352 | } | 352 | } | ||
353 | 353 | | |||
354 | // First, try if an external plugin can handle this MIME part | 354 | // First, try if an external plugin can handle this MIME part | ||
355 | if (const Interface::BodyPartFormatter * formatter | 355 | if (const Interface::BodyPartFormatter * formatter | ||
356 | = BodyPartFormatterFactory::instance()->createFor(mediaType, subType)) { | 356 | = BodyPartFormatterFactory::instance()->createFor(mediaType, subType)) { | ||
357 | PartNodeBodyPart part(mTopLevelContent, node, mNodeHelper, codecFor(node)); | 357 | PartNodeBodyPart part(this, &processResult, mTopLevelContent, node, mNodeHelper, codecFor(node)); | ||
358 | // Set the default display strategy for this body part relying on the | 358 | // Set the default display strategy for this body part relying on the | ||
359 | // identity of Interface::BodyPart::Display and AttachmentStrategy::Display | 359 | // identity of Interface::BodyPart::Display and AttachmentStrategy::Display | ||
360 | part.setDefaultDisplay((Interface::BodyPart::Display) attachmentStrategy()->defaultDisplay(node)); | 360 | part.setDefaultDisplay((Interface::BodyPart::Display) attachmentStrategy()->defaultDisplay(node)); | ||
361 | 361 | | |||
362 | mNodeHelper->setNodeDisplayedEmbedded(node, true); | 362 | mNodeHelper->setNodeDisplayedEmbedded(node, true); | ||
363 | 363 | | |||
364 | AttachmentMarkBlock block(htmlWriter(), node); | 364 | AttachmentMarkBlock block(htmlWriter(), node); | ||
365 | QObject *asyncResultObserver = allowAsync() ? mSource->sourceObject() : 0; | 365 | QObject *asyncResultObserver = allowAsync() ? mSource->sourceObject() : 0; | ||
▲ Show 20 Lines • Show All 2812 Lines • Show Last 20 Lines |