|
1 /* |
|
2 * Copyright (c) 2009 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 VideoPlaybackStatusPaneControl |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 11 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef VIDEOPLAYBACKSTATUSPANECONTROL_H_ |
|
23 #define VIDEOPLAYBACKSTATUSPANECONTROL_H_ |
|
24 |
|
25 |
|
26 #include "videoplaybackfullscreencontrol.h" |
|
27 |
|
28 |
|
29 class HbLabel; |
|
30 class HbAction; |
|
31 class HbGroupBox; |
|
32 class QGraphicsWidget; |
|
33 class VideoPlaybackViewFileDetails; |
|
34 class VideoPlaybackControlsController; |
|
35 |
|
36 class VideoPlaybackStatusPaneControl : public VideoPlaybackFullScreenControl |
|
37 { |
|
38 Q_OBJECT |
|
39 |
|
40 public: |
|
41 VideoPlaybackStatusPaneControl( VideoPlaybackControlsController* controller, |
|
42 TVideoPlaybackControls index, |
|
43 HbWidget* widget, |
|
44 TUint controlproperties ); |
|
45 |
|
46 virtual ~VideoPlaybackStatusPaneControl(); |
|
47 |
|
48 public: |
|
49 |
|
50 /** |
|
51 * Set visibility of each control |
|
52 */ |
|
53 void setVisibility( TMPXPlaybackState aState ); |
|
54 |
|
55 /* |
|
56 * Update the controls with the file details |
|
57 */ |
|
58 void updateControlsWithFileDetails( VideoPlaybackViewFileDetails *details ); |
|
59 |
|
60 void setVisible( bool visible ); |
|
61 |
|
62 bool isVisible(); |
|
63 |
|
64 void setMenu( VideoPlaybackViewFileDetails* details ); |
|
65 |
|
66 void controlListUpdated( VideoPlaybackViewFileDetails* details ); |
|
67 |
|
68 private slots: |
|
69 void handleAboutToShow(); |
|
70 void handleAboutToHide(); |
|
71 void openFullScreenView(); |
|
72 |
|
73 private: |
|
74 bool mVisible; |
|
75 HbAction *mActionBack; |
|
76 HbLabel *mTitleLabel; |
|
77 HbGroupBox *mTitleGroupBox; |
|
78 QGraphicsWidget *mTitleLayout; |
|
79 }; |
|
80 |
|
81 #endif /*VIDEOPLAYBACKSTATUSPANECONTROL_H_*/ |
|
82 |