summaryrefslogtreecommitdiffstats
path: root/src/imports/sensors/plugin.qmltypes
blob: fa5fd598d9328b2e077db23f29fb4767615af319 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
import QtQuick.tooling 1.1

// This file describes the plugin-supplied types contained in the library.
// It is used for QML tooling purposes only.

Module {
    Component {
        name: "QAccelerometer"
        prototype: "QSensor"
        exports: [
            "Accelerometer 1.1",
            "Accelerometer 1.2",
            "Accelerometer 1.3"
        ]
    }
    Component {
        name: "QAccelerometerReading"
        prototype: "QSensorReading"
        exports: [
            "AccelerometerReading 1.1",
            "AccelerometerReading 1.2",
            "AccelerometerReading 1.3"
        ]
        Property { name: "x"; type: "qreal"; isReadonly: true }
        Property { name: "y"; type: "qreal"; isReadonly: true }
        Property { name: "z"; type: "qreal"; isReadonly: true }
    }
    Component {
        name: "QAmbientLightReading"
        prototype: "QSensorReading"
        exports: [
            "AmbientLightReading 1.1",
            "AmbientLightReading 1.2",
            "AmbientLightReading 1.3"
        ]
        Enum {
            name: "LightLevel"
            values: {
                "Undefined": 0,
                "Dark": 1,
                "Twilight": 2,
                "Light": 3,
                "Bright": 4,
                "Sunny": 5
            }
        }
        Property { name: "lightLevel"; type: "LightLevel"; isReadonly: true }
    }
    Component {
        name: "QAmbientLightSensor"
        prototype: "QSensor"
        exports: [
            "AmbientLightSensor 1.1",
            "AmbientLightSensor 1.2",
            "AmbientLightSensor 1.3"
        ]
    }
    Component {
        name: "QCompass"
        prototype: "QSensor"
        exports: ["Compass 1.1", "Compass 1.2", "Compass 1.3"]
    }
    Component {
        name: "QCompassReading"
        prototype: "QSensorReading"
        exports: [
            "CompassReading 1.1",
            "CompassReading 1.2",
            "CompassReading 1.3"
        ]
        Property { name: "azimuth"; type: "qreal"; isReadonly: true }
        Property { name: "calibrationLevel"; type: "qreal"; isReadonly: true }
    }
    Component {
        name: "QGyroscope"
        prototype: "QSensor"
        exports: ["Gyroscope 1.2", "Gyroscope 1.3"]
    }
    Component {
        name: "QGyroscopeReading"
        prototype: "QSensorReading"
        exports: ["GyroscopeReading 1.2", "GyroscopeReading 1.3"]
        Property { name: "x"; type: "qreal"; isReadonly: true }
        Property { name: "y"; type: "qreal"; isReadonly: true }
        Property { name: "z"; type: "qreal"; isReadonly: true }
    }
    Component {
        name: "QIRProximityReading"
        prototype: "QSensorReading"
        exports: ["IRProximityReading 1.3"]
        Property { name: "reflectance"; type: "qreal"; isReadonly: true }
    }
    Component {
        name: "QIRProximitySensor"
        prototype: "QSensor"
        exports: ["IRProximitySensor 1.3"]
    }
    Component {
        name: "QLightReading"
        prototype: "QSensorReading"
        exports: ["LightReading 1.2", "LightReading 1.3"]
        Property { name: "lux"; type: "qreal"; isReadonly: true }
    }
    Component {
        name: "QLightSensor"
        prototype: "QSensor"
        exports: ["LightSensor 1.2", "LightSensor 1.3"]
    }
    Component {
        name: "QMagnetometer"
        prototype: "QSensor"
        exports: ["Magnetometer 1.1", "Magnetometer 1.2", "Magnetometer 1.3"]
    }
    Component {
        name: "QMagnetometerReading"
        prototype: "QSensorReading"
        exports: [
            "MagnetometerReading 1.1",
            "MagnetometerReading 1.2",
            "MagnetometerReading 1.3"
        ]
        Property { name: "x"; type: "qreal"; isReadonly: true }
        Property { name: "y"; type: "qreal"; isReadonly: true }
        Property { name: "z"; type: "qreal"; isReadonly: true }
        Property { name: "calibrationLevel"; type: "qreal"; isReadonly: true }
    }
    Component {
        name: "QOrientationReading"
        prototype: "QSensorReading"
        exports: [
            "OrientationReading 1.1",
            "OrientationReading 1.2",
            "OrientationReading 1.3"
        ]
        Enum {
            name: "Orientation"
            values: {
                "Undefined": 0,
                "TopUp": 1,
                "TopDown": 2,
                "LeftUp": 3,
                "RightUp": 4,
                "FaceUp": 5,
                "FaceDown": 6
            }
        }
        Property { name: "orientation"; type: "Orientation"; isReadonly: true }
    }
    Component {
        name: "QOrientationSensor"
        prototype: "QSensor"
        exports: [
            "OrientationSensor 1.1",
            "OrientationSensor 1.2",
            "OrientationSensor 1.3"
        ]
    }
    Component {
        name: "QProximityReading"
        prototype: "QSensorReading"
        exports: [
            "ProximityReading 1.1",
            "ProximityReading 1.2",
            "ProximityReading 1.3"
        ]
        Property { name: "close"; type: "bool"; isReadonly: true }
    }
    Component {
        name: "QProximitySensor"
        prototype: "QSensor"
        exports: [
            "ProximitySensor 1.1",
            "ProximitySensor 1.2",
            "ProximitySensor 1.3"
        ]
    }
    Component {
        name: "QRotationReading"
        prototype: "QSensorReading"
        exports: [
            "RotationReading 1.1",
            "RotationReading 1.2",
            "RotationReading 1.3"
        ]
        Property { name: "x"; type: "qreal"; isReadonly: true }
        Property { name: "y"; type: "qreal"; isReadonly: true }
        Property { name: "z"; type: "qreal"; isReadonly: true }
    }
    Component {
        name: "QRotationSensor"
        prototype: "QSensor"
        exports: [
            "RotationSensor 1.1",
            "RotationSensor 1.2",
            "RotationSensor 1.3"
        ]
    }
    Component {
        name: "QSensor"
        prototype: "QObject"
        exports: ["Sensor 1.2", "Sensor 1.3"]
        exportMetaObjectRevisions: [0, 1]
        Property { name: "sensorid"; type: "QByteArray" }
        Property { name: "type"; type: "QByteArray"; isReadonly: true }
        Property { name: "connectedToBackend"; type: "bool"; isReadonly: true }
        Property { name: "availableDataRates"; type: "qrangelist"; isReadonly: true }
        Property { name: "dataRate"; type: "int" }
        Property { name: "reading"; type: "QSensorReading"; isReadonly: true; isPointer: true }
        Property { name: "busy"; type: "bool"; isReadonly: true }
        Property { name: "active"; type: "bool" }
        Property { name: "outputRanges"; type: "qoutputrangelist"; isReadonly: true }
        Property { name: "outputRange"; type: "int" }
        Property { name: "description"; type: "string"; isReadonly: true }
        Property { name: "error"; type: "int"; isReadonly: true }
        Property { name: "alwaysOn"; revision: 1; type: "bool" }
        Signal {
            name: "sensorError"
            Parameter { name: "error"; type: "int" }
        }
        Signal { name: "availableSensorsChanged" }
        Method { name: "start"; type: "bool" }
        Method { name: "stop" }
        Method { name: "connectToBackend"; type: "bool" }
    }
    Component {
        name: "QSensorReading"
        prototype: "QObject"
        exports: [
            "SensorReading 1.1",
            "SensorReading 1.2",
            "SensorReading 1.3"
        ]
        Property { name: "timestamp"; type: "quint64"; isReadonly: true }
    }
    Component {
        name: "QTapReading"
        prototype: "QSensorReading"
        exports: ["TapReading 1.1", "TapReading 1.2", "TapReading 1.3"]
        Enum {
            name: "TapDirection"
            values: {
                "Undefined": 0,
                "X": 1,
                "Y": 2,
                "Z": 4,
                "X_Pos": 17,
                "Y_Pos": 34,
                "Z_Pos": 68,
                "X_Neg": 257,
                "Y_Neg": 514,
                "Z_Neg": 1028,
                "X_Both": 273,
                "Y_Both": 546,
                "Z_Both": 1092
            }
        }
        Property { name: "tapDirection"; type: "TapDirection"; isReadonly: true }
        Property { name: "doubleTap"; type: "bool"; isReadonly: true }
    }
    Component {
        name: "QTapSensor"
        prototype: "QSensor"
        exports: ["TapSensor 1.1", "TapSensor 1.2", "TapSensor 1.3"]
    }
}