ui/views/fullscreenview/inc/glxcoverflow.h
changeset 40 112f0ac2d1f0
parent 26 c499df2dbb33
child 33 1ee2af37811f
--- a/ui/views/fullscreenview/inc/glxcoverflow.h	Mon May 03 12:31:32 2010 +0300
+++ b/ui/views/fullscreenview/inc/glxcoverflow.h	Mon May 03 00:53:50 2010 +0530
@@ -30,6 +30,7 @@
 class HbMainWindow;
 class QAbstractItemModel;
 
+class QGestureEvent;
 typedef enum
 {
     NO_MOVE,
@@ -46,7 +47,7 @@
     EMPTY_ROW_EVENT //send the signal when model have no data
 } GlxCoverFlowEvent;
 
-class GlxCoverFlow : public HbScrollArea
+class GlxCoverFlow : public HbWidget
 {
 Q_OBJECT
 
@@ -59,12 +60,10 @@
     void setUiOn(bool uiOn) { mUiOn = uiOn; }
     void partiallyClean();
     void partiallyCreate(QAbstractItemModel *model, QSize itemSize);
-	void rotateImage();
-    void setCoverFlow();
+	void setCoverFlow();
     void ClearCoverFlow();
 		    
 public slots:
-    void rotationEffectFinished( const HbEffect::EffectStatus &status );
 
 signals :
     void coverFlowEvent(GlxCoverFlowEvent e);
@@ -84,8 +83,7 @@
     void autoRightMove();
 
 protected:
-    void mousePressEvent(QGraphicsSceneMouseEvent *event);	
-    void mouseReleaseEvent (QGraphicsSceneMouseEvent *event) ;
+	void gestureEvent(QGestureEvent *event);
 
     void move(int value);
 
@@ -103,7 +101,6 @@
     //reset all the data of cover flow
     void resetCoverFlow();
     int getSubState();
-private slots:
 
 private:
 	HbIconItem *mIconItem[NBR_ICON_ITEM];      //at most contain only five item
@@ -117,9 +114,8 @@
     bool mUiOn;
     int mBounceBackDeltaX;
     QAbstractItemModel *mModel;
-    GlxUserMove mMoveDir;                       //arun_goel3 may be remove later or change later
-	int rotAngle;
-        
+    GlxUserMove mMoveDir;
+    int mSpeed;        
 };
 
 #endif /* GLXCOVERFLOW_H_ */