42 HsAllAppsState(HsMenuViewBuilder &menuViewBuilder, |
42 HsAllAppsState(HsMenuViewBuilder &menuViewBuilder, |
43 HsMenuModeWrapper &menuMode, |
43 HsMenuModeWrapper &menuMode, |
44 HsMainWindow &mainWindow, |
44 HsMainWindow &mainWindow, |
45 QState *parent = 0); |
45 QState *parent = 0); |
46 ~HsAllAppsState(); |
46 ~HsAllAppsState(); |
|
47 void scrollToBeginning(); |
|
48 void setModel(Hs::HsMenuMode menuMode); |
47 |
49 |
48 signals: |
50 signals: |
49 void toAppLibraryState(); |
51 void toAppLibraryState(); |
50 |
52 |
51 private slots: |
53 private slots: |
52 void addActivated(const QModelIndex &index); |
|
53 void addLongPressed(HbAbstractViewItem *item, const QPointF &coords); |
|
54 void addToCollection(); |
54 void addToCollection(); |
55 void openInstalledView(); |
55 void openInstalledView(); |
56 void ascendingMenuAction(); |
56 void ascendingMenuAction(); |
57 void descendingMenuAction(); |
57 void descendingMenuAction(); |
58 void normalModeEntered(); |
58 void normalModeEntered(); |
59 void addModeEntered(); |
|
60 void stateExited(); |
59 void stateExited(); |
61 void contextMenuAction(HbAction *action); |
|
62 private: |
60 private: |
63 void construct(); |
61 void construct(); |
64 void setMenuOptions(); |
62 void setMenuOptions(); |
65 void addToHomeScreen(const QModelIndex &index); |
|
66 void setContextMenuOptions(HbAbstractViewItem *item, EntryFlags flags); |
63 void setContextMenuOptions(HbAbstractViewItem *item, EntryFlags flags); |
67 |
64 |
68 private: |
65 private: |
69 HsAddModeProxyModel *mAddModeProxyModel; |
66 HsAddModeProxyModel *mAddModeProxyModel; |
70 HsSortAttribute mSortAttribute; |
67 Hs::HsSortAttribute mSortAttribute; |
71 }; |
68 }; |
72 |
69 |
73 #endif // HSALLAPPSSTATE_H |
70 #endif // HSALLAPPSSTATE_H |