videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackprogressbar.h
changeset 17 69946d1824c4
parent 15 cf5481c2bc0b
child 20 b9e04db066d4
--- a/videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackprogressbar.h	Fri Apr 16 14:59:52 2010 +0300
+++ b/videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackprogressbar.h	Mon May 03 12:32:50 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version: da1mmcf#9 %
+// Version : %version: da1mmcf#10 %
 
 
 
@@ -25,8 +25,8 @@
 #include <hbwidget.h>
 #include <mpxplaybackframeworkdefs.h>
 
-class HbLabel;
-class HbProgressBar;
+class QTimer;
+class HbProgressSlider;
 class QMPXVideoPlaybackViewFileDetails;
 class QMPXVideoPlaybackControlsController;
 
@@ -37,9 +37,6 @@
     public:
         QMPXVideoPlaybackProgressBar( QMPXVideoPlaybackControlsController* controller );
         virtual ~QMPXVideoPlaybackProgressBar();
-        void mousePressEvent( QGraphicsSceneMouseEvent *event );
-        void mouseReleaseEvent( QGraphicsSceneMouseEvent *event );
-        void mouseMoveEvent( QGraphicsSceneMouseEvent *event );
         void initialize();
         void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details );
         void updateState( TMPXPlaybackState state );
@@ -48,20 +45,31 @@
         void durationChanged( int duration );
         void positionChanged( int position );
 
+    private slots:
+        void handleSliderPressed();
+        void handleSliderMoved( int value );
+        void handleSliderReleased();
+        void handleSeekingTimeout();
+
     private:
         QString valueToReadableFormat( int value );
         void updatePostion( int position );
 
     private:
         QMPXVideoPlaybackControlsController *mController;
-        HbProgressBar                       *mProgressSlider;
-        HbLabel                             *mDurationLabel;
-        HbLabel                             *mPositionLabel;
+        HbProgressSlider                    *mProgressSlider;
+
+        int     mDuration;
+        int     mDraggingPosition;
+        int     mSetPosition;
 
-        int                                  mDuration;
-        bool                                 mNeedToResumeAfterSetPosition;
-        bool                                 mInitialized;
-        bool                                 mDragging;
+        bool    mNeedToResumeAfterSetPosition;
+        bool    mInitialized;
+        bool    mSliderDragging;
+        bool    mLongTimeFormat;
+        bool    mLiveStreaming;
+
+        QTimer *mSeekingTimer;
 };
 
 #endif /*MPXVIDEOPLAYBACKPROGRESSBAR_H_*/