equal
deleted
inserted
replaced
55 QObject::connect(static_cast<const ALSSensorChannelInterface*>(m_sensorInterface), SIGNAL(ALSChanged(const int&)), this, SLOT(slotDataAvailable(const int&))); |
55 QObject::connect(static_cast<const ALSSensorChannelInterface*>(m_sensorInterface), SIGNAL(ALSChanged(const int&)), this, SLOT(slotDataAvailable(const int&))); |
56 else |
56 else |
57 qWarning() << "Unable to initialize ambient light sensor."; |
57 qWarning() << "Unable to initialize ambient light sensor."; |
58 |
58 |
59 // metadata |
59 // metadata |
|
60 addDataRate(1, 1); // 1Hz |
|
61 sensor->setDataRate(1); |
60 addOutputRange(0, 5, 1); |
62 addOutputRange(0, 5, 1); |
61 setDescription(QLatin1String("Ambient light intensity given as 5 pre-defined levels")); |
63 setDescription(QLatin1String("Ambient light intensity given as 5 pre-defined levels")); |
62 |
64 |
63 m_initDone = true; |
65 m_initDone = true; |
64 } |
66 } |