From c7fd6aeefc60a9ac81b0e4565f2bdea8c5c66512 Mon Sep 17 00:00:00 2001 From: Thomas McGuire Date: Tue, 24 Jul 2012 16:47:29 +0200 Subject: 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 Reviewed-by: Kevin Ottens --- src/plugins/sensors/blackberry/bbguihelper.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/sensors/blackberry/bbguihelper.h') 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; }; -- cgit v1.2.3