Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/objecttreeparser.h
Show First 20 Lines • Show All 364 Lines • ▼ Show 20 Line(s) | 360 | private: | |||
---|---|---|---|---|---|
365 | * top-level content. | 365 | * top-level content. | ||
366 | */ | 366 | */ | ||
367 | void parseObjectTreeInternal(KMime::Content *node); | 367 | void parseObjectTreeInternal(KMime::Content *node); | ||
368 | 368 | | |||
369 | /** Standard children handling a.k.a. multipart/mixed (w/o | 369 | /** Standard children handling a.k.a. multipart/mixed (w/o | ||
370 | kroupware hacks) */ | 370 | kroupware hacks) */ | ||
371 | void standardChildHandling(KMime::Content *child); | 371 | void standardChildHandling(KMime::Content *child); | ||
372 | 372 | | |||
373 | void defaultHandling(KMime::Content *node, ProcessResult &result); | 373 | MessagePart::Ptr defaultHandling(KMime::Content *node, ProcessResult &result); | ||
374 | 374 | | |||
375 | /** 1. Create a new partNode using 'content' data and Content-Description | 375 | /** 1. Create a new partNode using 'content' data and Content-Description | ||
376 | found in 'cntDesc'. | 376 | found in 'cntDesc'. | ||
377 | 2. Parse the 'node' to display the content. | 377 | 2. Parse the 'node' to display the content. | ||
378 | */ | 378 | */ | ||
379 | void createAndParseTempNode(KMime::Content *parentNode, const char *content, const char *cntDesc); | 379 | void createAndParseTempNode(KMime::Content *parentNode, const char *content, const char *cntDesc); | ||
380 | 380 | | |||
381 | /** Writes out the information contained in a GpgME::ImportResult */ | 381 | /** Writes out the information contained in a GpgME::ImportResult */ | ||
Show All 13 Lines | |||||
395 | 395 | | |||
396 | bool okVerify(const QByteArray &data, const Kleo::CryptoBackend::Protocol *cryptProto, MessageViewer::PartMetaData &messagePart, QByteArray &verifiedText, std::vector<GpgME::Signature> &signatures, const QByteArray &signature, KMime::Content *sign); | 396 | bool okVerify(const QByteArray &data, const Kleo::CryptoBackend::Protocol *cryptProto, MessageViewer::PartMetaData &messagePart, QByteArray &verifiedText, std::vector<GpgME::Signature> &signatures, const QByteArray &signature, KMime::Content *sign); | ||
397 | void sigStatusToMetaData(const std::vector<GpgME::Signature> &signatures, const Kleo::CryptoBackend::Protocol *cryptoProtocol, PartMetaData &messagePart, GpgME::Key key); | 397 | void sigStatusToMetaData(const std::vector<GpgME::Signature> &signatures, const Kleo::CryptoBackend::Protocol *cryptoProtocol, PartMetaData &messagePart, GpgME::Key key); | ||
398 | 398 | | |||
399 | bool processMailmanMessage(KMime::Content *node); | 399 | bool processMailmanMessage(KMime::Content *node); | ||
400 | 400 | | |||
401 | public:// (during refactoring) | 401 | public:// (during refactoring) | ||
402 | 402 | | |||
403 | bool processTextHtmlSubtype(KMime::Content *node, ProcessResult &result); | 403 | MessagePart::Ptr processTextHtmlSubtype(KMime::Content *node, ProcessResult &result); | ||
404 | bool processTextPlainSubtype(KMime::Content *node, ProcessResult &result); | 404 | MessagePart::Ptr processTextPlainSubtype(KMime::Content *node, ProcessResult &result); | ||
405 | 405 | | |||
406 | bool processMultiPartMixedSubtype(KMime::Content *node, ProcessResult &result); | 406 | MessagePart::Ptr processMultiPartMixedSubtype(KMime::Content *node, ProcessResult &result); | ||
407 | bool processMultiPartAlternativeSubtype(KMime::Content *node, ProcessResult &result); | 407 | MessagePart::Ptr processMultiPartAlternativeSubtype(KMime::Content *node, ProcessResult &result); | ||
408 | MessagePart::Ptr processMultiPartSignedSubtype(KMime::Content *node, ProcessResult &result); | 408 | MessagePart::Ptr processMultiPartSignedSubtype(KMime::Content *node, ProcessResult &result); | ||
409 | MessagePart::Ptr processMultiPartEncryptedSubtype(KMime::Content *node, ProcessResult &result); | 409 | MessagePart::Ptr processMultiPartEncryptedSubtype(KMime::Content *node, ProcessResult &result); | ||
410 | 410 | | |||
411 | bool processApplicationPkcs7MimeSubtype(KMime::Content *node, ProcessResult &result); | 411 | MessagePart::Ptr processApplicationPkcs7MimeSubtype(KMime::Content *node, ProcessResult &result); | ||
412 | 412 | | |||
413 | void writeBodyString(const QByteArray &bodyString, | 413 | void writeBodyString(const QByteArray &bodyString, | ||
414 | const QString &fromAddress, | 414 | const QString &fromAddress, | ||
415 | const QTextCodec *codec, | 415 | const QTextCodec *codec, | ||
416 | ProcessResult &result, bool decorate); | 416 | ProcessResult &result, bool decorate); | ||
417 | 417 | | |||
418 | void writePartIcon(KMime::Content *msgPart, bool inlineImage = false); | 418 | void writePartIcon(KMime::Content *msgPart, bool inlineImage = false); | ||
419 | 419 | | |||
▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines |