diff options
Diffstat (limited to 'framework/src/frameworkplugin.h')
-rw-r--r-- | framework/src/frameworkplugin.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/framework/src/frameworkplugin.h b/framework/src/frameworkplugin.h new file mode 100644 index 00000000..519e0ba9 --- /dev/null +++ b/framework/src/frameworkplugin.h | |||
@@ -0,0 +1,33 @@ | |||
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 | |||
26 | class FrameworkPlugin : public QQmlExtensionPlugin | ||
27 | { | ||
28 | Q_OBJECT | ||
29 | Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface") | ||
30 | |||
31 | public: | ||
32 | virtual void registerTypes(const char *uri); | ||
33 | }; | ||