QMLPlugin.hpp 1.33 KB
Newer Older
Michal Policht's avatar
Michal Policht committed
1 2
#ifndef H_EXTENSIONS_CUTEHMI_2_SRC_CUTEHMI_INTERNAL_QMLPLUGIN_HPP
#define H_EXTENSIONS_CUTEHMI_2_SRC_CUTEHMI_INTERNAL_QMLPLUGIN_HPP
3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20

#include <QQmlExtensionPlugin>

class QJSEngine;

namespace cutehmi {
namespace internal {

class QMLPlugin:
	public QQmlExtensionPlugin
{
	Q_OBJECT
	Q_PLUGIN_METADATA(IID QQmlExtensionInterface_iid)

	public:
		void registerTypes(const char * uri) override;

	private:
21 22 23
		static QObject * DialogistProvider(QQmlEngine * engine, QJSEngine * scriptEngine);

		static QObject * NotifierProvider(QQmlEngine * engine, QJSEngine * scriptEngine);
24 25 26 27 28 29
};

}
}

#endif
Michal Policht's avatar
Michal Policht committed
30

Michal Policht's avatar
Michal Policht committed
31 32 33 34 35
//(c)MP: Copyright © 2019, Michal Policht <michpolicht@gmail.com>. All rights reserved.
//(c)MP: This file is a part of CuteHMI.
//(c)MP: 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.
//(c)MP: 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.
//(c)MP: You should have received a copy of the GNU Lesser General Public License along with CuteHMI.  If not, see <https://www.gnu.org/licenses/>.