homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenuview.h
changeset 98 e6f74eb7f69f
parent 97 66b5fe3c07fd
--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenuview.h	Wed Oct 06 16:06:24 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsmenuview.h	Mon Oct 18 10:20:15 2010 +0300
@@ -23,6 +23,7 @@
 #include <QModelIndex>
 #include <QScopedPointer>
 #include <QSortFilterProxyModel>
+#include <QPersistentModelIndex>
 #include <HbAbstractItemView>
 #include "hsmenustates_global.h"
 #include "hsmenuviewbuilder.h"
@@ -50,18 +51,21 @@
 
 public:
     HsMenuView(HsMenuViewBuilder &builder, HsStateContext stateContext,
-               HsMainWindow& mainWindow);
+               HsMainWindow& mainWindow,
+               HsOperationalContext operationalContext = HsItemViewContext);
     ~HsMenuView();
 
     HbView *view() const;
 
-    HbListView *listView() const;
+    HbAbstractItemView *itemView() const;
 
     void activate();
     void inactivate();
 
     HbGroupBox *viewLabel() const;
 
+    QPersistentModelIndex  currentScrollPosition() const;
+
     void setModel(QAbstractItemModel *model);
     QAbstractItemModel *model() const;
 
@@ -98,7 +102,7 @@
     HsMainWindow &mMainWindow;
 
     HbView *mView; // once this is constructed it is not NULL
-    HbListView *mListView; // may be NULL in some contexts
+    HbAbstractItemView *mAbstractItemView; // may be NULL in some contexts
     HbGroupBox *mViewLabel; // may be NULL in some contexts
 
     QScopedPointer<HsSearchView> mHsSearchView;