phoneapp/phoneuiqtviewadapter/inc/phonevisibilityhandler.h
changeset 46 bc5a64e5bc3c
parent 45 6b911d05207e
child 78 baacf668fe89
equal deleted inserted replaced
45:6b911d05207e 46:bc5a64e5bc3c
    64      */
    64      */
    65     void bringToForeground();
    65     void bringToForeground();
    66     void sendToBackground(bool homeScreenForeground);
    66     void sendToBackground(bool homeScreenForeground);
    67     void hideDeviceDialogs(bool hide);
    67     void hideDeviceDialogs(bool hide);
    68     
    68     
    69     int ordinalPosition();
    69     /**
       
    70      * Return true if phone is visible application
       
    71      */
       
    72     bool phoneVisible();
    70     
    73     
    71 public: // from MPhonePubSubObserver
    74 public: // from MPhonePubSubObserver
    72 
    75 
    73     /**
    76     /**
    74     * This function is called when there is property value change.
    77     * This function is called when there is property value change.
    80         const TUid& aCategory,
    83         const TUid& aCategory,
    81         const TUint aKey,
    84         const TUint aKey,
    82         const TInt aValue);
    85         const TInt aValue);
    83         
    86         
    84 private:
    87 private:
       
    88     /**
       
    89      * Handle keyguard according phone visiblity
       
    90      * and keyguard previous state
       
    91      */
       
    92     bool disableKeyGuard();
       
    93     void enableKeyGuard();
    85 
    94 
       
    95     /**
       
    96      * Number of currently ongoing call's
       
    97      */
       
    98     int ongoingCalls();
       
    99     
    86     /**
   100     /**
    87      * Adjusts visibility based on current call and device security statuses.
   101      * Adjusts visibility based on current call and device security statuses.
    88      */
   102      */
    89     void adjustVisibility(AdjustAction action);
   103     void adjustVisibility(AdjustAction action);
    90     
   104     
   115     QValueSpaceSubscriber* m_carModeSubscriber;
   129     QValueSpaceSubscriber* m_carModeSubscriber;
   116     
   130     
   117     /** Car Mode publisher */
   131     /** Car Mode publisher */
   118     QValueSpacePublisher* m_carModePublisher;
   132     QValueSpacePublisher* m_carModePublisher;
   119     
   133     
       
   134     /** Key guard status before phone came top */
       
   135     bool m_keyguardOnBeforeForeground;
   120 };
   136 };
   121 
   137 
   122 #endif // PHONEVISIBILITYHANDLER_H
   138 #endif // PHONEVISIBILITYHANDLER_H