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

qt-api/gyroscopesensor_i.h

Go to the documentation of this file.
00001 
00028 #ifndef GYROSCOPESENSOR_I_H
00029 #define GYROSCOPESENSOR_I_H
00030 
00031 #include <QtDBus/QtDBus>
00032 
00033 #include "abstractsensor_i.h"
00034 #include <datatypes/xyz.h>
00035 
00039 class GyroscopeSensorChannelInterface : public AbstractSensorChannelInterface
00040 {
00041     Q_OBJECT;
00042     Q_DISABLE_COPY(GyroscopeSensorChannelInterface)
00043     Q_PROPERTY(XYZ value READ get)
00044 
00045 public:
00049     static const char* staticInterfaceName;
00050 
00058     static AbstractSensorChannelInterface* factoryMethod(const QString& id, int sessionId);
00059 
00065     XYZ get();
00066 
00073     GyroscopeSensorChannelInterface(const QString &path, int sessionId);
00074 
00082     static const GyroscopeSensorChannelInterface* listenInterface(const QString& id);
00083 
00091     static GyroscopeSensorChannelInterface* controlInterface(const QString& id);
00092 
00099     static GyroscopeSensorChannelInterface* interface(const QString& id);
00100 
00101 protected:
00102     virtual void connectNotify(const char* signal);
00103     virtual bool dataReceivedImpl();
00104 
00105 private:
00106     bool frameAvailableConnected; 
00108 Q_SIGNALS:
00114     void dataAvailable(const XYZ& data);
00115 
00123     void frameAvailable(const QVector<XYZ>& frame);
00124 };
00125 
00126 namespace local {
00127   typedef ::GyroscopeSensorChannelInterface GyroscopeSensor;
00128 }
00129 
00130 #endif

Generated on Tue Jun 10 2014 06:25:08 for sensorfw by  doxygen 1.7.1