Update meta-agl-demo for for 'Daring Dab'
[AGL/meta-agl-demo.git] / recipes-automotive / climatecontrolplugin / files / climatecontrol_plugin.cpp
1 /* Copyright (C) 2015, Jaguar Land Rover. All Rights Reserved.
2  *
3  * This Source Code Form is subject to the terms of the Mozilla Public
4  * License, v. 2.0. If a copy of the MPL was not distributed with this
5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6
7 #include "climatecontrol_plugin.h"
8 #include "climatecontrol.h"
9
10 #include <qqml.h>
11
12 void ClimateControlPlugin::registerTypes(const char *uri)
13 {
14     Q_ASSERT(uri == QLatin1String("Automotive.ClimateControl"));
15
16     // @uri Automotive.ClimateControl
17     qmlRegisterType<ClimateControl>(uri, 1, 0, "ClimateControlItem");
18 }