Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/objecttreeparser.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | #include "objecttreesourceif.h" | 44 | #include "objecttreesourceif.h" | ||
45 | #include "messageviewer/autoqpointer.h" | 45 | #include "messageviewer/autoqpointer.h" | ||
46 | #include "viewer/viewer_p.h" | 46 | #include "viewer/viewer_p.h" | ||
47 | #include "partmetadata.h" | 47 | #include "partmetadata.h" | ||
48 | #include "attachmentstrategy.h" | 48 | #include "attachmentstrategy.h" | ||
49 | #include "interfaces/htmlwriter.h" | 49 | #include "interfaces/htmlwriter.h" | ||
50 | #include "widgets/htmlstatusbar.h" | 50 | #include "widgets/htmlstatusbar.h" | ||
51 | #include "csshelper.h" | 51 | #include "csshelper.h" | ||
52 | #include "bodypartformatter.h" | | |||
53 | #include "viewer/bodypartformatterfactory.h" | 52 | #include "viewer/bodypartformatterfactory.h" | ||
54 | #include "viewer/partnodebodypart.h" | 53 | #include "viewer/partnodebodypart.h" | ||
55 | #include "interfaces/bodypartformatter.h" | 54 | #include "interfaces/bodypartformatter.h" | ||
56 | #include "settings/messageviewersettings.h" | 55 | #include "settings/messageviewersettings.h" | ||
57 | #include "messageviewer/messageviewerutil.h" | 56 | #include "messageviewer/messageviewerutil.h" | ||
58 | #include "job/kleojobexecutor.h" | 57 | #include "job/kleojobexecutor.h" | ||
59 | #include "messageviewer/nodehelper.h" | 58 | #include "messageviewer/nodehelper.h" | ||
60 | #include "utils/iconnamecache.h" | 59 | #include "utils/iconnamecache.h" | ||
▲ Show 20 Lines • Show All 314 Lines • ▼ Show 20 Line(s) | 354 | if (const Interface::BodyPartFormatter * formatter | |||
375 | case Interface::BodyPartFormatter::Ok: | 374 | case Interface::BodyPartFormatter::Ok: | ||
376 | case Interface::BodyPartFormatter::NeedContent: | 375 | case Interface::BodyPartFormatter::NeedContent: | ||
377 | // FIXME: incomplete content handling | 376 | // FIXME: incomplete content handling | ||
378 | ; | 377 | ; | ||
379 | } | 378 | } | ||
380 | 379 | | |||
381 | // No external plugin can handle the MIME part, handle it internally | 380 | // No external plugin can handle the MIME part, handle it internally | ||
382 | } else { | 381 | } else { | ||
383 | const BodyPartFormatter *bpf | | |||
384 | = BodyPartFormatter::createFor(mediaType, subType); | | |||
385 | if (!bpf) { | | |||
386 | qCCritical(MESSAGEVIEWER_LOG) << "THIS SHOULD NO LONGER HAPPEN:" << mediaType << '/' << subType; | 382 | qCCritical(MESSAGEVIEWER_LOG) << "THIS SHOULD NO LONGER HAPPEN:" << mediaType << '/' << subType; | ||
387 | } | | |||
388 | AttachmentMarkBlock block(htmlWriter(), node); | 383 | AttachmentMarkBlock block(htmlWriter(), node); | ||
389 | if (bpf && !bpf->process(this, node, processResult)) { | | |||
390 | defaultHandling(node, processResult); | 384 | defaultHandling(node, processResult); | ||
391 | } | 385 | } | ||
392 | } | | |||
393 | mNodeHelper->setNodeProcessed(node, false); | 386 | mNodeHelper->setNodeProcessed(node, false); | ||
394 | 387 | | |||
395 | // adjust signed/encrypted flags if inline PGP was found | 388 | // adjust signed/encrypted flags if inline PGP was found | ||
396 | processResult.adjustCryptoStatesOfNode(node); | 389 | processResult.adjustCryptoStatesOfNode(node); | ||
397 | 390 | | |||
398 | if (showOnlyOneMimePart()) { | 391 | if (showOnlyOneMimePart()) { | ||
399 | break; | 392 | break; | ||
400 | } | 393 | } | ||
▲ Show 20 Lines • Show All 2689 Lines • Show Last 20 Lines |