summaryrefslogtreecommitdiffstats
path: root/framework/domain
diff options
context:
space:
mode:
Diffstat (limited to 'framework/domain')
-rw-r--r--framework/domain/CMakeLists.txt41
-rw-r--r--framework/domain/mailplugin.cpp52
-rw-r--r--framework/domain/mailplugin.h33
3 files changed, 0 insertions, 126 deletions
diff --git a/framework/domain/CMakeLists.txt b/framework/domain/CMakeLists.txt
deleted file mode 100644
index e1482301..00000000
--- a/framework/domain/CMakeLists.txt
+++ /dev/null
@@ -1,41 +0,0 @@
1set(mailplugin_SRCS
2 attachmentmodel.cpp
3 mailplugin.cpp
4 maillistmodel.cpp
5 folderlistmodel.cpp
6 actions/sinkactions.cpp
7 objecttreesource.cpp
8 stringhtmlwriter.cpp
9 composercontroller.cpp
10 messageparser.cpp
11 messageparser_new.cpp
12 messageparser_old.cpp
13 mailtemplates.cpp
14 modeltest.cpp
15 retriever.cpp
16 outboxmodel.cpp
17 identitiesmodel.cpp
18 recepientautocompletionmodel.cpp
19 settings/accountsettings.cpp
20 selector.cpp
21 completer.cpp
22 controller.cpp
23 outboxcontroller.cpp
24 mailcontroller.cpp
25 foldercontroller.cpp
26 mouseproxy.cpp
27 contactcontroller.cpp
28 peoplemodel.cpp
29)
30find_package(KF5 REQUIRED COMPONENTS Package)
31
32add_library(mailplugin SHARED ${mailplugin_SRCS})
33
34qt5_use_modules(mailplugin Core Quick Qml WebKitWidgets Test)
35target_link_libraries(mailplugin actionplugin settingsplugin sink mimetreeparser KF5::MimeTreeParser KF5::Codecs KF5::Package KAsync)
36
37
38install(TARGETS mailplugin DESTINATION ${FRAMEWORK_INSTALL_DIR})
39
40add_subdirectory(actions/tests)
41add_subdirectory(mimetreeparser)
diff --git a/framework/domain/mailplugin.cpp b/framework/domain/mailplugin.cpp
deleted file mode 100644
index b32832e0..00000000
--- a/framework/domain/mailplugin.cpp
+++ /dev/null
@@ -1,52 +0,0 @@
1/*
2 Copyright (c) 2016 Michael Bohlender <michael.bohlender@kdemail.net>
3 Copyright (c) 2016 Christian Mollekopf <mollekopf@kolabsys.com>
4
5 This library is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
9
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
19*/
20
21#include "mailplugin.h"
22
23#include "maillistmodel.h"
24#include "folderlistmodel.h"
25#include "composercontroller.h"
26#include "messageparser.h"
27#include "retriever.h"
28#include "outboxmodel.h"
29#include "outboxcontroller.h"
30#include "mailcontroller.h"
31#include "foldercontroller.h"
32#include "mouseproxy.h"
33#include "contactcontroller.h"
34#include "peoplemodel.h"
35
36#include <QtQml>
37
38void MailPlugin::registerTypes (const char *uri)
39{
40 qmlRegisterType<FolderListModel>(uri, 1, 0, "FolderListModel");
41 qmlRegisterType<MailListModel>(uri, 1, 0, "MailListModel");
42 qmlRegisterType<ComposerController>(uri, 1, 0, "ComposerController");
43 qmlRegisterType<MessageParser>(uri, 1, 0, "MessageParser");
44 qmlRegisterType<Retriever>(uri, 1, 0, "Retriever");
45 qmlRegisterType<OutboxController>(uri, 1, 0, "OutboxController");
46 qmlRegisterType<OutboxModel>(uri, 1, 0, "OutboxModel");
47 qmlRegisterType<MailController>(uri, 1, 0, "MailController");
48 qmlRegisterType<FolderController>(uri, 1, 0, "FolderController");
49 qmlRegisterType<MouseProxy>(uri, 1, 0, "MouseProxy");
50 qmlRegisterType<ContactController>(uri, 1, 0,"ContactController");
51 qmlRegisterType<PeopleModel>(uri, 1, 0,"PeopleModel");
52}
diff --git a/framework/domain/mailplugin.h b/framework/domain/mailplugin.h
deleted file mode 100644
index ebd091ee..00000000
--- a/framework/domain/mailplugin.h
+++ /dev/null
@@ -1,33 +0,0 @@
1/*
2 Copyright (c) 2016 Michael Bohlender <michael.bohlender@kdemail.net>
3 Copyright (c) 2016 Christian Mollekopf <mollekopf@kolabsys.com>
4
5 This library is free software; you can redistribute it and/or modify it
6 under the terms of the GNU Library General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or (at your
8 option) any later version.
9
10 This library is distributed in the hope that it will be useful, but WITHOUT
11 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12 FITNESS FOR A PARTICULAR PURPOSE. See the GNU Library General Public
13 License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to the
17 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
18 02110-1301, USA.
19*/
20
21#pragma once
22
23#include <QQmlEngine>
24#include <QQmlExtensionPlugin>
25
26class MailPlugin : public QQmlExtensionPlugin
27{
28 Q_OBJECT
29 Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
30
31public:
32 virtual void registerTypes(const char *uri);
33}; \ No newline at end of file