Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/src/bodyformatter/mailman.h
Show All 22 Lines | |||||
23 | #include "interfaces/bodypartformatter.h" | 23 | #include "interfaces/bodypartformatter.h" | ||
24 | #include "interfaces/bodypart.h" | 24 | #include "interfaces/bodypart.h" | ||
25 | 25 | | |||
26 | namespace MimeTreeParser { | 26 | namespace MimeTreeParser { | ||
27 | class MailmanBodyPartFormatter : public Interface::BodyPartFormatter | 27 | class MailmanBodyPartFormatter : public Interface::BodyPartFormatter | ||
28 | { | 28 | { | ||
29 | static const MailmanBodyPartFormatter *self; | 29 | static const MailmanBodyPartFormatter *self; | ||
30 | public: | 30 | public: | ||
31 | Interface::MessagePart::Ptr process(Interface::BodyPart &part) const override; | 31 | MessagePartPtr process(Interface::BodyPart &part) const override; | ||
32 | static const Interface::BodyPartFormatter *create(); | 32 | static const Interface::BodyPartFormatter *create(); | ||
33 | 33 | | |||
34 | private: | 34 | private: | ||
35 | bool isMailmanMessage(KMime::Content *curNode) const; | 35 | bool isMailmanMessage(KMime::Content *curNode) const; | ||
36 | }; | 36 | }; | ||
37 | } | 37 | } | ||
38 | 38 | | |||
39 | #endif | 39 | #endif |