Add sample qml application
[staging/HomeScreen.git] / sample-qml / imports / vehicle / PositionModel.qml
1 /* Copyright (C) 2015, Jaguar Land Rover, IoT.bzh. 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 pragma Singleton
8
9 import QtQuick 2.0
10 import amb 0.1
11
12 Item {
13     property string nmeaString: nmea.value
14     property real satellites: satsUsed.value
15
16     AutomotivePropertyItem {
17         id: nmea
18
19         objectName: "GpsNmea"
20         propertyName: "Nmea"
21
22         Component.onCompleted: nmea.connect();
23     }
24
25     AutomotivePropertyItem {
26         id: satsUsed
27
28         objectName: "GpsSatsUsed"
29         propertyName: "SatsUsed"
30
31         Component.onCompleted: satsUsed.connect();
32     }
33 }