homescreenapp/stateplugins/hsapplibrarystateplugin/tsrc/t_allappsstate/src/t_allappsstate.cpp
changeset 97 66b5fe3c07fd
parent 90 3ac3aaebaee5
child 98 e6f74eb7f69f
equal deleted inserted replaced
95:32e56106abf2 97:66b5fe3c07fd
    29 #include "hsmenuview.h"
    29 #include "hsmenuview.h"
    30 #include "hsmenuevent.h"
    30 #include "hsmenuevent.h"
    31 #include "hsallappsstate.h"
    31 #include "hsallappsstate.h"
    32 #include "hsmenueventtransition.h"
    32 #include "hsmenueventtransition.h"
    33 #include "hsmainwindow.h"
    33 #include "hsmainwindow.h"
       
    34 #include "hsscene.h"
    34 
    35 
    35 #include "t_hsaddtohomescreenmockstate.h"
    36 #include "t_hsaddtohomescreenmockstate.h"
    36 #include "t_hsmockmodel.h"
    37 #include "t_hsmockmodel.h"
    37 #include "t_allappsstate.h"
    38 #include "t_allappsstate.h"
    38 
    39 
   258 #endif//Q_OS_SYMBIAN
   259 #endif//Q_OS_SYMBIAN
   259     {
   260     {
   260         QScopedPointer<QStateMachine> machine(new QStateMachine(0));
   261         QScopedPointer<QStateMachine> machine(new QStateMachine(0));
   261         QState *parent = new QState(machine.data());
   262         QState *parent = new QState(machine.data());
   262 
   263 
   263         QScopedPointer<HbMainWindow> window(new HbMainWindow);
       
   264 
       
   265         HsMenuViewBuilder builder;
   264         HsMenuViewBuilder builder;
   266         HsMenuModeWrapper menuMode;
   265         HsMenuModeWrapper menuMode;
   267         HsMainWindowMock mainWindow;
   266         HsMainWindowMock mainWindow;
   268         
   267         
   269         QScopedPointer<HsAllAppsState> allAppsState(new HsAllAppsState(
   268         QScopedPointer<HsAllAppsState> allAppsState(new HsAllAppsState(
   316 #endif//UT_MEMORY_CHECK
   315 #endif//UT_MEMORY_CHECK
   317 #endif//Q_OS_SYMBIAN
   316 #endif//Q_OS_SYMBIAN
   318     {
   317     {
   319         QScopedPointer<QStateMachine> machine(new QStateMachine(0));
   318         QScopedPointer<QStateMachine> machine(new QStateMachine(0));
   320 
   319 
   321         QScopedPointer<HbMainWindow> window(new HbMainWindow);
   320         //QScopedPointer<HbMainWindow> window(new HbMainWindow);
   322 
   321         //HsScene::setInstance( new HsScene(window.data()) );
   323         HsMenuViewBuilder builder;
   322 
   324         HsMenuModeWrapper menuMode;
   323         HsMenuViewBuilder builder;
   325         HsMainWindow mainWindow;
   324         HsMenuModeWrapper menuMode;
       
   325         HsMainWindowMock mainWindow;
   326 
   326 
   327         QScopedPointer<HsAllAppsState> allAppsState(new HsAllAppsState(
   327         QScopedPointer<HsAllAppsState> allAppsState(new HsAllAppsState(
   328             builder, menuMode, mainWindow, machine.data()));
   328             builder, menuMode, mainWindow, machine.data()));
   329 
   329 
   330 
   330