phoneapp/phoneui2/src/phoneuihousehold_p.cpp
changeset 45 6b911d05207e
parent 37 ba76fc04e6c2
child 46 bc5a64e5bc3c
equal deleted inserted replaced
37:ba76fc04e6c2 45:6b911d05207e
    27 #include <featmgr.h>        // for FeatureManager
    27 #include <featmgr.h>        // for FeatureManager
    28 #include <hbmainwindow.h>
    28 #include <hbmainwindow.h>
    29 #include "phoneconstants.h"
    29 #include "phoneconstants.h"
    30 #include "cphonelogger.h"
    30 #include "cphonelogger.h"
    31 #include "cphonepubsubproxy.h"
    31 #include "cphonepubsubproxy.h"
    32 #include "cphoneqwertyhandler.h"
       
    33 #include "cphoneuicontroller.h"
    32 #include "cphoneuicontroller.h"
    34 #include "phoneuihousehold_p.h"
    33 #include "phoneuihousehold_p.h"
    35 #include "phoneuiqtviewadapter.h"
    34 #include "phoneuiqtviewadapter.h"
    36 #include "phoneuiqtview.h"
    35 #include "phoneuiqtview.h"
    37 #include "phoneuikeyeventadapter.h"
    36 #include "phoneuikeyeventadapter.h"
    41 #include "cphoneclearblacklist.h"
    40 #include "cphoneclearblacklist.h"
    42 #include "hbinstance.h"
    41 #include "hbinstance.h"
    43 
    42 
    44 PhoneUiHouseHoldPrivate::PhoneUiHouseHoldPrivate(HbMainWindow &window) :
    43 PhoneUiHouseHoldPrivate::PhoneUiHouseHoldPrivate(HbMainWindow &window) :
    45     iAppsReady (0), iStartupSignalRecoveryId (0), iLightIdleReached (EFalse),
    44     iAppsReady (0), iStartupSignalRecoveryId (0), iLightIdleReached (EFalse),
    46     iOnScreenDialer (EFalse), iQwertyHandler (0), iPhoneUIController (0),
    45     iOnScreenDialer (EFalse), iPhoneUIController (0),
    47     m_window (window)
    46     m_window (window)
    48 {
    47 {
    49     PHONE_DEBUG("phoneui - Start phoneapp");
    48     PHONE_DEBUG("phoneui - Start phoneapp");
    50     
    49     
    51     TRAPD( error, ConstructL() );
    50     TRAPD( error, ConstructL() );
   217     iPhoneUIController = CPhoneUIController::NewL(iViewAdapter);
   216     iPhoneUIController = CPhoneUIController::NewL(iViewAdapter);
   218     
   217     
   219     m_window.addView (view);
   218     m_window.addView (view);
   220     m_window.setCurrentView (view);
   219     m_window.setCurrentView (view);
   221     m_window.scene ()->setFocusItem (view);
   220     m_window.scene ()->setFocusItem (view);
   222     iQwertyHandler = CPhoneQwertyHandler::NewL();
       
   223     iKeyEventAdapter = new PhoneUIKeyEventAdapter (*iPhoneUIController);
   221     iKeyEventAdapter = new PhoneUIKeyEventAdapter (*iPhoneUIController);
   224     iCommandAdapter = new PhoneUiCommandAdapter (*iPhoneUIController);
   222     iCommandAdapter = new PhoneUiCommandAdapter (*iPhoneUIController);
   225     QObject::connect(view, SIGNAL(dialpadIsAboutToClose()), iViewAdapter, SLOT(dialpadClosed()));
   223     QObject::connect(view, SIGNAL(dialpadIsAboutToClose()), iViewAdapter, SLOT(dialpadClosed()));
   226     QObject::connect(view, SIGNAL(keyReleased(QKeyEvent *)), iViewAdapter, SLOT(keyReleased (QKeyEvent *)));
   224     QObject::connect(view, SIGNAL(keyReleased(QKeyEvent *)), iViewAdapter, SLOT(keyReleased (QKeyEvent *)));
   227     QObject::connect(view, SIGNAL(keyPressed (QKeyEvent *)), iKeyEventAdapter, SLOT(keyPressed (QKeyEvent *)));
   225     QObject::connect(view, SIGNAL(keyPressed (QKeyEvent *)), iKeyEventAdapter, SLOT(keyPressed (QKeyEvent *)));