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 QMPXVideoPlaybackDocumentLoader |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 14 % |
|
19 |
|
20 |
|
21 |
|
22 #include "mpxvideo_debug.h" |
|
23 #include "mpxvideoplaybackcontrolbar.h" |
|
24 #include "mpxvideoplaybackdocumentloader.h" |
|
25 #include "mpxvideoplaybackfiledetailswidget.h" |
|
26 #include "mpxvideoplaybackcontrolscontroller.h" |
|
27 #include "mpxvideoplaybackcontrolconfiguration.h" |
|
28 #include "mpxvideoplaybackdetailsplaybackwindow.h" |
|
29 |
|
30 // ------------------------------------------------------------------------------------------------- |
|
31 // QMPXVideoPlaybackDocumentLoader::QMPXVideoPlaybackDocumentLoader |
|
32 // ------------------------------------------------------------------------------------------------- |
|
33 // |
|
34 QMPXVideoPlaybackDocumentLoader::QMPXVideoPlaybackDocumentLoader( |
|
35 QMPXVideoPlaybackControlsController *controller ) |
|
36 { |
|
37 MPX_ENTER_EXIT(_L("QMPXVideoPlaybackDocumentLoader::QMPXVideoPlaybackDocumentLoader()")); |
|
38 |
|
39 mController = controller; |
|
40 } |
|
41 |
|
42 // ------------------------------------------------------------------------------------------------- |
|
43 // QMPXVideoPlaybackDocumentLoader::~QMPXVideoPlaybackDocumentLoader |
|
44 // ------------------------------------------------------------------------------------------------- |
|
45 // |
|
46 QMPXVideoPlaybackDocumentLoader::~QMPXVideoPlaybackDocumentLoader() |
|
47 { |
|
48 MPX_DEBUG(_L("QMPXVideoPlaybackDocumentLoader::~QMPXVideoPlaybackDocumentLoader") ); |
|
49 } |
|
50 |
|
51 // ------------------------------------------------------------------------------------------------- |
|
52 // QMPXVideoPlaybackDocumentLoader::createObject() |
|
53 // ------------------------------------------------------------------------------------------------- |
|
54 // |
|
55 QObject *QMPXVideoPlaybackDocumentLoader::createObject( const QString& type, const QString &name ) |
|
56 { |
|
57 MPX_ENTER_EXIT( |
|
58 _L("QMPXVideoPlaybackDocumentLoader::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 QMPXVideoPlaybackControlBar( mController ); |
|
66 object->setObjectName( name ); |
|
67 } |
|
68 else if ( name == "fileDetailsLayout" ) |
|
69 { |
|
70 object = new QMPXVideoPlaybackFileDetailsWidget( mController ); |
|
71 object->setObjectName( name ); |
|
72 } |
|
73 else if ( name == "detailsPlaybackWindow" ) |
|
74 { |
|
75 object = new QMPXVideoPlaybackDetailsPlaybackWindow( 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 |
|