sensorfw
gyroscopesensor_i.h
Go to the documentation of this file.
28#ifndef GYROSCOPESENSOR_I_H
29#define GYROSCOPESENSOR_I_H
30
31#include <QtDBus/QtDBus>
32
33#include "abstractsensor_i.h"
34#include <datatypes/xyz.h>
35
40{
41 Q_OBJECT;
43 Q_PROPERTY(XYZ value READ get)
44
45public:
49 static const char* staticInterfaceName;
50
59
66
73 GyroscopeSensorChannelInterface(const QString &path, int sessionId);
74
82 static const GyroscopeSensorChannelInterface* listenInterface(const QString& id);
83
92
99 static GyroscopeSensorChannelInterface* interface(const QString& id);
100
101protected:
102 virtual void connectNotify(const QMetaMethod & signal);
103 virtual bool dataReceivedImpl();
104
105private:
106 bool frameAvailableConnected;
108Q_SIGNALS:
114 void dataAvailable(const XYZ& data);
115
123 void frameAvailable(const QVector<XYZ>& frame);
124};
125
126namespace local {
128}
129
130#endif
Base class for sensor interface.
Base-class for client facades of different sensor types.
Client interface for accessing gyroscope sensor.
virtual void connectNotify(const QMetaMethod &signal)
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
GyroscopeSensorChannelInterface(const QString &path, int sessionId)
Constructor.
static GyroscopeSensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
XYZ get()
Get latest gyroscope reading from sensor daemon.
static const GyroscopeSensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
void dataAvailable(const XYZ &data)
Sent when new measurement data has become available.
void frameAvailable(const QVector< XYZ > &frame)
Sent when new measurement frame has become available.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.
static GyroscopeSensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
QObject facade for XYZData.
Definition: xyz.h:37
::GyroscopeSensorChannelInterface GyroscopeSensor
QObject based datatype for TimedXYZData.