Changeset View
Changeset View
Standalone View
Standalone View
messageviewer/src/viewer/messagepart.h
Show All 16 Lines | 1 | /* | |||
---|---|---|---|---|---|
17 | 02110-1301, USA. | 17 | 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #ifndef _MESSAGEVIEWER_MESSAGEPART_H_ | 20 | #ifndef _MESSAGEVIEWER_MESSAGEPART_H_ | ||
21 | #define _MESSAGEVIEWER_MESSAGEPART_H_ | 21 | #define _MESSAGEVIEWER_MESSAGEPART_H_ | ||
22 | 22 | | |||
23 | #include "partmetadata.h" | 23 | #include "partmetadata.h" | ||
24 | #include "nodehelper.h" | 24 | #include "nodehelper.h" | ||
25 | #include "interfaces/bodypartformatter.h" | ||||
25 | #include <KMime/Message> | 26 | #include <KMime/Message> | ||
26 | 27 | | |||
27 | #include <Libkleo/CryptoBackend> | 28 | #include <Libkleo/CryptoBackend> | ||
28 | #include <gpgme++/verificationresult.h> | 29 | #include <gpgme++/verificationresult.h> | ||
29 | #include <importresult.h> | 30 | #include <importresult.h> | ||
30 | 31 | | |||
31 | #include <QString> | 32 | #include <QString> | ||
32 | #include <QSharedPointer> | 33 | #include <QSharedPointer> | ||
▲ Show 20 Lines • Show All 125 Lines • ▼ Show 20 Line(s) | |||||
158 | private: | 159 | private: | ||
159 | void internalEnter(); | 160 | void internalEnter(); | ||
160 | void internalExit(); | 161 | void internalExit(); | ||
161 | private: | 162 | private: | ||
162 | HtmlWriter* mWriter; | 163 | HtmlWriter* mWriter; | ||
163 | const QString &mMsg; | 164 | const QString &mMsg; | ||
164 | }; | 165 | }; | ||
165 | 166 | | |||
166 | class MessagePart | 167 | class MessagePart : public Interface::MessagePart | ||
167 | { | 168 | { | ||
168 | public: | 169 | public: | ||
169 | typedef QSharedPointer<MessagePart> Ptr; | 170 | typedef QSharedPointer<MessagePart> Ptr; | ||
170 | MessagePart(ObjectTreeParser *otp, | 171 | MessagePart(ObjectTreeParser *otp, | ||
171 | const QString &text); | 172 | const QString &text); | ||
172 | 173 | | |||
173 | virtual ~MessagePart(); | 174 | virtual ~MessagePart(); | ||
174 | 175 | | |||
175 | virtual QString text() const; | 176 | virtual QString text() const Q_DECL_OVERRIDE; | ||
176 | void setText(const QString &text); | 177 | void setText(const QString &text); | ||
177 | virtual void html(bool decorate); | 178 | virtual void html(bool decorate) Q_DECL_OVERRIDE; | ||
178 | 179 | | |||
179 | PartMetaData *partMetaData(); | 180 | PartMetaData *partMetaData(); | ||
180 | 181 | | |||
181 | protected: | 182 | protected: | ||
182 | void parseInternal(KMime::Content *node, bool onlyOneMimePart); | 183 | void parseInternal(KMime::Content *node, bool onlyOneMimePart); | ||
183 | void renderInternalHtml() const; | 184 | void renderInternalHtml() const; | ||
184 | void copyContentFrom() const; | 185 | void copyContentFrom() const; | ||
185 | QString renderInternalText() const; | 186 | QString renderInternalText() const; | ||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |