|
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 MPXVideoPlaybackControlsController |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 4 % |
|
19 |
|
20 |
|
21 |
|
22 #ifndef MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
|
23 #define MPXVIDEOPLAYBACKCONTROLSCONTROLLER_H_ |
|
24 |
|
25 // INCLUDES |
|
26 #include <qobject> |
|
27 |
|
28 #include <mpxplaybackframeworkdefs.h> |
|
29 |
|
30 #include "mpxvideo_debug.h" |
|
31 #include "mpxcommonvideoplaybackview.hrh" |
|
32 #include "videoplaybackviewfiledetails.h" |
|
33 |
|
34 // FORWARD DECLARATIONS |
|
35 class VideoPlaybackDocumentLoader; |
|
36 class VideoPlaybackControlsController; |
|
37 class VideoPlaybackControlConfiguration; |
|
38 |
|
39 |
|
40 |
|
41 // CLASS DECLARATION |
|
42 |
|
43 class VideoPlaybackControlsController : public QObject |
|
44 { |
|
45 Q_OBJECT |
|
46 |
|
47 public: |
|
48 |
|
49 /** |
|
50 * constructor. |
|
51 */ |
|
52 VideoPlaybackControlsController( VideoPlaybackViewFileDetails *details ); |
|
53 |
|
54 /** |
|
55 * Destructor. |
|
56 */ |
|
57 virtual ~VideoPlaybackControlsController(); |
|
58 |
|
59 public: |
|
60 /** |
|
61 * Return file details |
|
62 */ |
|
63 inline VideoPlaybackViewFileDetails* fileDetails(); |
|
64 |
|
65 VideoPlaybackDocumentLoader* layoutLoader(); |
|
66 |
|
67 public: |
|
68 /** |
|
69 * Initialize controller |
|
70 */ |
|
71 void initializeController(); |
|
72 |
|
73 bool shouldShowRNLogo(); |
|
74 |
|
75 public: |
|
76 VideoPlaybackViewFileDetails *mFileDetails; |
|
77 |
|
78 VideoPlaybackControlConfiguration *mControlsConfig; |
|
79 |
|
80 VideoPlaybackDocumentLoader *mLoader; |
|
81 }; |
|
82 |
|
83 // ------------------------------------------------------------------------------------------------- |
|
84 // VideoPlaybackControlsController::fileDetails |
|
85 // ------------------------------------------------------------------------------------------------- |
|
86 // |
|
87 inline |
|
88 VideoPlaybackViewFileDetails* VideoPlaybackControlsController::fileDetails() |
|
89 { |
|
90 return mFileDetails; |
|
91 } |
|
92 |
|
93 #endif /*MPXVIDEOPLAYBACKCONTROLSCONTROLLER_P_H_*/ |
|
94 |
|
95 // End of File |