From 4d9edb754b3dff3331c8d8790a04548f0981f315 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Tue, 29 Jan 2013 15:01:40 +0100 Subject: 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 --- src/imports/sensors/plugins.qmltypes | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src/imports/sensors/plugins.qmltypes') diff --git a/src/imports/sensors/plugins.qmltypes b/src/imports/sensors/plugins.qmltypes index 974f7142..2deff792 100644 --- a/src/imports/sensors/plugins.qmltypes +++ b/src/imports/sensors/plugins.qmltypes @@ -229,6 +229,9 @@ Module { Property { name: "axesOrientationMode"; revision: 1; type: "AxesOrientationMode" } Property { name: "currentOrientation"; revision: 1; type: "int"; isReadonly: true } Property { name: "userOrientation"; revision: 1; type: "int" } + Property { name: "maxBufferSize"; revision: 1; type: "int"; isReadonly: true } + Property { name: "efficientBufferSize"; revision: 1; type: "int"; isReadonly: true } + Property { name: "bufferSize"; revision: 1; type: "int" } Signal { name: "skipDuplicatesChanged" Parameter { name: "skipDuplicates"; type: "bool" } @@ -245,6 +248,18 @@ Module { name: "userOrientationChanged" Parameter { name: "userOrientation"; type: "int" } } + Signal { + name: "maxBufferSizeChanged" + Parameter { name: "maxBufferSize"; type: "int" } + } + Signal { + name: "efficientBufferSizeChanged" + Parameter { name: "efficientBufferSize"; type: "int" } + } + Signal { + name: "bufferSizeChanged" + Parameter { name: "bufferSize"; type: "int" } + } Method { name: "start"; type: "bool" } Method { name: "stop" } } -- cgit v1.2.3