|
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 QMPXVideoPlaybackFullScreenControl |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 1 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MPXVIDEOPLAYBACKFULLSCREENCONTROL_H_ |
|
23 #define MPXVIDEOPLAYBACKFULLSCREENCONTROL_H_ |
|
24 |
|
25 #include <qobject> |
|
26 |
|
27 #include <mpxvideoplaybackcontrol.hrh> |
|
28 #include <mpxplaybackframeworkdefs.h> |
|
29 |
|
30 class HbWidget; |
|
31 class QMPXVideoPlaybackViewFileDetails; |
|
32 class QMPXVideoPlaybackControlsController; |
|
33 |
|
34 class QMPXVideoPlaybackFullScreenControl : public QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 QMPXVideoPlaybackFullScreenControl( QMPXVideoPlaybackControlsController* controller, |
|
40 TMPXVideoPlaybackControls index, |
|
41 HbWidget* widget, |
|
42 TUint controlproperties ); |
|
43 |
|
44 virtual ~QMPXVideoPlaybackFullScreenControl(); |
|
45 |
|
46 public: |
|
47 |
|
48 /** |
|
49 * Set visibility of each control |
|
50 */ |
|
51 virtual void setVisibility( TMPXPlaybackState aState ); |
|
52 |
|
53 /** |
|
54 * return control index |
|
55 */ |
|
56 TMPXVideoPlaybackControls controlIndex(); |
|
57 |
|
58 /** |
|
59 * set changed volume |
|
60 */ |
|
61 bool volumeChanged( int aVolume ); |
|
62 |
|
63 /** |
|
64 * set changed duration |
|
65 */ |
|
66 bool durationChanged( int duration ); |
|
67 |
|
68 /** |
|
69 * set changed volume |
|
70 */ |
|
71 bool positionChanged( int position ); |
|
72 |
|
73 /** |
|
74 * Set changed position |
|
75 */ |
|
76 bool aspectRatioChanged( int aspectRatio ); |
|
77 |
|
78 /** |
|
79 * set changed state |
|
80 */ |
|
81 void updateState( TMPXPlaybackState state ); |
|
82 |
|
83 /* |
|
84 * Update the controls with the file details |
|
85 */ |
|
86 virtual void updateControlsWithFileDetails( QMPXVideoPlaybackViewFileDetails *details ); |
|
87 |
|
88 virtual void setVisible( bool visible ); |
|
89 |
|
90 virtual bool isVisible(); |
|
91 |
|
92 virtual void updateControlProperties( TUint properties ); |
|
93 |
|
94 protected: |
|
95 QMPXVideoPlaybackControlsController* mController; |
|
96 HbWidget *mControl; |
|
97 TMPXVideoPlaybackControls mControlIndex; |
|
98 TUint mProperties; |
|
99 bool mVisible; |
|
100 }; |
|
101 |
|
102 #endif /*MPXVIDEOPLAYBACKFULLSCREENCONTROL_H_*/ |
|
103 |