homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenumodetransition.h
changeset 46 23b5d6a29cce
parent 35 f9ce957a272c
child 81 7dd137878ff8
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenumodetransition.h	Mon May 03 12:24:59 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenumodetransition.h	Fri May 14 15:43:04 2010 +0300
@@ -19,9 +19,10 @@
 #define HSMENUMODETRANSITION_H
 
 #include <QAbstractTransition>
-#include "hsmenuview.h"
+#include "hsapp_defs.h"
 
 class QState;
+class HsMenuModeWrapper;
 
 class HsMenuModeTransition: public QAbstractTransition
 {
@@ -29,7 +30,7 @@
 public:
 
     HsMenuModeTransition(
-        HsMenuView &menuView, HsMenuMode menuMode, QState *target);
+        HsMenuModeWrapper &menuMode, HsMenuMode expectedMode, QState *target);
 
     bool eventTest(QEvent *event);
 
@@ -37,8 +38,8 @@
 
 private:
 
-    HsMenuView &mMenuView;
-    HsMenuMode mMode;
+    HsMenuModeWrapper &mMenuMode;
+    const HsMenuMode mExpectedMenuMode;
 };
 
 #endif //HSMENUMODETRANSITION_H