From 4c7c6511513ade8a6e3a26dbbc095bef8bbbe68a Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Mon, 23 Jul 2012 11:50:33 +0200 Subject: Blackberry: Affirm that QSensor::Buffering is supported now. The patch adding QSensor::Feature support was developed before buffering was implemented on Blackberry, so update this to reflect the current situation. Also fix compile warning about missing Reserved value. Change-Id: I085afeefc6c2dc7f520c9ef93d90a93f3e8a03e7 Reviewed-by: Adam Parco Reviewed-by: Sean Harmer --- src/plugins/sensors/blackberry/bbsensorbackend.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/plugins/sensors/blackberry/bbsensorbackend.cpp b/src/plugins/sensors/blackberry/bbsensorbackend.cpp index a64dcdf..1b880a0 100644 --- a/src/plugins/sensors/blackberry/bbsensorbackend.cpp +++ b/src/plugins/sensors/blackberry/bbsensorbackend.cpp @@ -268,9 +268,10 @@ void BbSensorBackendBase::stop() bool BbSensorBackendBase::isFeatureSupported(QSensor::Feature feature) const { switch (feature) { - case QSensor:: AlwaysOn: - return true; + case QSensor::AlwaysOn: case QSensor::Buffering: + return true; + case QSensor::Reserved: case QSensor::GeoValues: case QSensor::FieldOfView: break; -- cgit v1.2.1