Go to the documentation of this file.
26 #ifndef ALS_SENSOR_CHANNEL_H
27 #define ALS_SENSOR_CHANNEL_H
31 #include "deviceadaptor.h"
32 #include "abstractsensor.h"
34 #include "dataemitter.h"
42 #ifdef PROVIDE_CONTEXT_INFO
43 #include <ContextProvider>
53 public AbstractSensorChannel,
54 public DataEmitter<TimedUnsigned>
97 DeviceAdaptor* alsAdaptor_;
99 RingBuffer<TimedUnsigned>* outputBuffer_;
103 #ifdef PROVIDE_CONTEXT_INFO
104 ContextProvider::Service service;
105 ContextProvider::Property isDarkProperty;
106 ContextProvider::Property isBrightProperty;
107 ContextProvider::Group propertyGroup;
111 #endif // ALS_SENSOR_CHANNEL_H
static AbstractSensorChannel * factoryMethod(const QString &id)
Factory method for ALSSensorChannel.
Unsigned lux() const
Property for accessing the measured value.
void ALSChanged(const Unsigned &value)
Sent when a change in measured data is observed.
D-Bus adaptor for ALSSensor.
virtual ~ALSSensorChannel()
Datatype for unsigned values.
QObject based datatype for TimedUnsigned.
Sensor for accessing the internal ambient light sensor measurements.
ALSSensorChannel(const QString &id)
Datatype for unsigned integer value with timestamp.
QObject facae for TimedUnsigned.