--- a/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsallappsstate.h Tue Jul 06 14:06:53 2010 +0300
+++ b/homescreenapp/stateplugins/hsapplibrarystateplugin/inc/hsallappsstate.h Wed Aug 18 09:40:07 2010 +0300
@@ -18,19 +18,15 @@
#ifndef HSALLAPPSSTATE_H
#define HSALLAPPSSTATE_H
-#include <qstate.h>
-#include <QModelIndex>
-#include <QPointer>
-
+#include <QState>
#include "hsbaseviewstate.h"
#include "hsmenumodewrapper.h"
+
HS_STATES_TEST_CLASS(MenuStatesTest)
class HbView;
-class HbAction;
-class HbMenu;
class HbAbstractViewItem;
class QPointF;
class HsMenuViewBuilder;
@@ -52,40 +48,26 @@
signals:
void toAppLibraryState();
-public slots:
- void scrollToBeginning();
- void collectionsSortOrder(HsSortAttribute sortAttribute);
private slots:
- bool openTaskSwitcher();
- int checkSoftwareUpdates();
- void listItemActivated(const QModelIndex &index);
void addActivated(const QModelIndex &index);
- void listItemLongPressed(HbAbstractViewItem *item, const QPointF &coords);
void addLongPressed(HbAbstractViewItem *item, const QPointF &coords);
void addToCollection();
void openInstalledView();
void ascendingMenuAction();
void descendingMenuAction();
- void stateEntered();
+ void normalModeEntered();
void addModeEntered();
- void normalModeEntered();
void stateExited();
void contextMenuAction(HbAction *action);
private:
void construct();
void setMenuOptions();
void addToHomeScreen(const QModelIndex &index);
+ void setContextMenuOptions(HbAbstractViewItem *item, EntryFlags flags);
+
private:
- HbAction *mSecondarySoftkeyAction;
+ HsAddModeProxyModel *mAddModeProxyModel;
HsSortAttribute mSortAttribute;
- HsSortAttribute mCollectionsSortAttribute;
- HsMenuView mMenuView;
- HsMenuModeWrapper &mMenuMode;
- HsMenuItemModel *mAllAppsModel;
- HsMainWindow &mMainWindow;
- QModelIndex mContextModelIndex;
- QPointer<HbMenu> mContextMenu;
-
};
#endif // HSALLAPPSSTATE_H