|
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 VideoPlaybackFullScreenControl |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 3 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef VIDEOPLAYBACKFULLSCREENCONTROL_H_ |
|
23 #define VIDEOPLAYBACKFULLSCREENCONTROL_H_ |
|
24 |
|
25 #include <qobject> |
|
26 |
|
27 #include <videoplaybackcontrol.hrh> |
|
28 #include <mpxplaybackframeworkdefs.h> |
|
29 |
|
30 class HbWidget; |
|
31 class VideoPlaybackViewFileDetails; |
|
32 class VideoPlaybackControlsController; |
|
33 |
|
34 class VideoPlaybackFullScreenControl : public QObject |
|
35 { |
|
36 Q_OBJECT |
|
37 |
|
38 public: |
|
39 VideoPlaybackFullScreenControl( VideoPlaybackControlsController* controller, |
|
40 TVideoPlaybackControls index, |
|
41 HbWidget* widget, |
|
42 TUint controlproperties ); |
|
43 |
|
44 virtual ~VideoPlaybackFullScreenControl(); |
|
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 TVideoPlaybackControls controlIndex(); |
|
57 |
|
58 /** |
|
59 * set changed state |
|
60 */ |
|
61 void updateState( TMPXPlaybackState state ); |
|
62 |
|
63 /* |
|
64 * Update the controls with the file details |
|
65 */ |
|
66 virtual void updateControlsWithFileDetails( VideoPlaybackViewFileDetails *details ); |
|
67 |
|
68 virtual void setVisible( bool visible ); |
|
69 |
|
70 virtual bool isVisible(); |
|
71 |
|
72 virtual void updateControlProperties( TUint properties ); |
|
73 |
|
74 protected: |
|
75 VideoPlaybackControlsController* mController; |
|
76 HbWidget * mControl; |
|
77 TVideoPlaybackControls mControlIndex; |
|
78 TUint mProperties; |
|
79 bool mVisible; |
|
80 }; |
|
81 |
|
82 #endif /*VIDEOPLAYBACKFULLSCREENCONTROL_H_*/ |
|
83 |