![]() |
Home · All Classes · All Functions · | ![]() |
The QSensorReading class holds the readings from the sensor. More...
#include <QSensorReading>
This class is under development and is subject to change.
Inherits QObject.
Inherited by QAccelerometerReading, QAmbientLightReading, QCompassReading, QMagnetometerReading, QOrientationReading, QProximityReading, QRotationReading, and QTapReading.
void | setTimestamp ( qtimestamp timestamp ) |
qtimestamp | timestamp () const |
DECLARE_READING ( classname ) | |
IMPLEMENT_READING ( classname ) |
The QSensorReading class holds the readings from the sensor.
Note that QSensorReading is not particularly useful by itself. The interesting data for each sensor is defined in a sub-class of QSensorReading.
This property holds the timestamp of the reading.
Access functions:
qtimestamp | timestamp () const |
See also qtimestamp.
Sets the timestamp of the reading.
See also timestamp().
The DECLARE_READING macro adds some required methods to a reading class.
This macro should be used for all reading classes. Pass the classname of your reading class.
class MyReading : public QSensorReading { Q_OBJECT Q_PROPERTY(qreal myprop READ myprop) DECLARE_READING(MyReading) public: qreal myprop() const; vod setMyprop(qreal myprop); };
See also IMPLEMENT_READING().
The IMPLEMENT_READING macro implements the required methods for a reading class.
This macro should be used for all reading classes. It should be placed into a single compilation unit (source file), not into a header file. Pass the classname of your reading class.
IMPLEMENT_READING(MyReading)
See also DECLARE_READING().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt Mobility Project 1.0.0 |