--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hscollectionstate.h Fri May 14 15:43:04 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hscollectionstate.h Thu May 27 12:46:08 2010 +0300
@@ -36,6 +36,7 @@
class HsMenuItemModel;
class HsMenuModeWrapper;
class HsMenuViewBuilder;
+class HsMainWindow;
class HsCollectionState: public QState
{
@@ -44,6 +45,7 @@
public:
HsCollectionState(HsMenuViewBuilder &menuView,
HsMenuModeWrapper &menuMode,
+ HsMainWindow &mainWindow,
QState *parent = 0);
~HsCollectionState();
public slots:
@@ -66,7 +68,7 @@
void stateExited();
void latestOnTopMenuAction();
void oldestOnTopMenuAction();
- void contextMenuAction(HbAction *action);
+ void contextMenuAction(HbAction *action);
private:
void construct();
void constructMenu(bool isDynamic);
@@ -84,9 +86,9 @@
HbAction *const mSecondarySoftkeyAction;
HsMenuItemModel *mCollectionModel;
HbMenu *mOptions;
- QModelIndex mContextModelIndex;
- QPointer<HbMenu> mContextMenu;
-
+ QModelIndex mContextModelIndex;
+ QPointer<HbMenu> mContextMenu;
+ HsMainWindow &mMainWindow;
};
#endif // HSCOLLECTIONSTATE_H