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: 2 % |
|
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 volume |
|
80 */ |
|
81 bool setDownloadSize( int size ); |
|
82 |
|
83 /** |
|
84 * set changed state |
|
85 */ |
|
86 void updateState( TMPXPlaybackState state ); |
|
87 |
|
88 /* |
|
89 * UpdateDownloadPosition |
|
90 * updates the download ratio on the progress bar |
|
91 */ |
|
92 bool updateDownloadPosition( int size ); |
|
93 |
|
94 /* |
|
95 * Update the controls with the file details |
|
96 */ |
|
97 virtual void updateControlsWithFileDetails( QMPXVideoPlaybackViewFileDetails *details ); |
|
98 |
|
99 virtual void setVisible( bool visible ); |
|
100 |
|
101 virtual bool isVisible(); |
|
102 |
|
103 virtual void updateControlProperties( TUint properties ); |
|
104 |
|
105 public: |
|
106 int mPosition; |
|
107 int mDuration; |
|
108 int mAspectRatio; |
|
109 int mDownloadSize; |
|
110 int mDownloadPosition; |
|
111 int mVolume; |
|
112 |
|
113 bool mVisible; |
|
114 TMPXPlaybackState mState; |
|
115 TMPXPlaybackState mVisibilityState; |
|
116 |
|
117 QMPXVideoPlaybackControlsController* mController; |
|
118 HbWidget *mControl; |
|
119 TMPXVideoPlaybackControls mControlIndex; |
|
120 TUint mProperties; |
|
121 }; |
|
122 |
|
123 #endif /*MPXVIDEOPLAYBACKFULLSCREENCONTROL_H_*/ |
|
124 |
|