Changeset View
Changeset View
Standalone View
Standalone View
mimetreeparser/autotests/bodypartformatterbasefactorytest.cpp
Show All 11 Lines | 1 | /* | |||
---|---|---|---|---|---|
12 | License for more details. | 12 | License for more details. | ||
13 | 13 | | |||
14 | You should have received a copy of the GNU Library General Public License | 14 | You should have received a copy of the GNU Library General Public License | ||
15 | along with this library; see the file COPYING.LIB. If not, write to the | 15 | along with this library; see the file COPYING.LIB. If not, write to the | ||
16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | 16 | Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA | ||
17 | 02110-1301, USA. | 17 | 02110-1301, USA. | ||
18 | */ | 18 | */ | ||
19 | 19 | | |||
20 | #include "viewer/bodypartformatterbasefactory.h" | 20 | #include "viewer/bodypartformatterfactory.h" | ||
21 | #include "interfaces/bodypartformatter.h" | 21 | #include "interfaces/bodypartformatter.h" | ||
22 | 22 | | |||
23 | #include <qtest.h> | 23 | #include <qtest.h> | ||
24 | 24 | | |||
25 | using namespace MimeTreeParser; | 25 | using namespace MimeTreeParser; | ||
26 | 26 | | |||
27 | class DummyFormatter : public Interface::BodyPartFormatter | 27 | class DummyFormatter : public Interface::BodyPartFormatter | ||
28 | { | 28 | { | ||
29 | }; | 29 | }; | ||
30 | 30 | | |||
31 | class TestFactory : public BodyPartFormatterBaseFactory | 31 | class TestFactory : public BodyPartFormatterFactory | ||
32 | { | 32 | { | ||
33 | public: | 33 | public: | ||
34 | void loadPlugins() override | 34 | void loadPlugins() override | ||
35 | { | 35 | { | ||
36 | textCalFormatter = new DummyFormatter; | 36 | textCalFormatter = new DummyFormatter; | ||
37 | insert(QStringLiteral("TEXT/CALENDAR"), textCalFormatter, 100); | 37 | insert(QStringLiteral("TEXT/CALENDAR"), textCalFormatter, 100); | ||
38 | } | 38 | } | ||
39 | 39 | | |||
▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines |