homescreenapp/stateplugins/hsmenuworkerstateplugin/src/hsmenuworkerstate.cpp
changeset 51 4785f57bf3d4
parent 46 23b5d6a29cce
child 55 03646e8da489
equal deleted inserted replaced
46:23b5d6a29cce 51:4785f57bf3d4
    24 #include "hsmenuworkerstate.h"
    24 #include "hsmenuworkerstate.h"
    25 #include "hscollectionnamestate.h"
    25 #include "hscollectionnamestate.h"
    26 #include "hsarrangestate.h"
    26 #include "hsarrangestate.h"
    27 #include "hspreviewhswidgetstate.h"
    27 #include "hspreviewhswidgetstate.h"
    28 #include "hsviewappsettingsstate.h"
    28 #include "hsviewappsettingsstate.h"
       
    29 #include "hsviewappdetailsstate.h"
    29 
    30 
    30 /*!
    31 /*!
    31  \class HsMenuWorkerState
    32  \class HsMenuWorkerState
    32  \ingroup group_hsworkerstateplugin
    33  \ingroup group_hsworkerstateplugin
    33  \brief Menu Worker State.
    34  \brief Menu Worker State.
   101                                   mInitialState, addAppsToCollectionState);
   102                                   mInitialState, addAppsToCollectionState);
   102     mInitialState->addTransition(addAppsToCollectionTransition);
   103     mInitialState->addTransition(addAppsToCollectionTransition);
   103     // set a transition to the initial state after child processing finished
   104     // set a transition to the initial state after child processing finished
   104     addAppsToCollectionState->addTransition(addAppsToCollectionState,
   105     addAppsToCollectionState->addTransition(addAppsToCollectionState,
   105                                             SIGNAL(finished()), mInitialState);
   106                                             SIGNAL(finished()), mInitialState);
   106 
   107     connect(this, SIGNAL(reset()), addAppsToCollectionState, SIGNAL(finished()));
   107     createChildState<HsPreviewHSWidgetState> (HsMenuEvent::PreviewHSWidget);
   108     createChildState<HsPreviewHSWidgetState> (HsMenuEvent::PreviewHSWidget);
   108     createChildState<HsViewAppSettingsState> (HsMenuEvent::ShowAppSettings);
   109     createChildState<HsViewAppSettingsState> (HsMenuEvent::ShowAppSettings);
       
   110     createChildState<HsViewAppDetailsState> (HsMenuEvent::ShowAppDetails);
   109 
   111 
   110     HSMENUTEST_FUNC_EXIT("HsMenuWorkerState::construct");
   112     HSMENUTEST_FUNC_EXIT("HsMenuWorkerState::construct");
   111 }
   113 }
   112 
   114 
   113 /*!
   115 /*!
   128     HsMenuEventTransition *newChildStateTransition =
   130     HsMenuEventTransition *newChildStateTransition =
   129         new HsMenuEventTransition(operation, mInitialState, newChildState);
   131         new HsMenuEventTransition(operation, mInitialState, newChildState);
   130     mInitialState->addTransition(newChildStateTransition);
   132     mInitialState->addTransition(newChildStateTransition);
   131     // set a transition to the initial state after child processing finished
   133     // set a transition to the initial state after child processing finished
   132     newChildState->addTransition(newChildState, SIGNAL(exit()), mInitialState);
   134     newChildState->addTransition(newChildState, SIGNAL(exit()), mInitialState);
       
   135     connect(this, SIGNAL(reset()), newChildState, SIGNAL(exit()));
   133     HSMENUTEST_FUNC_EXIT("HsMenuWorkerState::createChildState");
   136     HSMENUTEST_FUNC_EXIT("HsMenuWorkerState::createChildState");
   134 
   137 
   135     return newChildState;
   138     return newChildState;
   136 }
   139 }