Blackberry: Avoid expensive close() and open() just to get information
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Thu, 27 Sep 2012 14:10:40 +0000 (16:10 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Thu, 4 Oct 2012 10:10:07 +0000 (12:10 +0200)
commit0156de8c1aab48e43a762fb034c3f885ff2b6efe
tree5abac52a05dbcf446d9dfb5b9401edfe4f9d13d5
parent4c61854d60fb5d2c68c6dcb1fb5bdf5c0dead3e2
Blackberry: Avoid expensive close() and open() just to get information

Instead, open the device to get information, but then just pause it
until start() is called.

Change-Id: I3002bee07807d3956e74e8fd82425b16cdb61001
Reviewed-by: Adam Parco <aparco@rim.com>
Reviewed-by: Lorn Potter <lorn.potter@gmail.com>
src/plugins/sensors/blackberry/bbsensorbackend.cpp
src/plugins/sensors/blackberry/bbsensorbackend.h