homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsinstalledappsstate.h
changeset 46 23b5d6a29cce
parent 39 4e8ebe173323
child 51 4785f57bf3d4
equal deleted inserted replaced
39:4e8ebe173323 46:23b5d6a29cce
    18 #ifndef HSINSTALLEDAPPSSTATE_H
    18 #ifndef HSINSTALLEDAPPSSTATE_H
    19 #define HSINSTALLEDAPPSSTATE_H
    19 #define HSINSTALLEDAPPSSTATE_H
    20 
    20 
    21 #include <qstate.h>
    21 #include <qstate.h>
    22 #include <QModelIndex>
    22 #include <QModelIndex>
       
    23 #include <QPointer>
    23 
    24 
    24 #include "hsmenustates_global.h"
    25 #include "hsmenustates_global.h"
    25 #include "hsmenuservice.h"
    26 #include "hsmenuservice.h"
       
    27 #include "hsmenuview.h"
    26 
    28 
    27 HS_STATES_TEST_CLASS(MenuStatesTest)
    29 HS_STATES_TEST_CLASS(MenuStatesTest)
    28 
    30 
    29 class HbView;
    31 class HbView;
    30 class HbAction;
    32 class HbAction;
    31 class HbMenu;
    33 class HbMenu;
    32 class HbAbstractViewItem;
    34 class HbAbstractViewItem;
    33 class QPointF;
    35 class QPointF;
    34 class HsMenuView;
    36 class HsMenuViewBuilder;
    35 class HsMenuItemModel;
    37 class HsMenuItemModel;
    36 /**
    38 
    37  * @ingroup group_hsmenustateplugin
       
    38  * @brief All Applications State.
       
    39  *
       
    40  * Displays all installed packages present on the device.
       
    41  *
       
    42  * @see StateMachine
       
    43  *
       
    44  * @lib ?library
       
    45  * @since S60 ?S60_version
       
    46  */
       
    47 class HsInstalledAppsState: public QState
    39 class HsInstalledAppsState: public QState
    48 {
    40 {
    49     Q_OBJECT
    41     Q_OBJECT
    50 
    42 
    51     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
    43     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
    52 
    44 
    53 public:
    45 public:
    54 
    46 
    55     HsInstalledAppsState(HsMenuView &menuView, QState *parent = 0);
    47     HsInstalledAppsState(HsMenuViewBuilder &menuViewBuilder,
       
    48                          QState *parent = 0);
    56 
    49 
    57     ~HsInstalledAppsState();
    50     ~HsInstalledAppsState();
    58 
    51 
    59 private slots:
    52 private slots:
    60 
    53 
    69 
    62 
    70     void stateEntered();
    63     void stateEntered();
    71 
    64 
    72     void stateExited();
    65     void stateExited();
    73 
    66 
       
    67 	void contextMenuAction(HbAction *action);
       
    68 
    74 private:
    69 private:
    75 
    70 
    76     void construct();
    71     void construct();
    77 
    72 
    78     void setMenuOptions();
    73     void setMenuOptions();
    79 
    74 
    80 private:
    75 private:
    81 
       
    82     /**
    76     /**
    83      * The View widget.
    77      * The View widget.
    84      * Own.
    78      * Own.
    85      */
    79      */
    86     HsMenuView &mMenuView;
    80     HsMenuView mMenuView;
    87 
    81 
    88     /**
    82     /**
    89      * Item Model for the List.
    83      * Item Model for the List.
    90      * Own.
    84      * Own.
    91      */
    85      */
    94     /**
    88     /**
    95      * Secondary Softkey action.
    89      * Secondary Softkey action.
    96      * Backstepping functionality.
    90      * Backstepping functionality.
    97      * Own.
    91      * Own.
    98      */
    92      */
    99     HbAction *mSecondarySoftkeyAction;
    93     HbAction *const mSecondarySoftkeyAction;
   100 
    94 
   101     /**
    95 	QModelIndex mContextModelIndex;
   102      * Old navigation icon.
    96 	QPointer<HbMenu> mContextMenu;
   103      * Not own.
       
   104      */
       
   105     HbAction *mOldNavigationAction;
       
   106 
       
   107 };
    97 };
   108 
    98 
   109 #endif // HSINSTALLEDAPPSSTATE_H
    99 #endif // HSINSTALLEDAPPSSTATE_H