Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/src/nodehelper.h
Show First 20 Lines • Show All 72 Lines • ▼ Show 20 Line(s) | 51 | public: | |||
---|---|---|---|---|---|
73 | 73 | | |||
74 | /** | 74 | /** | ||
75 | * Set the 'Content-Type' by mime-magic from the contents of the body. | 75 | * Set the 'Content-Type' by mime-magic from the contents of the body. | ||
76 | * If autoDecode is true the decoded body will be used for mime type | 76 | * If autoDecode is true the decoded body will be used for mime type | ||
77 | * determination (this does not change the body itself). | 77 | * determination (this does not change the body itself). | ||
78 | */ | 78 | */ | ||
79 | static void magicSetType(KMime::Content *node, bool autoDecode = true); | 79 | static void magicSetType(KMime::Content *node, bool autoDecode = true); | ||
80 | 80 | | |||
81 | bool hasMailHeader(const char *header, const KMime::Message *message) const; | ||||
82 | KMime::Headers::Base *mailHeaderAsBase(const char *header, const KMime::Message *message) const; | ||||
83 | KMime::Headers::Generics::AddressList *mailHeaderAsAddressList(const char *header, KMime::Message *message) const; | ||||
84 | QDateTime dateHeader(KMime::Message *message) const; | ||||
85 | | ||||
81 | /** Attach an extra node to an existing node */ | 86 | /** Attach an extra node to an existing node */ | ||
82 | void attachExtraContent(KMime::Content *topLevelNode, KMime::Content *content); | 87 | void attachExtraContent(KMime::Content *topLevelNode, KMime::Content *content); | ||
83 | 88 | | |||
84 | void cleanExtraContent(KMime::Content *topLevelNode); | 89 | void cleanExtraContent(KMime::Content *topLevelNode); | ||
85 | 90 | | |||
86 | /** Get the extra nodes attached to the @param topLevelNode and all sub-nodes of @param topLevelNode */ | 91 | /** Get the extra nodes attached to the @param topLevelNode and all sub-nodes of @param topLevelNode */ | ||
87 | QList<KMime::Content *> extraContents(KMime::Content *topLevelNode) const; | 92 | QList<KMime::Content *> extraContents(KMime::Content *topLevelNode) const; | ||
88 | 93 | | |||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |