homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsallappsstate.h
changeset 51 4785f57bf3d4
parent 46 23b5d6a29cce
child 61 2b1b11a301d2
equal deleted inserted replaced
46:23b5d6a29cce 51:4785f57bf3d4
    36 class HbAbstractViewItem;
    36 class HbAbstractViewItem;
    37 class QPointF;
    37 class QPointF;
    38 class HsMenuViewBuilder;
    38 class HsMenuViewBuilder;
    39 class HsMenuItemModel;
    39 class HsMenuItemModel;
    40 class HsMenuModeWrapper;
    40 class HsMenuModeWrapper;
       
    41 class HsMainWindow;
    41 
    42 
    42 class HsAllAppsState: public QState
    43 class HsAllAppsState: public QState
    43 {
    44 {
    44     Q_OBJECT
    45     Q_OBJECT
    45     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
    46     HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest)
    46 public:
    47 public:
    47     HsAllAppsState(HsMenuViewBuilder &menuViewBuilder,
    48     HsAllAppsState(HsMenuViewBuilder &menuViewBuilder,
    48                    HsMenuModeWrapper &menuMode,
    49                    HsMenuModeWrapper &menuMode,
       
    50                    HsMainWindow &mainWindow,
    49                    QState *parent = 0);
    51                    QState *parent = 0);
    50     ~HsAllAppsState();
    52     ~HsAllAppsState();
    51 signals:
    53 signals:
    52     void toAppLibraryState();
    54     void toAppLibraryState();
    53 
    55 
    66     void ascendingMenuAction();
    68     void ascendingMenuAction();
    67     void descendingMenuAction();
    69     void descendingMenuAction();
    68     void stateEntered();
    70     void stateEntered();
    69     void addModeEntered();
    71     void addModeEntered();
    70     void normalModeEntered();
    72     void normalModeEntered();
    71     void stateExited();	
    73     void stateExited();
    72 	void contextMenuAction(HbAction *action);
    74     void contextMenuAction(HbAction *action);
    73 private:
    75 private:
    74     void construct();
    76     void construct();
    75     void setMenuOptions();
    77     void setMenuOptions();
    76     void addToHomeScreen(const QModelIndex &index);
    78     void addToHomeScreen(const QModelIndex &index);
    77 private:
    79 private:
    79     HsSortAttribute mSortAttribute;
    81     HsSortAttribute mSortAttribute;
    80     HsSortAttribute mCollectionsSortAttribute;
    82     HsSortAttribute mCollectionsSortAttribute;
    81     HsMenuView mMenuView;
    83     HsMenuView mMenuView;
    82     HsMenuModeWrapper &mMenuMode;
    84     HsMenuModeWrapper &mMenuMode;
    83     HsMenuItemModel *mAllAppsModel;
    85     HsMenuItemModel *mAllAppsModel;
    84 	QModelIndex mContextModelIndex;
    86     HsMainWindow &mMainWindow;
    85 	QPointer<HbMenu> mContextMenu;
    87     QModelIndex mContextModelIndex;
       
    88     QPointer<HbMenu> mContextMenu;
    86 };
    89 };
    87 
    90 
    88 #endif // HSALLAPPSSTATE_H
    91 #endif // HSALLAPPSSTATE_H