phoneapp/phoneuiqtviewadapter/inc/phoneuiqtviewadapter.h
changeset 77 2be0b271d017
parent 72 c76a0b1755b9
child 76 cfea66083b62
--- a/phoneapp/phoneuiqtviewadapter/inc/phoneuiqtviewadapter.h	Fri Sep 17 08:29:19 2010 +0300
+++ b/phoneapp/phoneuiqtviewadapter/inc/phoneuiqtviewadapter.h	Mon Oct 04 00:16:48 2010 +0300
@@ -43,6 +43,8 @@
 class PhoneIndicatorController;
 class PhoneVisibilityHandler;
 class PhoneAppLauncher;
+class MPEEngineInfo;
+class PhoneCallHeaderManager;
 
 class PHONEUIQTVIEWADAPTER_EXPORT PhoneUIQtViewAdapter : 
     public QObject, 
@@ -149,6 +151,12 @@
     */
     PhoneNoteController* noteController() const;
 
+    /*!
+        \fn void PhoneUIQtViewAdapter::setEngineInfo ()
+        
+        Sets engine info.
+    */
+    void setEngineInfo(MPEEngineInfo* engineInfo);
 
 private slots:
 
@@ -181,64 +189,64 @@
     */
     void handleWindowDeactivated();
     
-private:
-
     /*!
-        \fn void PhoneUIQtViewAdapter::setTopApplication (TPhoneCommandParam *)
-        
-        This method is called when EPhoneViewSetTopApplication or
-        EPhoneViewSetIdleTopApplication command is received.
-    */
-    void setTopApplication (TPhoneCommandParam *commandParam);
+       \ fn void PhoneUIQtViewAdapter::onFocusLost();
+     
+         This method is called when the foreground application changes.
+     */
+    void onFocusLost();
     
     /*!
-        \fn int PhoneUIQtViewAdapter::idleAppUid()
-        
-        This method fetches Idle application's Id from PubSub and returns it.
-    */
-    int idleAppUid();
+       \ fn void PhoneUIQtViewAdapter::onFocusGained();
+       
+       This method is called when the foreground application changes.
+     */
+    void onFocusGained();
+    
+private:
 
     /*!
         \fn int PhoneUIQtViewAdapter::createCallHeader()
         
-        This method creates new call header.
+        This method creates new call header by call id.
     */
-    void createCallHeader (int callId, TPhoneCommandParam *commandParam);
-    
+    void createCallHeader(int callId);
+
     /*!
         \fn int PhoneUIQtViewAdapter::createCallHeader()
         
-        This method creates new call header.
+        This method creates new emergency call header.
     */
-    void createEmergencyCallHeader (int callId, TPhoneCommandParam *commandParam);
+    void createEmergencyCallHeader(int callId);
 
     /*!
         \fn int PhoneUIQtViewAdapter::updateCallHeader()
         
         This method updates call state information in call header.
     */
-    void updateCallHeaderState (int callId, TPhoneCommandParam *commandParam);
+    void updateCallHeaderState(int callId);
     
     /*!
         \fn int PhoneUIQtViewAdapter::updateCallHeaderRemoteInfo()
         
         This method updates remote information in call header.
     */
-    void updateCallHeaderRemoteInfo (int callId, TPhoneCommandParam *commandParam);
-    
+    void updateCallHeaderRemoteInfo(int callId);
+     
+
     /*!
         \fn int PhoneUIQtViewAdapter::updateCallHeaderRemoteInfo()
         
         This method updates remote information in call header and label.
     */
-    void updateCallHeaderRemoteInfoAndLabel (int callId, TPhoneCommandParam *commandParam);    
-
+    void updateCallHeaderRemoteInfoAndLabel(int callId);  
+    
     /*!
         \fn int PhoneUIQtViewAdapter::handleCipheringInfoChange()
         
         This method updates ciphering indicators.
     */
-    void handleCipheringInfoChange(int callId, TPhoneCommandParam *commandParam);    
+    void handleCipheringInfoChange(int callId);
     
     /*!
         \fn int PhoneUIQtViewAdapter::callIdByState()
@@ -264,21 +272,6 @@
         This method sets buttons to toolbar.        
     */
     void setToolbarButtons (TPhoneCommandParam *commandParam);
-    
-    /*!
-        \fn void PhoneUIQtViewAdapter::setCallHoldFlag (TPhoneCmdParam *commandParam)
-        
-        This method sets flag telling is the call hold or not.
-    */
-    void setCallHoldFlag (TPhoneCommandParam *commandParam);
-    
-    /*!
-        \fn void PhoneUIQtViewAdapter::callHoldFlag (TPhoneCmdParam *commandParam)
-        
-        This method retrieves flag telling is the call hold or not and writes
-        it into given command parameter.
-    */
-    void callHoldFlag (TPhoneCommandParam *commandParam);
 
     /*!
         \fn void PhoneUIQtViewAdapter::writeAudioVolumeLevel (TPhoneCmdParam *commandParam)
@@ -330,14 +323,14 @@
         This method opens dialpad.
     */
     void openDialpad();
-    
+
     /*!
         \fn int PhoneUIQtViewAdapter::createConference()
         
         This method creates conference bubble.
     */
-    void createConferenceBubble(int callId, TPhoneCommandParam *commandParam);
-
+    void createConferenceBubble(int callId);
+    
     /*!
         \fn int PhoneUIQtViewAdapter::conferenceCallId()
         
@@ -564,12 +557,15 @@
     PhoneUiCommandController *m_uiCommandController;
     PhoneMessageController *m_messageController;
     PhoneIndicatorController *m_indicatorController;
+    PhoneCallHeaderManager *m_phoneCallHeaderManager;
     bool m_dialpadAboutToClose;
     bool m_homeScreenToForeground;
 	PhoneVisibilityHandler *m_visibilityHandler;
 	PhoneAppLauncher *m_appLauncher;
 	bool m_clearDialpadOnClose;
 	bool m_speakerAsDefaultButton;
+	bool m_ringingTonePlaying;
+    MPEEngineInfo*  m_engineInfo;
 };
 
 #endif // PHONEUIQTVIEWADAPTER_H