sensorfw
stepcountersensor_i.h
Go to the documentation of this file.
1
29#ifndef STEPCOUNTERSENSOR_I_H
30#define STEPCOUNTERSENSOR_I_H
31
32#include <QtDBus/QtDBus>
33
34#include "datatypes/unsigned.h"
35#include "abstractsensor_i.h"
36
44{
45 Q_OBJECT
47 Q_PROPERTY(Unsigned steps READ steps)
48
49public:
53 static const char* staticInterfaceName;
54
63
70
78
86 static const StepCounterSensorChannelInterface* listenInterface(const QString& id);
87
96
104
105protected:
106 virtual bool dataReceivedImpl();
107
108Q_SIGNALS:
114 void StepCounterChanged(const Unsigned& value);
115};
116
117namespace local {
119}
120
121#endif
Base class for sensor interface.
Base-class for client facades of different sensor types.
Client interface for accessing stepcounter sensor.
virtual bool dataReceivedImpl()
Callback for subclasses in which they must read their expected data from socket.
static AbstractSensorChannelInterface * factoryMethod(const QString &id, int sessionId)
Create new instance of the class.
void StepCounterChanged(const Unsigned &value)
Sent when measured step count has changed.
static StepCounterSensorChannelInterface * interface(const QString &id)
Request an interface to the sensor.
static StepCounterSensorChannelInterface * controlInterface(const QString &id)
Request a control interface to the sensor.
static const char * staticInterfaceName
Name of the D-Bus interface for this class.
static const StepCounterSensorChannelInterface * listenInterface(const QString &id)
Request a listening interface to the sensor.
QObject facae for TimedUnsigned.
Definition unsigned.h:37
QObject based datatype for TimedUnsigned.