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