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 QMPXVideoPlaybackButtonBar |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 2 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MPXVIDEOPLAYBACKBUTTONBAR_H_ |
|
23 #define MPXVIDEOPLAYBACKBUTTONBAR_H_ |
|
24 |
|
25 #include <hbwidget.h> |
|
26 #include <mpxplaybackframeworkdefs.h> |
|
27 |
|
28 |
|
29 |
|
30 class QMPXVideoPlaybackViewFileDetails; |
|
31 class QMPXVideoPlaybackControlsController; |
|
32 |
|
33 |
|
34 class QMPXVideoPlaybackButtonBar : public HbWidget |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 QMPXVideoPlaybackButtonBar( QMPXVideoPlaybackControlsController* controller ); |
|
40 virtual ~QMPXVideoPlaybackButtonBar(); |
|
41 void updateState( TMPXPlaybackState state ); |
|
42 void aspectRatioChanged( int aspectRatio ); |
|
43 void initialize(); |
|
44 void updateWithFileDetails( QMPXVideoPlaybackViewFileDetails* details ); |
|
45 void durationChanged( int duration ); |
|
46 void positionChanged( int position ); |
|
47 |
|
48 public: |
|
49 QMPXVideoPlaybackControlsController *mController; |
|
50 QMPXVideoPlaybackViewFileDetails *mFileDetails; |
|
51 int mAspectRatio; |
|
52 int mPosition; |
|
53 int mDuration; |
|
54 TMPXPlaybackState mState; |
|
55 }; |
|
56 |
|
57 #endif /*MPXVIDEOPLAYBACKBUTTONBAR_H_*/ |
|