sensorfw
sensors/orientationsensor/orientationsensor_a.h
Go to the documentation of this file.
00001 
00027 #ifndef ORIENTATION_SENSOR_H
00028 #define ORIENTATION_SENSOR_H
00029 
00030 #include <QtDBus/QtDBus>
00031 
00032 #include "datatypes/orientation.h"
00033 #include "datatypes/unsigned.h"
00034 #include "abstractsensor_a.h"
00035 
00036 class OrientationSensorChannelAdaptor : public AbstractSensorChannelAdaptor
00037 {
00038     Q_OBJECT
00039     Q_DISABLE_COPY(OrientationSensorChannelAdaptor)
00040     Q_CLASSINFO("D-Bus Interface", "local.OrientationSensor")
00041     Q_PROPERTY(Unsigned orientation READ orientation)
00042     Q_PROPERTY(int threshold READ threshold WRITE setThreshold)
00043 
00044 public:
00045     OrientationSensorChannelAdaptor(QObject* parent);
00046 
00047 public Q_SLOTS:
00048     Unsigned orientation() const;
00049     int threshold() const;
00050     void setThreshold(int value);
00051 
00052 Q_SIGNALS:
00053     void orientationChanged(const Unsigned& orientation);
00054 };
00055 
00056 #endif