Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/autotests/setupenv.h
Show All 18 Lines | |||||
19 | */ | 19 | */ | ||
20 | 20 | | |||
21 | #ifndef MESSAGECORE_TESTS_UTIL_H | 21 | #ifndef MESSAGECORE_TESTS_UTIL_H | ||
22 | #define MESSAGECORE_TESTS_UTIL_H | 22 | #define MESSAGECORE_TESTS_UTIL_H | ||
23 | 23 | | |||
24 | #include <gpgme++/key.h> | 24 | #include <gpgme++/key.h> | ||
25 | #include <MimeTreeParser/AttachmentStrategy> | 25 | #include <MimeTreeParser/AttachmentStrategy> | ||
26 | #include <MimeTreeParser/BodyPartFormatter> | 26 | #include <MimeTreeParser/BodyPartFormatter> | ||
27 | #include <MimeTreeParser/BodyPartFormatterBaseFactory> | 27 | #include <MimeTreeParser/BodyPartFormatterFactory> | ||
28 | #include <MimeTreeParser/MessagePart> | 28 | #include <MimeTreeParser/MessagePart> | ||
29 | #include <MimeTreeParser/ObjectTreeSource> | 29 | #include <MimeTreeParser/ObjectTreeSource> | ||
30 | 30 | | |||
31 | namespace MimeTreeParser { | 31 | namespace MimeTreeParser { | ||
32 | namespace Test { | 32 | namespace Test { | ||
33 | /** | 33 | /** | ||
34 | * setup a environment variables for tests: | 34 | * setup a environment variables for tests: | ||
35 | * * set LC_ALL to C | 35 | * * set LC_ALL to C | ||
▲ Show 20 Lines • Show All 50 Lines • ▼ Show 20 Line(s) | 85 | { | |||
86 | return false; | 86 | return false; | ||
87 | } | 87 | } | ||
88 | 88 | | |||
89 | bool showExpandQuotesMark() const override | 89 | bool showExpandQuotesMark() const override | ||
90 | { | 90 | { | ||
91 | return false; | 91 | return false; | ||
92 | } | 92 | } | ||
93 | 93 | | |||
94 | const BodyPartFormatterBaseFactory *bodyPartFormatterFactory() override | 94 | const BodyPartFormatterFactory *bodyPartFormatterFactory() override | ||
95 | { | 95 | { | ||
96 | return &mBodyPartFormatterBaseFactory; | 96 | return &mBodyPartFormatterFactory; | ||
97 | } | 97 | } | ||
98 | 98 | | |||
99 | bool decryptMessage() const override | 99 | bool decryptMessage() const override | ||
100 | { | 100 | { | ||
101 | return mDecryptMessage; | 101 | return mDecryptMessage; | ||
102 | } | 102 | } | ||
103 | 103 | | |||
104 | void setAllowDecryption(bool allowDecryption) | 104 | void setAllowDecryption(bool allowDecryption) | ||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Line(s) | |||||
157 | bool isPrinting() const override | 157 | bool isPrinting() const override | ||
158 | { | 158 | { | ||
159 | return false; | 159 | return false; | ||
160 | } | 160 | } | ||
161 | 161 | | |||
162 | private: | 162 | private: | ||
163 | MimeTreeParser::HtmlWriter *mWriter = nullptr; | 163 | MimeTreeParser::HtmlWriter *mWriter = nullptr; | ||
164 | QString mAttachmentStrategy; | 164 | QString mAttachmentStrategy; | ||
165 | BodyPartFormatterBaseFactory mBodyPartFormatterBaseFactory; | 165 | BodyPartFormatterFactory mBodyPartFormatterFactory; | ||
166 | MimeTreeParser::Util::HtmlMode mPreferredMode; | 166 | MimeTreeParser::Util::HtmlMode mPreferredMode; | ||
167 | bool mHtmlLoadExternal = false; | 167 | bool mHtmlLoadExternal = false; | ||
168 | bool mDecryptMessage = false; | 168 | bool mDecryptMessage = false; | ||
169 | bool mShowSignatureDetails = false; | 169 | bool mShowSignatureDetails = false; | ||
170 | }; | 170 | }; | ||
171 | } | 171 | } | ||
172 | } | 172 | } | ||
173 | 173 | | |||
174 | #endif | 174 | #endif |