|
1 /* |
|
2 * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: Implementation of QMPXVideoPlaybackControlBar |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MPXVIDEOPLAYBACKCONTROLBAR_H_ |
|
23 #define MPXVIDEOPLAYBACKCONTROLBAR_H_ |
|
24 |
|
25 |
|
26 |
|
27 #include <hbeffect.h> |
|
28 #include <hbwidget.h> |
|
29 #include <mpxplaybackframeworkdefs.h> |
|
30 |
|
31 class HbFrameItem; |
|
32 class QMPXVideoPlaybackButtonBar; |
|
33 class QMPXVideoPlaybackProgressBar; |
|
34 class QMPXVideoPlaybackViewFileDetails; |
|
35 class QMPXVideoPlaybackControlsController; |
|
36 |
|
37 class QMPXVideoPlaybackControlBar : public HbWidget |
|
38 { |
|
39 Q_OBJECT |
|
40 |
|
41 public: |
|
42 QMPXVideoPlaybackControlBar( QMPXVideoPlaybackControlsController* controller ); |
|
43 virtual ~QMPXVideoPlaybackControlBar(); |
|
44 void updateState( TMPXPlaybackState state ); |
|
45 void aspectRatioChanged( int aspectRatio ); |
|
46 void initialize(); |
|
47 void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details ); |
|
48 void setVisibleToControlBar( bool visible ); |
|
49 void durationChanged( int duration ); |
|
50 void positionChanged( int position ); |
|
51 |
|
52 private slots: |
|
53 void appeared( const HbEffect::EffectStatus &status ); |
|
54 void disappeared( const HbEffect::EffectStatus &status ); |
|
55 |
|
56 private: |
|
57 QMPXVideoPlaybackControlsController *mController; |
|
58 QMPXVideoPlaybackButtonBar *mButtonBar; |
|
59 QMPXVideoPlaybackProgressBar *mProgressBar; |
|
60 HbFrameItem *mFrameItem; |
|
61 }; |
|
62 |
|
63 #endif /*MPXVIDEOPLAYBACKCONTROLBAR_H_*/ |