1// Copyright (C) 2016 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QLIGHTSENSOR_P_H
5#define QLIGHTSENSOR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include "qsensor_p.h"
19
20QT_BEGIN_NAMESPACE
21
22class QLightReadingPrivate : public QSensorReadingPrivate
23{
24public:
25 QLightReadingPrivate()
26 : lux(0)
27 {
28 }
29
30 qreal lux;
31};
32
33class QLightSensorPrivate : public QSensorPrivate
34{
35public:
36 QLightSensorPrivate()
37 : fieldOfView(0)
38 {
39 }
40
41 qreal fieldOfView;
42};
43
44QT_END_NAMESPACE
45
46#endif
47
48

source code of qtsensors/src/sensors/qlightsensor_p.h