Blackberry: Improve detecting whether the application is active
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>
Tue, 24 Jul 2012 14:47:29 +0000 (16:47 +0200)
committerThomas McGuire <thomas.mcguire.qnx@kdab.com>
Tue, 24 Jul 2012 15:06:02 +0000 (17:06 +0200)
commit6ad80382eebe93d8012156b7c77e45e226ffa890
tree33b7cff2d4206bb5f480e95cfac74a34ca861c4f
parent2378772bf41567c42fefc68295e11e4d04e32cad
Blackberry: Improve detecting whether the application is active

Previously, we simply assumed to be active. Now, we read the state
from the navigator PPS file instead.

Also move reading of the orientation into its own function for
consistency.

Change-Id: Icc1789bd942e8fa5a9d5451de4c2ab9f3ffb54e4
plugins/sensors/blackberry/bbguihelper.cpp
plugins/sensors/blackberry/bbguihelper.h