00001 00027 #ifndef ALSSENSOR_I_H 00028 #define ALSSENSOR_I_H 00029 00030 #include <QtDBus/QtDBus> 00031 00032 #include "datatypes/unsigned.h" 00033 #include "abstractsensor_i.h" 00034 00041 class ALSSensorChannelInterface : public AbstractSensorChannelInterface 00042 { 00043 Q_OBJECT 00044 Q_DISABLE_COPY(ALSSensorChannelInterface) 00045 Q_PROPERTY(Unsigned lux READ lux) 00046 00047 public: 00051 static const char* staticInterfaceName; 00052 00060 static AbstractSensorChannelInterface* factoryMethod(const QString& id, int sessionId); 00061 00067 Unsigned lux(); 00068 00075 ALSSensorChannelInterface(const QString& path, int sessionId); 00076 00084 static const ALSSensorChannelInterface* listenInterface(const QString& id); 00085 00093 static ALSSensorChannelInterface* controlInterface(const QString& id); 00094 00101 static ALSSensorChannelInterface* interface(const QString& id); 00102 00103 protected: 00104 virtual bool dataReceivedImpl(); 00105 00106 Q_SIGNALS: 00112 void ALSChanged(const Unsigned& value); 00113 }; 00114 00115 namespace local { 00116 typedef ::ALSSensorChannelInterface ALSSensor; 00117 } 00118 00119 #endif