diff options
Diffstat (limited to 'framework/src/frameworkplugin.cpp')
-rw-r--r-- | framework/src/frameworkplugin.cpp | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/framework/src/frameworkplugin.cpp b/framework/src/frameworkplugin.cpp new file mode 100644 index 00000000..f491bae7 --- /dev/null +++ b/framework/src/frameworkplugin.cpp | |||
@@ -0,0 +1,72 @@ | |||
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 "frameworkplugin.h" | ||
22 | |||
23 | #include "domain/maillistmodel.h" | ||
24 | #include "domain/folderlistmodel.h" | ||
25 | #include "domain/composercontroller.h" | ||
26 | #include "domain/messageparser.h" | ||
27 | #include "domain/retriever.h" | ||
28 | #include "domain/outboxmodel.h" | ||
29 | #include "domain/outboxcontroller.h" | ||
30 | #include "domain/mailcontroller.h" | ||
31 | #include "domain/foldercontroller.h" | ||
32 | #include "domain/mouseproxy.h" | ||
33 | #include "domain/contactcontroller.h" | ||
34 | #include "domain/peoplemodel.h" | ||
35 | #include "accounts/accountsmodel.h" | ||
36 | #include "accounts/accountfactory.h" | ||
37 | #include "settings/settings.h" | ||
38 | #include "notifications/notificationhandler.h" | ||
39 | #include "actions/action.h" | ||
40 | #include "actions/context.h" | ||
41 | #include "actions/actionhandler.h" | ||
42 | #include "actions/actionresult.h" | ||
43 | |||
44 | #include <QtQml> | ||
45 | |||
46 | void FrameworkPlugin::registerTypes (const char *uri) | ||
47 | { | ||
48 | qmlRegisterType<FolderListModel>(uri, 1, 0, "FolderListModel"); | ||
49 | qmlRegisterType<MailListModel>(uri, 1, 0, "MailListModel"); | ||
50 | qmlRegisterType<ComposerController>(uri, 1, 0, "ComposerController"); | ||
51 | qmlRegisterType<MessageParser>(uri, 1, 0, "MessageParser"); | ||
52 | qmlRegisterType<Retriever>(uri, 1, 0, "Retriever"); | ||
53 | qmlRegisterType<OutboxController>(uri, 1, 0, "OutboxController"); | ||
54 | qmlRegisterType<OutboxModel>(uri, 1, 0, "OutboxModel"); | ||
55 | qmlRegisterType<MailController>(uri, 1, 0, "MailController"); | ||
56 | qmlRegisterType<FolderController>(uri, 1, 0, "FolderController"); | ||
57 | qmlRegisterType<MouseProxy>(uri, 1, 0, "MouseProxy"); | ||
58 | qmlRegisterType<ContactController>(uri, 1, 0,"ContactController"); | ||
59 | qmlRegisterType<PeopleModel>(uri, 1, 0,"PeopleModel"); | ||
60 | |||
61 | qmlRegisterType<AccountFactory>(uri, 1, 0, "AccountFactory"); | ||
62 | qmlRegisterType<AccountsModel>(uri, 1, 0, "AccountsModel"); | ||
63 | |||
64 | qmlRegisterType<Kube::Settings>(uri, 1, 0, "Settings"); | ||
65 | qmlRegisterType<Kube::NotificationHandler>(uri, 1, 0, "NotificationHandler"); | ||
66 | qmlRegisterType<Kube::Notification>(uri, 1, 0, "Notification"); | ||
67 | |||
68 | qmlRegisterType<Kube::Context>(uri, 1, 0, "Context"); | ||
69 | qmlRegisterType<Kube::Action>(uri, 1, 0, "Action"); | ||
70 | qmlRegisterType<Kube::ActionHandler>(uri, 1, 0, "ActionHandler"); | ||
71 | qmlRegisterType<Kube::ActionResult>(uri, 1, 0, "ActionResult"); | ||
72 | } | ||