Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/objecttreeparser.h
Show First 20 Lines • Show All 437 Lines • ▼ Show 20 Line(s) | 407 | public:// (during refactoring) | |||
---|---|---|---|---|---|
438 | 438 | | |||
439 | void writeBodyStr(const QByteArray &bodyString, | 439 | void writeBodyStr(const QByteArray &bodyString, | ||
440 | const QTextCodec *aCodec, | 440 | const QTextCodec *aCodec, | ||
441 | const QString &fromAddress, | 441 | const QString &fromAddress, | ||
442 | KMMsgSignatureState &inlineSignatureState, | 442 | KMMsgSignatureState &inlineSignatureState, | ||
443 | KMMsgEncryptionState &inlineEncryptionState, | 443 | KMMsgEncryptionState &inlineEncryptionState, | ||
444 | bool decorate); | 444 | bool decorate); | ||
445 | 445 | | |||
446 | QVector<MessagePart::Ptr> writeBodyStr2(const QByteArray &aStr, const QTextCodec *aCodec, | ||||
vkrause: I assume that's also just temporary during refactoring? Otherwise we might want to look for a… | |||||
well there are only two places that refer to that function (defaultHandling and TextMessagePart). So it will be very fast to move that function out of otp.
-> TextMessagePart doesn't need to be a friend class of otp anymore. knauss: well there are only two places that refer to that function (defaultHandling and… | |||||
447 | const QString &fromAddress, | ||||
448 | KMMsgSignatureState &inlineSignatureState, | ||||
449 | KMMsgEncryptionState &inlineEncryptionState); | ||||
450 | | ||||
446 | bool isMailmanMessage(KMime::Content *curNode); | 451 | bool isMailmanMessage(KMime::Content *curNode); | ||
447 | 452 | | |||
448 | public: | 453 | public: | ||
449 | static KMime::Content *findType(KMime::Content *content, const QByteArray &mimeType, bool deep, bool wide); | 454 | static KMime::Content *findType(KMime::Content *content, const QByteArray &mimeType, bool deep, bool wide); | ||
450 | 455 | | |||
451 | static KMime::Content *findType(KMime::Content *content, const QByteArray &mediaType, const QByteArray &subType, bool deep, bool wide); | 456 | static KMime::Content *findType(KMime::Content *content, const QByteArray &mediaType, const QByteArray &subType, bool deep, bool wide); | ||
452 | 457 | | |||
453 | static KMime::Content *findTypeNot(KMime::Content *content, const QByteArray &mediaType, const QByteArray &subType, bool deep = true, bool wide = true); | 458 | static KMime::Content *findTypeNot(KMime::Content *content, const QByteArray &mediaType, const QByteArray &subType, bool deep = true, bool wide = true); | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | 484 | private: | |||
506 | QString mCollapseIcon; | 511 | QString mCollapseIcon; | ||
507 | QString mExpandIcon; | 512 | QString mExpandIcon; | ||
508 | bool mDeleteNodeHelper; | 513 | bool mDeleteNodeHelper; | ||
509 | bool mPrinting; | 514 | bool mPrinting; | ||
510 | 515 | | |||
511 | friend class MessagePart; | 516 | friend class MessagePart; | ||
512 | friend class CryptoMessagePart; | 517 | friend class CryptoMessagePart; | ||
513 | friend class EncapsulatedRfc822MessagePart; | 518 | friend class EncapsulatedRfc822MessagePart; | ||
519 | friend class TextMessagePart; | ||||
514 | }; | 520 | }; | ||
515 | 521 | | |||
516 | } | 522 | } | ||
517 | 523 | | |||
518 | #endif // _KMAIL_OBJECTTREEPARSER_H_ | 524 | #endif // _KMAIL_OBJECTTREEPARSER_H_ | ||
519 | 525 | |
I assume that's also just temporary during refactoring? Otherwise we might want to look for a better name.