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;
D-Bus adaptor for ALSSensor.
Sensor for accessing the internal ambient light sensor measurements.
Unsigned lux() const
Property for accessing the measured value.
virtual ~ALSSensorChannel()
static AbstractSensorChannel * factoryMethod(const QString &id)
Factory method for ALSSensorChannel.
ALSSensorChannel(const QString &id)
void ALSChanged(const Unsigned &value)
Sent when a change in measured data is observed.
Datatype for unsigned integer value with timestamp.
QObject facae for TimedUnsigned.
Datatype for unsigned values.
QObject based datatype for TimedUnsigned.