phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/inc/ccappcommlauncherplugin.h
branchRCL_3
changeset 3 04ab22b956c2
parent 0 e686773b3f54
child 14 81f8547efd4f
--- a/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/inc/ccappcommlauncherplugin.h	Tue Feb 02 10:12:17 2010 +0200
+++ b/phonebookui/Phonebook2/ccapplication/ccacommlauncherplugin/inc/ccappcommlauncherplugin.h	Fri Feb 19 22:40:27 2010 +0200
@@ -137,6 +137,9 @@
     
     TBool PluginBusy();
 
+public: // From CAknView
+    void HandleForegroundEventL( TBool aForeground );
+    
 public:
 
     /**
@@ -216,6 +219,15 @@
     CCAContactorService* ContactorService();
     
     void DefaultSettingComplete();
+    /**
+     *  Start timer.
+     */
+    void StartTimerL();
+    
+    /**
+     *  Cancel timer.
+     */
+    void CancelTimer();
 
 private: // new
 
@@ -239,6 +251,12 @@
      * @since S60 v5.0
      */
     void EnsureMenuHandlerCreatedL();
+    
+    /**
+     *  Exit CCA application if it is at background when the request timeout.
+     * 
+     */
+    void CloseCCApp();
 
 private: // constructors
 
@@ -258,6 +276,12 @@
      * methods or not.
      */
     void UpdateMSKinCbaL( TBool aCommMethodsAvailable );
+    
+    /**
+     * Notify the timeout after sent an aiw service request.
+     * 
+     */
+    static TInt ServiceTimeOutL( TAny* aObject );
 
 private:// data
 
@@ -295,7 +319,24 @@
     CCAContactorService* iContactorService;
     
     CActiveSchedulerWait* iWaitFinish;
-
+    
+	/**
+	 * The timer notifier an aiw service request timeout. 
+	 * Own.
+	 */
+	CPeriodic* iAiwRequestTimer;
+    
+    /**
+     * Record whether the View foreground flag.
+     * Own.
+     */
+    TBool iIsCcaForeground;
+    
+    /**
+     * Timer start flag.
+     * Own.
+     */
+    TBool iIsTimerStart;
     };
 
 #endif // C_CCAPPCOMMLAUNCHERPLUGIN_H