equal
deleted
inserted
replaced
34 class HbAbstractViewItem; |
34 class HbAbstractViewItem; |
35 class QModelIndex; |
35 class QModelIndex; |
36 class HsMenuItemModel; |
36 class HsMenuItemModel; |
37 class HsMenuModeWrapper; |
37 class HsMenuModeWrapper; |
38 class HsMenuViewBuilder; |
38 class HsMenuViewBuilder; |
|
39 class HsMainWindow; |
39 |
40 |
40 class HsCollectionState: public QState |
41 class HsCollectionState: public QState |
41 { |
42 { |
42 Q_OBJECT |
43 Q_OBJECT |
43 HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest) |
44 HS_STATES_TEST_FRIEND_CLASS(MenuStatesTest) |
44 public: |
45 public: |
45 HsCollectionState(HsMenuViewBuilder &menuView, |
46 HsCollectionState(HsMenuViewBuilder &menuView, |
46 HsMenuModeWrapper &menuMode, |
47 HsMenuModeWrapper &menuMode, |
|
48 HsMainWindow &mainWindow, |
47 QState *parent = 0); |
49 QState *parent = 0); |
48 ~HsCollectionState(); |
50 ~HsCollectionState(); |
49 public slots: |
51 public slots: |
50 void collectionsSortOrder(HsSortAttribute sortAttribute); |
52 void collectionsSortOrder(HsSortAttribute sortAttribute); |
51 protected: |
53 protected: |
64 void updateLabel(); |
66 void updateLabel(); |
65 void stateEntered(); |
67 void stateEntered(); |
66 void stateExited(); |
68 void stateExited(); |
67 void latestOnTopMenuAction(); |
69 void latestOnTopMenuAction(); |
68 void oldestOnTopMenuAction(); |
70 void oldestOnTopMenuAction(); |
69 void contextMenuAction(HbAction *action); |
71 void contextMenuAction(HbAction *action); |
70 private: |
72 private: |
71 void construct(); |
73 void construct(); |
72 void constructMenu(bool isDynamic); |
74 void constructMenu(bool isDynamic); |
73 void makeConnect(); |
75 void makeConnect(); |
74 void makeDisconnect(); |
76 void makeDisconnect(); |
82 HsMenuView mMenuView; |
84 HsMenuView mMenuView; |
83 HsMenuModeWrapper &mMenuMode; |
85 HsMenuModeWrapper &mMenuMode; |
84 HbAction *const mSecondarySoftkeyAction; |
86 HbAction *const mSecondarySoftkeyAction; |
85 HsMenuItemModel *mCollectionModel; |
87 HsMenuItemModel *mCollectionModel; |
86 HbMenu *mOptions; |
88 HbMenu *mOptions; |
87 QModelIndex mContextModelIndex; |
89 QModelIndex mContextModelIndex; |
88 QPointer<HbMenu> mContextMenu; |
90 QPointer<HbMenu> mContextMenu; |
89 |
91 HsMainWindow &mMainWindow; |
90 }; |
92 }; |
91 |
93 |
92 #endif // HSCOLLECTIONSTATE_H |
94 #endif // HSCOLLECTIONSTATE_H |