summaryrefslogtreecommitdiffstats
path: root/recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.cpp
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2015-12-22 00:46:19 +0100
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2015-12-22 00:48:01 +0100
commitdf9e0ad632b122e19964d2f39588fb5fe2087037 (patch)
treef896d3cefff09a33ff87f0dafe61db7c3c7ab9b3 /recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.cpp
parente10617b85d81591de2a5b567d43a1f48cc15aa5f (diff)
parent762181dff011efbaf3d40edb1b3d573c5aceab01 (diff)
Merge branch 'master' of ssh://gerrit.automotivelinux.org:29418/AGL/meta-agl-demo into albacore
Change-Id: Ieedfdda7a1be86c626c6f67b57fed05adb628a87 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.cpp')
-rw-r--r--recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.cpp b/recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.cpp
new file mode 100644
index 000000000..cd53da0da
--- /dev/null
+++ b/recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.cpp
@@ -0,0 +1,18 @@
+/* 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/. */
+
+#include "climatecontrol_plugin.h"
+#include "climatecontrol.h"
+
+#include <qqml.h>
+
+void ClimateControlPlugin::registerTypes(const char *uri)
+{
+ Q_ASSERT(uri == QLatin1String("Automotive.ClimateControl"));
+
+ // @uri Automotive.ClimateControl
+ qmlRegisterType<ClimateControl>(uri, 1, 0, "ClimateControlItem");
+}