phoneapp/phoneuiqtviewadapter/inc/phoneuiqtviewadapter.h
branchGCC_SURGE
changeset 51 f39ed5e045e0
parent 30 ebdbd102c78a
parent 46 bc5a64e5bc3c
equal deleted inserted replaced
40:bab96b7ed1a4 51:f39ed5e045e0
    26 
    26 
    27 #include <QObject>
    27 #include <QObject>
    28 #include <QMap>
    28 #include <QMap>
    29 #include <apgwgnam.h>
    29 #include <apgwgnam.h>
    30 #include "mphoneviewcommandhandle.h"
    30 #include "mphoneviewcommandhandle.h"
    31 #include "mphonepubsubobserver.h"
       
    32 #include "phoneaction.h"
    31 #include "phoneaction.h"
    33 
    32 
    34 class PhoneUIQtViewIF;
    33 class PhoneUIQtViewIF;
    35 class PhoneBubbleWrapper;
    34 class PhoneBubbleWrapper;
    36 class CPhoneRingingToneController;
    35 class CPhoneRingingToneController;
    40 class PhoneMessageController;
    39 class PhoneMessageController;
    41 class PhoneUiCommandController;
    40 class PhoneUiCommandController;
    42 class TelephonyService;
    41 class TelephonyService;
    43 class QKeyEvent;
    42 class QKeyEvent;
    44 class PhoneIndicatorController;
    43 class PhoneIndicatorController;
       
    44 class PhoneVisibilityHandler;
       
    45 class PhoneAppLauncher;
    45 
    46 
    46 class PHONEUIQTVIEWADAPTER_EXPORT PhoneUIQtViewAdapter : 
    47 class PHONEUIQTVIEWADAPTER_EXPORT PhoneUIQtViewAdapter : 
    47     public QObject, 
    48     public QObject, 
    48     public MPhoneViewCommandHandle,
    49     public MPhoneViewCommandHandle
    49     public MPhonePubSubObserver
       
    50 {
    50 {
    51     Q_OBJECT
    51     Q_OBJECT
    52 
    52 
    53 public:
    53 public:
    54 
    54 
   146         \fn void PhoneUIQtViewAdapter::noteController ()
   146         \fn void PhoneUIQtViewAdapter::noteController ()
   147         
   147         
   148         Returns pointer to PhoneNoteController
   148         Returns pointer to PhoneNoteController
   149     */
   149     */
   150     PhoneNoteController* noteController() const;
   150     PhoneNoteController* noteController() const;
   151     
   151 
   152 public: // from MPhonePubSubObserver
       
   153 
       
   154         /**
       
   155         * This function is called when there is property value change.
       
   156         * @param aCategory Category of the property
       
   157         * @param aKey Property key that is changed
       
   158         * @param aValue New property value
       
   159         */
       
   160         void HandlePropertyChangedL( 
       
   161             const TUid& aCategory,
       
   162             const TUint aKey,
       
   163             const TInt aValue);
       
   164     
       
   165 
   152 
   166 private slots:
   153 private slots:
   167 
   154 
   168     /*!
   155     /*!
   169         \fn void PhoneUIQtViewAdapter::dialpadClosed ()
   156         \fn void PhoneUIQtViewAdapter::dialpadClosed ()
   423         This method brings application to foreground.
   410         This method brings application to foreground.
   424     */
   411     */
   425     void bringToForeground();
   412     void bringToForeground();
   426     
   413     
   427     /*!
   414     /*!
       
   415         \fn void PhoneUIQtViewAdapter::hideDeviceDialogs()
       
   416         
       
   417         This method brings application top of devicedialogs.
       
   418     */
       
   419     void hideDeviceDialogs(TPhoneCommandParam *commandParam);
       
   420     
       
   421     /*!
   428         \fn void PhoneUIQtViewAdapter::showGlobalNote()
   422         \fn void PhoneUIQtViewAdapter::showGlobalNote()
   429         
   423         
   430         This method shows global note.
   424         This method shows global note.
   431     */
   425     */
   432     void showGlobalNote(TPhoneCommandParam *commandParam);
   426     void showGlobalNote(TPhoneCommandParam *commandParam);
   535     /*!
   529     /*!
   536         /fn void openContacts()
   530         /fn void openContacts()
   537         This method opens contacts application.
   531         This method opens contacts application.
   538     */    
   532     */    
   539     void openContacts();
   533     void openContacts();
       
   534  
       
   535     /*!
       
   536         /fn void openLogs()
       
   537         This method opens logs/dialer application.
       
   538     */ 
       
   539     void openLogs(TPhoneCommandParam *commandParam);
       
   540 
       
   541     /*!
       
   542         /fn void setCommonButtonFlags()
       
   543         This method sets common button flags.
       
   544     */
       
   545     void setCommonButtonFlags();
       
   546     
       
   547     /*!
       
   548         /fn void convertKey()
       
   549         This method converts key.
       
   550     */
       
   551     bool convertKey(TKeyCode symbianKey, Qt::Key &qtKey);
   540     
   552     
   541 private:
   553 private:
   542 
   554 
   543     PhoneUIQtViewIF &m_view;
   555     PhoneUIQtViewIF &m_view;
   544     int m_idleUid;
   556     int m_idleUid;
   550     PhoneUiCommandController *m_uiCommandController;
   562     PhoneUiCommandController *m_uiCommandController;
   551     PhoneMessageController *m_messageController;
   563     PhoneMessageController *m_messageController;
   552     PhoneIndicatorController *m_indicatorController;
   564     PhoneIndicatorController *m_indicatorController;
   553     bool m_dialpadAboutToClose;
   565     bool m_dialpadAboutToClose;
   554     bool m_homeScreenToForeground;
   566     bool m_homeScreenToForeground;
   555     bool m_carModeEnabled;
   567 	PhoneVisibilityHandler *m_visibilityHandler;
       
   568 	PhoneAppLauncher *m_appLauncher;
       
   569 	bool m_clearDialpadOnClose;
       
   570 	bool m_speakerAsDefaultButton;
   556 };
   571 };
   557 
   572 
   558 #endif // PHONEUIQTVIEWADAPTER_H
   573 #endif // PHONEUIQTVIEWADAPTER_H