• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

qt-api/orientationsensor_i.h

Go to the documentation of this file.
00001 
00027 #ifndef ORIENTATIONSENSOR_I_H
00028 #define ORIENTATIONSENSOR_I_H
00029 
00030 #include <QtDBus/QtDBus>
00031 
00032 #include <datatypes/unsigned.h>
00033 #include "abstractsensor_i.h"
00034 
00038 class OrientationSensorChannelInterface : public AbstractSensorChannelInterface
00039 {
00040     Q_OBJECT
00041     Q_DISABLE_COPY(OrientationSensorChannelInterface)
00042     Q_PROPERTY(Unsigned orientation READ orientation)
00043     Q_PROPERTY(int threshold READ threshold WRITE setThreshold)
00044 
00045 public:
00049     static const char* staticInterfaceName;
00050 
00058     static AbstractSensorChannelInterface* factoryMethod(const QString& id, int sessionId);
00059 
00066     Unsigned orientation();
00067 
00074     int threshold();
00075 
00082     void setThreshold(int value);
00083 
00090     OrientationSensorChannelInterface(const QString& path, int sessionId);
00091 
00099     static const OrientationSensorChannelInterface* listenInterface(const QString& id);
00100 
00108     static OrientationSensorChannelInterface* controlInterface(const QString& id);
00109 
00116     static OrientationSensorChannelInterface* interface(const QString& id);
00117 
00118 protected:
00119     virtual bool dataReceivedImpl();
00120 
00121 Q_SIGNALS:
00128     void orientationChanged(const Unsigned& orientation);
00129 };
00130 
00131 namespace local {
00132   typedef ::OrientationSensorChannelInterface OrientationSensor;
00133 }
00134 
00135 #endif /* ORIENTATIONSENSOR_I_H */

Generated on Mon Jun 27 2011 14:38:47 for sensorfw by  doxygen 1.7.1