--- a/homescreenapp/stateplugins/hshomescreenstateplugin/inc/hsidlestate.h Tue Jul 06 14:06:53 2010 +0300
+++ b/homescreenapp/stateplugins/hshomescreenstateplugin/inc/hsidlestate.h Wed Aug 18 09:40:07 2010 +0300
@@ -31,11 +31,11 @@
class QGraphicsItem;
class QGraphicsSceneMouseEvent;
-class QPropertyAnimation;
+
class QGestureEvent;
class HbAction;
class HbContinuousFeedback;
-class HsIdleWidget;
+
class HsTitleResolver;
class QParallelAnimationGroup;
class HbMenu;
@@ -44,6 +44,9 @@
#endif
class HsWidgetHost;
+class HsPage;
+class HsMessageBoxWrapper;
+
class HsIdleState : public QState
{
@@ -60,6 +63,7 @@
void event_moveScene();
void event_selectWallpaper();
void event_addPage();
+ void event_preRemovePage();
void event_removePage();
void event_toggleConnection();
@@ -78,8 +82,6 @@
void addPageToScene(int pageIndex);
void updateZoneAnimation();
void showTrashBin();
- void removeActivePage();
- void deleteZoneAnimation();
QList<QRectF> createInactiveWidgetRects();
void updatePagePresentationToWidgetSnap();
void resetSnapPosition();
@@ -117,6 +119,9 @@
void action_moveScene_moveToNearestPage();
void action_moveScene_disconnectGestureHandlers();
void action_addPage_addPage();
+ void action_preRemovePage_showQuery();
+ void action_preRemovePage_exit();
+ void action_removePage_startRemovePageAnimation();
void action_removePage_removePage();
void action_toggleConnection_toggleConnection();
void action_idle_setupTitle();
@@ -136,18 +141,17 @@
bool openTaskSwitcher();
void zoneAnimationFinished();
void pageChangeAnimationFinished();
- void onRemovePageConfirmationOk();
void onVerticalSnapLineTimerTimeout();
void onHorizontalSnapLineTimerTimeout();
void onActivePageChanged();
-
+
private:
HbAction *mNavigationAction;
- HsIdleWidget *mUiWidget;
+
HsTitleResolver *mTitleResolver;
- QPropertyAnimation *mZoneAnimation;
+
bool mAllowZoneAnimation;
- QPropertyAnimation *mPageChangeAnimation;
+
HbContinuousFeedback *mContinuousFeedback;
bool mTrashBinFeedbackAlreadyPlayed;
QPointF mPageHotSpot;
@@ -157,12 +161,13 @@
QPointer<HbMenu> mSceneMenu;
HsWidgetPositioningOnWidgetMove::Result mSnapResult;
HsWidgetPositioningOnWidgetMove::Result mPreviousSnapResult;
- qreal mSnapBorderGap;
QTimer mVerticalSnapLineTimer;
- QTimer mHorizontalSnapLineTimer;
+ QTimer mHorizontalSnapLineTimer;
#ifdef Q_OS_SYMBIAN
XQSettingsManager *mSettingsMgr;
#endif
+ HsMessageBoxWrapper *mMessageBoxWrapper;
+
HOMESCREEN_TEST_FRIEND_CLASS(HomeScreenStatePluginTest)
};