homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsallcollectionsstate.h
changeset 51 4785f57bf3d4
parent 46 23b5d6a29cce
child 61 2b1b11a301d2
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsallcollectionsstate.h	Fri May 14 15:43:04 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsallcollectionsstate.h	Thu May 27 12:46:08 2010 +0300
@@ -37,6 +37,7 @@
 class HbMainWindow;
 class HsMenuItemModel;
 class HsMenuView;
+class HsMainWindow;
 
 class HsAllCollectionsState: public QState
 {
@@ -45,6 +46,7 @@
 public:
     HsAllCollectionsState(HsMenuViewBuilder &menuViewBuilder,
                           HsMenuModeWrapper &menuMode,
+                          HsMainWindow &mainWindow,
                           QState *parent = 0);
     ~HsAllCollectionsState();
 protected:
@@ -70,7 +72,7 @@
     void normalModeEntered();
     void normalModeExited();
     void stateExited();
-	void contextMenuAction(HbAction *action);
+    void contextMenuAction(HbAction *action);
 private:
     void construct();
     void setMenuOptions();
@@ -80,8 +82,9 @@
     HsMenuView mMenuView;
     HsMenuModeWrapper &mMenuMode;
     HsMenuItemModel *mAllCollectionsModel;
-	QModelIndex mContextModelIndex;
-	QPointer<HbMenu> mContextMenu;
+    HsMainWindow &mMainWindow;
+    QModelIndex mContextModelIndex;
+    QPointer<HbMenu> mContextMenu;
 };
 
 #endif // HSALLCOLLECTIONSSTATE_H