videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackbuttonbar.h
changeset 36 8aed59de29f9
parent 35 3738fe97f027
--- a/videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackbuttonbar.h	Thu Apr 01 23:32:44 2010 +0300
+++ b/videoplayback/hbvideoplaybackview/controlinc/mpxvideoplaybackbuttonbar.h	Fri Apr 16 18:13:14 2010 +0300
@@ -15,7 +15,7 @@
 *
 */
 
-// Version : %version: da1mmcf#9 %
+// Version : %version: da1mmcf#12 %
 
 
 
@@ -43,9 +43,19 @@
     EMPXButtonStretch,
     EMPXButtonZoom,
     EMPXButtonDetails,
+    EMPXButtonAttach,
     EMPXButtonCount    // Should always be the last value
 };
 
+enum TMPXSeekingState
+{
+    EMPXNotSeeking,
+    EMPXFastForwarding,
+    EMPXRewinding
+};
+
+const int KMPXFastForward = 30;
+const int KMPXRewind = -10;
 
 class QMPXVideoPlaybackButtonBar : public HbWidget
 {
@@ -58,22 +68,28 @@
         void aspectRatioChanged( int aspectRatio );
         void initialize();
         void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details );
+        void positionChanged( int position );
+        void durationChanged( int duration );
 
     private slots:
         void play();
         void pause();
         void changeAspectRatio();
         void handleButtonPressed();
-        void startFFSeeking();
-        void startRWSeeking();
-        void endSeeking();
+        void ffPressing();
+        void rwPressing();
+        void ffReleased();
+        void rwReleased();
         void openDetailsView();
 
     private:
         QMPXVideoPlaybackControlsController *mController;
+        QList<HbPushButton*>                 mButtons;
+        TMPXSeekingState                     mSeekingState;
 
-        QList<HbPushButton*>                 mButtons;
-        bool                                 mInitialized;
+        bool mInitialized;
+        int  mPosition;
+        int  mDuration;
 };
 
 #endif /*MPXVIDEOPLAYBACKBUTTONBAR_H_*/