videoplayback/videoplaybackview/tsrc/testcontrolbar/stub/inc/videoplaybackprogressbar.h
changeset 52 e3cecb93e76a
child 58 d2b028fd1f7d
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/videoplayback/videoplaybackview/tsrc/testcontrolbar/stub/inc/videoplaybackprogressbar.h	Wed Aug 18 09:50:14 2010 +0300
@@ -0,0 +1,55 @@
+/*
+* Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
+* All rights reserved.
+* This component and the accompanying materials are made available
+* under the terms of "Eclipse Public License v1.0"
+* which accompanies this distribution, and is available
+* at the URL "http://www.eclipse.org/legal/epl-v10.html".
+*
+* Initial Contributors:
+* Nokia Corporation - initial contribution.
+*
+* Contributors:
+*
+* Description:  Implementation of VideoPlaybackProgressBar
+*
+*/
+
+// Version : %version:  2 %
+
+
+
+#ifndef VIDEOPLAYBACKPROGRESSBAR_H_
+#define VIDEOPLAYBACKPROGRESSBAR_H_
+
+#include <hbwidget.h>
+#include <mpxplaybackframeworkdefs.h>
+
+class VideoPlaybackViewFileDetails;
+class VideoPlaybackControlsController;
+
+class VideoPlaybackProgressBar : public HbWidget
+{
+    Q_OBJECT
+
+    public:
+        VideoPlaybackProgressBar( VideoPlaybackControlsController* controller );
+        virtual ~VideoPlaybackProgressBar();
+        void initialize();
+        void updateWithFileDetails( VideoPlaybackViewFileDetails* details );
+        void updateState( TMPXPlaybackState state );
+
+    public:
+        void durationChanged( int duration );
+        void positionChanged( int position );
+
+    public:
+        VideoPlaybackControlsController *mController;
+        VideoPlaybackViewFileDetails *mFileDetails;
+        TMPXPlaybackState mState;
+        int mDuration;
+        int mPosition;
+};
+
+#endif /*VIDEOPLAYBACKPROGRESSBAR_H_*/
+