CuteHMI - CuteHMI (CuteHMI.2)
QMLPlugin.hpp
1 #ifndef H_EXTENSIONS_CUTEHMI_2_SRC_CUTEHMI_INTERNAL_QMLPLUGIN_HPP
2 #define H_EXTENSIONS_CUTEHMI_2_SRC_CUTEHMI_INTERNAL_QMLPLUGIN_HPP
3 
4 #include <QQmlExtensionPlugin>
5 
6 class QJSEngine;
7 
8 namespace cutehmi {
9 namespace internal {
10 
11 class QMLPlugin:
12  public QQmlExtensionPlugin
13 {
14  Q_OBJECT
15  Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)
16 
17  public:
18  void registerTypes(const char * uri) override;
19 
20  private:
21  static QObject * MessengerProvider(QQmlEngine * engine, QJSEngine * scriptEngine);
22 
23  static QObject * NotifierProvider(QQmlEngine * engine, QJSEngine * scriptEngine);
24 };
25 
26 }
27 }
28 
29 #endif
30 
31 //(c)C: Copyright © 2018-2019, Michał Policht <michal@policht.pl>. All rights reserved.
32 //(c)C: This file is a part of CuteHMI.
33 //(c)C: CuteHMI is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
34 //(c)C: CuteHMI is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
35 //(c)C: You should have received a copy of the GNU Lesser General Public License along with CuteHMI. If not, see <https://www.gnu.org/licenses/>.
cutehmi::internal::QMLPlugin::registerTypes
void registerTypes(const char *uri) override
Register QML types.
Definition: QMLPlugin.cpp:48
QObject
cutehmi
Definition: constants.hpp:6
QJSEngine
cutehmi::internal::QMLPlugin
Definition: QMLPlugin.hpp:11
std::internal
T internal(T... args)
QQmlEngine
QQmlExtensionPlugin