|
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 VideoPlaybackDocumentLoader |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 15 % |
|
19 |
|
20 |
|
21 |
|
22 #include "mpxvideo_debug.h" |
|
23 #include "videoplaybackcontrolbar.h" |
|
24 #include "videoplaybackdocumentloader.h" |
|
25 #include "videoplaybackfiledetailswidget.h" |
|
26 #include "videoplaybackcontrolscontroller.h" |
|
27 #include "videoplaybackcontrolconfiguration.h" |
|
28 #include "videoplaybackdetailsplaybackwindow.h" |
|
29 |
|
30 // ------------------------------------------------------------------------------------------------- |
|
31 // VideoPlaybackDocumentLoader::VideoPlaybackDocumentLoader |
|
32 // ------------------------------------------------------------------------------------------------- |
|
33 // |
|
34 VideoPlaybackDocumentLoader::VideoPlaybackDocumentLoader( |
|
35 VideoPlaybackControlsController *controller ) |
|
36 { |
|
37 MPX_ENTER_EXIT(_L("VideoPlaybackDocumentLoader::VideoPlaybackDocumentLoader()")); |
|
38 |
|
39 mController = controller; |
|
40 } |
|
41 |
|
42 // ------------------------------------------------------------------------------------------------- |
|
43 // VideoPlaybackDocumentLoader::~VideoPlaybackDocumentLoader |
|
44 // ------------------------------------------------------------------------------------------------- |
|
45 // |
|
46 VideoPlaybackDocumentLoader::~VideoPlaybackDocumentLoader() |
|
47 { |
|
48 MPX_DEBUG(_L("VideoPlaybackDocumentLoader::~VideoPlaybackDocumentLoader") ); |
|
49 } |
|
50 |
|
51 // ------------------------------------------------------------------------------------------------- |
|
52 // VideoPlaybackDocumentLoader::createObject() |
|
53 // ------------------------------------------------------------------------------------------------- |
|
54 // |
|
55 QObject *VideoPlaybackDocumentLoader::createObject( const QString& type, const QString &name ) |
|
56 { |
|
57 MPX_ENTER_EXIT( |
|
58 _L("VideoPlaybackDocumentLoader::createObject()"), |
|
59 _L("type = %s, name = %s"), type.data(), name.data() ); |
|
60 |
|
61 QObject *object = NULL; |
|
62 |
|
63 if ( name == "controlBarLayout" ) |
|
64 { |
|
65 object = new VideoPlaybackControlBar( mController ); |
|
66 object->setObjectName( name ); |
|
67 } |
|
68 else if ( name == "fileDetailsLayout" ) |
|
69 { |
|
70 object = new VideoPlaybackFileDetailsWidget( mController ); |
|
71 object->setObjectName( name ); |
|
72 } |
|
73 else if ( name == "detailsPlaybackWindow" ) |
|
74 { |
|
75 object = new VideoPlaybackDetailsPlaybackWindow( mController ); |
|
76 object->setObjectName( name ); |
|
77 } |
|
78 else |
|
79 { |
|
80 object = HbDocumentLoader::createObject( type, name ); |
|
81 } |
|
82 |
|
83 return object; |
|
84 } |
|
85 |
|
86 // End of file |