diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2013-01-29 15:01:40 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-02-08 11:18:01 +0100 |
commit | 4d9edb754b3dff3331c8d8790a04548f0981f315 (patch) | |
tree | c5d96c9f8136c16b05323fb4e0841201af1c4ea4 /src/plugins/sensors/blackberry/bbsensorbackend.h | |
parent | 62ce0b92ee34a1ae6b2f4e81bb0efbaa2a7d53c9 (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/plugins/sensors/blackberry/bbsensorbackend.h')
-rw-r--r-- | src/plugins/sensors/blackberry/bbsensorbackend.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/sensors/blackberry/bbsensorbackend.h b/src/plugins/sensors/blackberry/bbsensorbackend.h index 48a72163..4e7b8101 100644 --- a/src/plugins/sensors/blackberry/bbsensorbackend.h +++ b/src/plugins/sensors/blackberry/bbsensorbackend.h @@ -107,6 +107,7 @@ protected: private slots: void dataAvailable(); void applyAlwaysOnProperty(); + void applyBuffering(); bool setPaused(bool paused); void updatePauseState(); void updateOrientation(); @@ -118,6 +119,7 @@ private: BbGuiHelper *m_guiHelper; float m_mappingMatrix[4]; bool m_started; + bool m_applyingBufferSize; }; template<class SensorReading> |