aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-automotive/climatecontrolplugin/files/climatecontrol_plugin.cpp
blob: cd53da0da67ba68e8fe9f72453b5dbac96c9e5ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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");
}