diff -r 341166945d65 -r 52b0f64eeb51 homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hscollectionstate.h --- a/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hscollectionstate.h Fri Jun 25 19:19:22 2010 +0300 +++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hscollectionstate.h Fri Jul 09 14:36:01 2010 +0300 @@ -18,9 +18,8 @@ #ifndef HSCOLLECTIONSTATE_H #define HSCOLLECTIONSTATE_H -#include -#include -#include +#include +#include #include "hsbaseviewstate.h" @@ -30,7 +29,6 @@ class HbAction; class HbMenu; class HbAbstractViewItem; -class QModelIndex; class HsMenuItemModel; class HsMenuModeWrapper; class HsMenuViewBuilder; @@ -46,29 +44,25 @@ HsMainWindow &mainWindow, QState *parent = 0); ~HsCollectionState(); -public slots: - void collectionsSortOrder(HsSortAttribute sortAttribute); protected: void onEntry(QEvent *event); signals: void sortOrderChanged(HsSortAttribute sortAttribute); private slots: - bool openTaskSwitcher(); - void listItemActivated(const QModelIndex &index); - void listItemLongPressed(HbAbstractViewItem *item, const QPointF &coords); void addAppsAction(bool addApps = true); void addCollectionShortcutToHomeScreenAction(); void renameAction(); void deleteAction(); - void backSteppingAction(); void updateLabel(); void stateEntered(); + void stateExited(); void latestOnTopMenuAction(); void oldestOnTopMenuAction(); void contextMenuAction(HbAction *action); void handleEmptyChange(bool empty); void lockSearchButton(bool lock); + void createArrangeCollection(); private: void construct(); @@ -76,20 +70,13 @@ void makeConnect(); void makeDisconnect(); void addElementToHomeScreen(const QModelIndex &index); + void setContextMenuOptions(HbAbstractViewItem *item, EntryFlags flags); + void setMenuOptions(); private: HsSortAttribute mSortAttribute; - HsSortAttribute mCollectionsSortAttribute; int mCollectionId; QString mCollectionType; - HsMenuView mMenuView; - HsMenuModeWrapper &mMenuMode; - HbAction *const mSecondarySoftkeyAction; - HsMenuItemModel *mCollectionModel; - HbMenu *mOptions; - QModelIndex mContextModelIndex; - QPointer mContextMenu; - HsMainWindow &mMainWindow; }; #endif // HSCOLLECTIONSTATE_H