summaryrefslogtreecommitdiffstats
path: root/src/plugins/sensors/blackberry/bbguihelper.h
diff options
context:
space:
mode:
authorThomas McGuire <thomas.mcguire.qnx@kdab.com>2012-07-24 16:47:29 +0200
committerQt by Nokia <qt-info@nokia.com>2012-07-25 15:04:41 +0200
commitc7fd6aeefc60a9ac81b0e4565f2bdea8c5c66512 (patch)
tree750ee2fd18771096ca91408c333a8a9bf2a27757 /src/plugins/sensors/blackberry/bbguihelper.h
parent4c7c6511513ade8a6e3a26dbbc095bef8bbbe68a (diff)
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 Reviewed-by: Lorn Potter <lorn.potter@nokia.com> Reviewed-by: Kevin Ottens <kevin.ottens.qnx@kdab.com>
Diffstat (limited to 'src/plugins/sensors/blackberry/bbguihelper.h')
-rw-r--r--src/plugins/sensors/blackberry/bbguihelper.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/sensors/blackberry/bbguihelper.h b/src/plugins/sensors/blackberry/bbguihelper.h
index f0ee3dc0..dd7564f0 100644
--- a/src/plugins/sensors/blackberry/bbguihelper.h
+++ b/src/plugins/sensors/blackberry/bbguihelper.h
@@ -67,6 +67,9 @@ signals:
void applicationActiveChanged();
private:
+ void readOrientation();
+ void readApplicationActiveState();
+
int m_currentOrientation;
bool m_applicationActive;
};