|
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 VideoPlayerEngine |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: da1mmcf#5 % |
|
19 |
|
20 |
|
21 #include <qapplication> |
|
22 |
|
23 #include <hbinstance.h> |
|
24 #include <xqpluginloader.h> |
|
25 #include <xqplugininfo.h> |
|
26 #include <xqserviceutil.h> |
|
27 |
|
28 #include "videoplayerengine.h" |
|
29 #include "videoplaybackwrapper.h" |
|
30 #include "mpxvideo_debug.h" |
|
31 |
|
32 // ------------------------------------------------------------------------------------------------- |
|
33 // VideoPlayerEngine() |
|
34 // ------------------------------------------------------------------------------------------------- |
|
35 // |
|
36 VideoPlayerEngine::VideoPlayerEngine( bool isService ) |
|
37 : mIsService( isService ) |
|
38 , mEmbedded( false ) |
|
39 { |
|
40 MPX_DEBUG(_L("VideoPlayerEngine::VideoPlayerEngine()")); |
|
41 } |
|
42 |
|
43 // ------------------------------------------------------------------------------------------------- |
|
44 // ~VideoPlayerEngine() |
|
45 // ------------------------------------------------------------------------------------------------- |
|
46 // |
|
47 VideoPlayerEngine::~VideoPlayerEngine() |
|
48 { |
|
49 MPX_DEBUG(_L("VideoPlayerEngine::~VideoPlayerEngine()")); |
|
50 } |
|
51 |
|
52 // ------------------------------------------------------------------------------------------------- |
|
53 // initialize() |
|
54 // ------------------------------------------------------------------------------------------------- |
|
55 // |
|
56 void VideoPlayerEngine::initialize() |
|
57 { |
|
58 MPX_DEBUG(_L("VideoPlayerEngine::initialize()")); |
|
59 } |
|
60 |
|
61 // ------------------------------------------------------------------------------------------------- |
|
62 // handleCommand() |
|
63 // ------------------------------------------------------------------------------------------------- |
|
64 // |
|
65 void VideoPlayerEngine::handleCommand( int commandCode ) |
|
66 { |
|
67 MPX_DEBUG(_L("VideoPlayerEngine::initialize()")); |
|
68 Q_UNUSED( commandCode ); |
|
69 } |
|
70 |
|
71 |
|
72 // ------------------------------------------------------------------------------------------------- |
|
73 // handleQuit() |
|
74 // ------------------------------------------------------------------------------------------------- |
|
75 // |
|
76 void VideoPlayerEngine::handleQuit() |
|
77 { |
|
78 MPX_DEBUG(_L("VideoPlayerEngine::handleQuit()")); |
|
79 delete this; |
|
80 } |
|
81 |
|
82 |
|
83 // ------------------------------------------------------------------------------------------------- |
|
84 // playMedia() |
|
85 // ------------------------------------------------------------------------------------------------- |
|
86 // |
|
87 void VideoPlayerEngine::playMedia( QString filePath ) |
|
88 { |
|
89 MPX_DEBUG(_L("VideoPlayerEngine::playMedia()")); |
|
90 Q_UNUSED( filePath ); |
|
91 } |
|
92 |
|
93 // ------------------------------------------------------------------------------------------------- |
|
94 // setEmbedded() |
|
95 // ------------------------------------------------------------------------------------------------- |
|
96 // |
|
97 void VideoPlayerEngine::setEmbedded() |
|
98 { |
|
99 MPX_DEBUG(_L("VideoPlayerEngine::setEmbedded()")); |
|
100 mEmbedded = true; |
|
101 } |
|
102 |
|
103 // ------------------------------------------------------------------------------------------------- |
|
104 // playMedia() |
|
105 // ------------------------------------------------------------------------------------------------- |
|
106 // |
|
107 void VideoPlayerEngine::playMedia( RFile file ) |
|
108 { |
|
109 MPX_DEBUG(_L("VideoPlayerEngine::playMedia( file )")); |
|
110 Q_UNUSED( file ); |
|
111 } |
|
112 |
|
113 void VideoPlayerEngine::playURI( QString uri ) |
|
114 { |
|
115 MPX_DEBUG(_L("VideoPlayerEngine::playURI( uri )")); |
|
116 Q_UNUSED( uri ); |
|
117 } |
|
118 |
|
119 // End of file |