Add a QML plugin to expose AMB's ClimateControl objects.
[AGL/meta-agl-demo.git] / recipes-automotive / climatecontrolplugin / files / climatecontrol_plugin.h
diff --git a/recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.h b/recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.h
new file mode 100644 (file)
index 0000000..315552e
--- /dev/null
@@ -0,0 +1,21 @@
+/* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef CLIMATECONTROL_PLUGIN_H
+#define CLIMATECONTROL_PLUGIN_H
+
+#include <QQmlExtensionPlugin>
+
+class ClimateControlPlugin : public QQmlExtensionPlugin
+{
+    Q_OBJECT
+    Q_PLUGIN_METADATA(IID "org.qt-project.Qt.QQmlExtensionInterface")
+
+public:
+    void registerTypes(const char *uri);
+};
+
+#endif // CLIMATECONTROL_PLUGIN_H