phoneapp/phoneuiqtviewadapter/inc/phoneuiqtviewadapter.h
changeset 77 2be0b271d017
parent 72 c76a0b1755b9
child 76 cfea66083b62
equal deleted inserted replaced
72:c76a0b1755b9 77:2be0b271d017
    41 class TelephonyService;
    41 class TelephonyService;
    42 class QKeyEvent;
    42 class QKeyEvent;
    43 class PhoneIndicatorController;
    43 class PhoneIndicatorController;
    44 class PhoneVisibilityHandler;
    44 class PhoneVisibilityHandler;
    45 class PhoneAppLauncher;
    45 class PhoneAppLauncher;
       
    46 class MPEEngineInfo;
       
    47 class PhoneCallHeaderManager;
    46 
    48 
    47 class PHONEUIQTVIEWADAPTER_EXPORT PhoneUIQtViewAdapter : 
    49 class PHONEUIQTVIEWADAPTER_EXPORT PhoneUIQtViewAdapter : 
    48     public QObject, 
    50     public QObject, 
    49     public MPhoneViewCommandHandle
    51     public MPhoneViewCommandHandle
    50 {
    52 {
   147         
   149         
   148         Returns pointer to PhoneNoteController
   150         Returns pointer to PhoneNoteController
   149     */
   151     */
   150     PhoneNoteController* noteController() const;
   152     PhoneNoteController* noteController() const;
   151 
   153 
       
   154     /*!
       
   155         \fn void PhoneUIQtViewAdapter::setEngineInfo ()
       
   156         
       
   157         Sets engine info.
       
   158     */
       
   159     void setEngineInfo(MPEEngineInfo* engineInfo);
   152 
   160 
   153 private slots:
   161 private slots:
   154 
   162 
   155     /*!
   163     /*!
   156         \fn void PhoneUIQtViewAdapter::dialpadClosed ()
   164         \fn void PhoneUIQtViewAdapter::dialpadClosed ()
   179         
   187         
   180         PhoneView calls this method when window is deactivated.
   188         PhoneView calls this method when window is deactivated.
   181     */
   189     */
   182     void handleWindowDeactivated();
   190     void handleWindowDeactivated();
   183     
   191     
       
   192     /*!
       
   193        \ fn void PhoneUIQtViewAdapter::onFocusLost();
       
   194      
       
   195          This method is called when the foreground application changes.
       
   196      */
       
   197     void onFocusLost();
       
   198     
       
   199     /*!
       
   200        \ fn void PhoneUIQtViewAdapter::onFocusGained();
       
   201        
       
   202        This method is called when the foreground application changes.
       
   203      */
       
   204     void onFocusGained();
       
   205     
   184 private:
   206 private:
   185 
   207 
   186     /*!
   208     /*!
   187         \fn void PhoneUIQtViewAdapter::setTopApplication (TPhoneCommandParam *)
       
   188         
       
   189         This method is called when EPhoneViewSetTopApplication or
       
   190         EPhoneViewSetIdleTopApplication command is received.
       
   191     */
       
   192     void setTopApplication (TPhoneCommandParam *commandParam);
       
   193     
       
   194     /*!
       
   195         \fn int PhoneUIQtViewAdapter::idleAppUid()
       
   196         
       
   197         This method fetches Idle application's Id from PubSub and returns it.
       
   198     */
       
   199     int idleAppUid();
       
   200 
       
   201     /*!
       
   202         \fn int PhoneUIQtViewAdapter::createCallHeader()
   209         \fn int PhoneUIQtViewAdapter::createCallHeader()
   203         
   210         
   204         This method creates new call header.
   211         This method creates new call header by call id.
   205     */
   212     */
   206     void createCallHeader (int callId, TPhoneCommandParam *commandParam);
   213     void createCallHeader(int callId);
   207     
   214 
   208     /*!
   215     /*!
   209         \fn int PhoneUIQtViewAdapter::createCallHeader()
   216         \fn int PhoneUIQtViewAdapter::createCallHeader()
   210         
   217         
   211         This method creates new call header.
   218         This method creates new emergency call header.
   212     */
   219     */
   213     void createEmergencyCallHeader (int callId, TPhoneCommandParam *commandParam);
   220     void createEmergencyCallHeader(int callId);
   214 
   221 
   215     /*!
   222     /*!
   216         \fn int PhoneUIQtViewAdapter::updateCallHeader()
   223         \fn int PhoneUIQtViewAdapter::updateCallHeader()
   217         
   224         
   218         This method updates call state information in call header.
   225         This method updates call state information in call header.
   219     */
   226     */
   220     void updateCallHeaderState (int callId, TPhoneCommandParam *commandParam);
   227     void updateCallHeaderState(int callId);
   221     
   228     
   222     /*!
   229     /*!
   223         \fn int PhoneUIQtViewAdapter::updateCallHeaderRemoteInfo()
   230         \fn int PhoneUIQtViewAdapter::updateCallHeaderRemoteInfo()
   224         
   231         
   225         This method updates remote information in call header.
   232         This method updates remote information in call header.
   226     */
   233     */
   227     void updateCallHeaderRemoteInfo (int callId, TPhoneCommandParam *commandParam);
   234     void updateCallHeaderRemoteInfo(int callId);
   228     
   235      
       
   236 
   229     /*!
   237     /*!
   230         \fn int PhoneUIQtViewAdapter::updateCallHeaderRemoteInfo()
   238         \fn int PhoneUIQtViewAdapter::updateCallHeaderRemoteInfo()
   231         
   239         
   232         This method updates remote information in call header and label.
   240         This method updates remote information in call header and label.
   233     */
   241     */
   234     void updateCallHeaderRemoteInfoAndLabel (int callId, TPhoneCommandParam *commandParam);    
   242     void updateCallHeaderRemoteInfoAndLabel(int callId);  
   235 
   243     
   236     /*!
   244     /*!
   237         \fn int PhoneUIQtViewAdapter::handleCipheringInfoChange()
   245         \fn int PhoneUIQtViewAdapter::handleCipheringInfoChange()
   238         
   246         
   239         This method updates ciphering indicators.
   247         This method updates ciphering indicators.
   240     */
   248     */
   241     void handleCipheringInfoChange(int callId, TPhoneCommandParam *commandParam);    
   249     void handleCipheringInfoChange(int callId);
   242     
   250     
   243     /*!
   251     /*!
   244         \fn int PhoneUIQtViewAdapter::callIdByState()
   252         \fn int PhoneUIQtViewAdapter::callIdByState()
   245         
   253         
   246         This method writes to commandParam the call id matching
   254         This method writes to commandParam the call id matching
   262         \fn void PhoneUIQtViewAdapter::setToolbarButtons (TPhoneCmdParam *commandParam)
   270         \fn void PhoneUIQtViewAdapter::setToolbarButtons (TPhoneCmdParam *commandParam)
   263         
   271         
   264         This method sets buttons to toolbar.        
   272         This method sets buttons to toolbar.        
   265     */
   273     */
   266     void setToolbarButtons (TPhoneCommandParam *commandParam);
   274     void setToolbarButtons (TPhoneCommandParam *commandParam);
   267     
       
   268     /*!
       
   269         \fn void PhoneUIQtViewAdapter::setCallHoldFlag (TPhoneCmdParam *commandParam)
       
   270         
       
   271         This method sets flag telling is the call hold or not.
       
   272     */
       
   273     void setCallHoldFlag (TPhoneCommandParam *commandParam);
       
   274     
       
   275     /*!
       
   276         \fn void PhoneUIQtViewAdapter::callHoldFlag (TPhoneCmdParam *commandParam)
       
   277         
       
   278         This method retrieves flag telling is the call hold or not and writes
       
   279         it into given command parameter.
       
   280     */
       
   281     void callHoldFlag (TPhoneCommandParam *commandParam);
       
   282 
   275 
   283     /*!
   276     /*!
   284         \fn void PhoneUIQtViewAdapter::writeAudioVolumeLevel (TPhoneCmdParam *commandParam)
   277         \fn void PhoneUIQtViewAdapter::writeAudioVolumeLevel (TPhoneCmdParam *commandParam)
   285         
   278         
   286         This method writes audio volume value into given command parameter.
   279         This method writes audio volume value into given command parameter.
   328         \fn void openDialpad()
   321         \fn void openDialpad()
   329         
   322         
   330         This method opens dialpad.
   323         This method opens dialpad.
   331     */
   324     */
   332     void openDialpad();
   325     void openDialpad();
   333     
   326 
   334     /*!
   327     /*!
   335         \fn int PhoneUIQtViewAdapter::createConference()
   328         \fn int PhoneUIQtViewAdapter::createConference()
   336         
   329         
   337         This method creates conference bubble.
   330         This method creates conference bubble.
   338     */
   331     */
   339     void createConferenceBubble(int callId, TPhoneCommandParam *commandParam);
   332     void createConferenceBubble(int callId);
   340 
   333     
   341     /*!
   334     /*!
   342         \fn int PhoneUIQtViewAdapter::conferenceCallId()
   335         \fn int PhoneUIQtViewAdapter::conferenceCallId()
   343         
   336         
   344         This method checks if call id belongs to conference call.
   337         This method checks if call id belongs to conference call.
   345     */
   338     */
   562     PhoneNoteController *m_noteController;
   555     PhoneNoteController *m_noteController;
   563     TelephonyService *m_telephonyService;
   556     TelephonyService *m_telephonyService;
   564     PhoneUiCommandController *m_uiCommandController;
   557     PhoneUiCommandController *m_uiCommandController;
   565     PhoneMessageController *m_messageController;
   558     PhoneMessageController *m_messageController;
   566     PhoneIndicatorController *m_indicatorController;
   559     PhoneIndicatorController *m_indicatorController;
       
   560     PhoneCallHeaderManager *m_phoneCallHeaderManager;
   567     bool m_dialpadAboutToClose;
   561     bool m_dialpadAboutToClose;
   568     bool m_homeScreenToForeground;
   562     bool m_homeScreenToForeground;
   569 	PhoneVisibilityHandler *m_visibilityHandler;
   563 	PhoneVisibilityHandler *m_visibilityHandler;
   570 	PhoneAppLauncher *m_appLauncher;
   564 	PhoneAppLauncher *m_appLauncher;
   571 	bool m_clearDialpadOnClose;
   565 	bool m_clearDialpadOnClose;
   572 	bool m_speakerAsDefaultButton;
   566 	bool m_speakerAsDefaultButton;
       
   567 	bool m_ringingTonePlaying;
       
   568     MPEEngineInfo*  m_engineInfo;
   573 };
   569 };
   574 
   570 
   575 #endif // PHONEUIQTVIEWADAPTER_H
   571 #endif // PHONEUIQTVIEWADAPTER_H