summaryrefslogtreecommitdiffstats
path: root/src/sensors/qsensor_p.h
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2013-01-29 15:01:40 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-02-08 11:18:01 +0100
commit4d9edb754b3dff3331c8d8790a04548f0981f315 (patch)
treec5d96c9f8136c16b05323fb4e0841201af1c4ea4 /src/sensors/qsensor_p.h
parent62ce0b92ee34a1ae6b2f4e81bb0efbaa2a7d53c9 (diff)
Use real properties for QSensor::bufferSize & co
The #ifdef Q_DOC hack is not really needed and was confusing. In addition, expose those properties to the QML API. As a result, the backends can now listen to the bufferSizeChanged() signal to update the buffering while the sensor is running. This has been implemented for the BlackBerry platform. Change-Id: I5239ba2a4b791cfc9f684b44ff2bc103a7b5b0da Reviewed-by: Lorn Potter <lorn.potter@jollamobile.com>
Diffstat (limited to 'src/sensors/qsensor_p.h')
-rw-r--r--src/sensors/qsensor_p.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sensors/qsensor_p.h b/src/sensors/qsensor_p.h
index 9b6e7e5b..71a5b6eb 100644
--- a/src/sensors/qsensor_p.h
+++ b/src/sensors/qsensor_p.h
@@ -82,6 +82,9 @@ public:
, axesOrientationMode(QSensor::FixedOrientation)
, currentOrientation(0)
, userOrientation(0)
+ , bufferSize(1)
+ , maxBufferSize(1)
+ , efficientBufferSize(1)
{
}
@@ -116,6 +119,10 @@ public:
QSensor::AxesOrientationMode axesOrientationMode;
int currentOrientation;
int userOrientation;
+
+ int bufferSize;
+ int maxBufferSize;
+ int efficientBufferSize;
};
class QSensorReadingPrivate