--- a/phoneapp/phoneuiqtviewadapter/inc/phonevisibilityhandler.h Wed Jun 23 18:12:20 2010 +0300
+++ b/phoneapp/phoneuiqtviewadapter/inc/phonevisibilityhandler.h Tue Jul 06 14:15:47 2010 +0300
@@ -66,7 +66,10 @@
void sendToBackground(bool homeScreenForeground);
void hideDeviceDialogs(bool hide);
- int ordinalPosition();
+ /**
+ * Return true if phone is visible application
+ */
+ bool phoneVisible();
public: // from MPhonePubSubObserver
@@ -82,8 +85,19 @@
const TInt aValue);
private:
+ /**
+ * Handle keyguard according phone visiblity
+ * and keyguard previous state
+ */
+ bool disableKeyGuard();
+ void enableKeyGuard();
/**
+ * Number of currently ongoing call's
+ */
+ int ongoingCalls();
+
+ /**
* Adjusts visibility based on current call and device security statuses.
*/
void adjustVisibility(AdjustAction action);
@@ -117,6 +131,8 @@
/** Car Mode publisher */
QValueSpacePublisher* m_carModePublisher;
+ /** Key guard status before phone came top */
+ bool m_keyguardOnBeforeForeground;
};
#endif // PHONEVISIBILITYHANDLER_H