LibEngsas
echartqmlextension.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2013 EngSaS - Engineering Solutions and Services Langenbach. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Lesser General Public
6  License as published by the Free Software Foundation; either
7  version 2.1 of the License, or (at your option) any later version.
8 
9  This library is distributed in the hope that it will be useful,
10  but WITHOUT ANY WARRANTY; without even the implied warranty of
11  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12  Lesser General Public License for more details.
13 
14  You should have received a copy of the GNU Lesser General Public
15  License along with this library; if not, write to the Free Software
16  Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
17  MA 02110-1301 USA.
18 */
19 
20 #ifndef ECHARTQMLEXTENSION_H
21 #define ECHARTQMLEXTENSION_H
22 
23 // needed to be included to get QT_VERSION defined
24 #include <QtGlobal>
25 
26 #if QT_VERSION >= 0x050000
27 #include <QQmlExtensionPlugin>
28 #include <QtPlugin>
29 #else
30 #include <QDeclarativeExtensionPlugin>
31 #endif
32 
33 #if QT_VERSION >= 0x050000
34 class EChartQmlExtension : public QQmlExtensionPlugin
35 #else
36 class EChartQmlExtension : public QDeclarativeExtensionPlugin
37 #endif
38 {
39  Q_OBJECT
40 #if QT_VERSION >= 0x050000
41  Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
42 #endif
43  public:
44  void registerTypes(const char *uri);
45 };
46 
47 #endif // ECHARTQMLEXTENSION_H
Definition: echartqmlextension.h:36
void registerTypes(const char *uri)
Definition: echartqmlextension.cpp:32