|
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: 5 % |
|
19 |
|
20 |
|
21 |
|
22 // INCLUDE FILES |
|
23 |
|
24 #include "../inc/videoplaybackdocumentloader.h" |
|
25 #include "../inc/videoplaybackviewfiledetails.h" |
|
26 #include "../inc/videoplaybackcontrolscontroller.h" |
|
27 |
|
28 #include "videoplaybackcontrolconfiguration.h" |
|
29 |
|
30 |
|
31 // ================= MEMBER FUNCTIONS ============================================================== |
|
32 |
|
33 // ------------------------------------------------------------------------------------------------- |
|
34 // VideoPlaybackControlsController::VideoPlaybackControlsController() |
|
35 // ------------------------------------------------------------------------------------------------- |
|
36 // |
|
37 VideoPlaybackControlsController::VideoPlaybackControlsController( |
|
38 VideoPlaybackViewFileDetails *details ) |
|
39 : mFileDetails( details ) |
|
40 { |
|
41 initializeController(); |
|
42 } |
|
43 |
|
44 // ------------------------------------------------------------------------------------------------- |
|
45 // VideoPlaybackControlsController::initializeController() |
|
46 // ------------------------------------------------------------------------------------------------- |
|
47 // |
|
48 void VideoPlaybackControlsController::initializeController() |
|
49 { |
|
50 mLoader = new VideoPlaybackDocumentLoader(); |
|
51 } |
|
52 |
|
53 // ------------------------------------------------------------------------------------------------- |
|
54 // VideoPlaybackControlsController::~VideoPlaybackControlsController |
|
55 // ------------------------------------------------------------------------------------------------- |
|
56 // |
|
57 VideoPlaybackControlsController::~VideoPlaybackControlsController() |
|
58 { |
|
59 MPX_DEBUG(_L("VideoPlaybackControlsController::~VideoPlaybackControlsController")); |
|
60 |
|
61 if ( mLoader ) |
|
62 { |
|
63 delete mLoader; |
|
64 mLoader = NULL; |
|
65 } |
|
66 } |
|
67 |
|
68 // ------------------------------------------------------------------------------------------------- |
|
69 // VideoPlaybackControlsController::layoutLoader |
|
70 // ------------------------------------------------------------------------------------------------- |
|
71 // |
|
72 VideoPlaybackDocumentLoader* VideoPlaybackControlsController::layoutLoader() |
|
73 { |
|
74 return mLoader; |
|
75 } |
|
76 |
|
77 // ------------------------------------------------------------------------------------------------- |
|
78 // VideoPlaybackControlsController::shouldShowRNLogo |
|
79 // ------------------------------------------------------------------------------------------------- |
|
80 // |
|
81 bool VideoPlaybackControlsController::shouldShowRNLogo() |
|
82 { |
|
83 return mFileDetails->mRNFormat ; |
|
84 } |
|
85 |
|
86 // End of File |