44
|
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: Stub-implementation of VideoPlaybackWrapper
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
50
|
18 |
// Version : %version: da1mmcf#10 %
|
44
|
19 |
|
|
20 |
|
|
21 |
#include "videoplaybackwrapper.h"
|
|
22 |
#include "mpxvideo_debug.h"
|
|
23 |
|
|
24 |
int mCount = 0;
|
|
25 |
|
|
26 |
VideoPlaybackWrapper::VideoPlaybackWrapper()
|
|
27 |
{
|
|
28 |
MPX_DEBUG(_L("VideoPlaybackWrapper::VideoPlaybackWrapper()"));
|
|
29 |
VideoPlaybackWrapper::Increment();
|
|
30 |
}
|
|
31 |
|
|
32 |
VideoPlaybackWrapper::~VideoPlaybackWrapper()
|
|
33 |
{
|
|
34 |
MPX_DEBUG(_L("VideoPlaybackWrapper::~VideoPlaybackWrapper()"));
|
|
35 |
VideoPlaybackWrapper::Decrement();
|
|
36 |
}
|
|
37 |
|
|
38 |
void VideoPlaybackWrapper::openPlaybackView()
|
|
39 |
{
|
|
40 |
MPX_DEBUG(_L("VideoPlaybackWrapper::openPlaybackView()"));
|
|
41 |
emit handlePlaybackView( MpxHbVideoCommon::ActivatePlaybackView );
|
|
42 |
}
|
|
43 |
|
|
44 |
void VideoPlaybackWrapper::Increment()
|
|
45 |
{
|
|
46 |
MPX_DEBUG(_L("VideoPlaybackWrapper::Increment()"));
|
|
47 |
++mCount;
|
|
48 |
}
|
|
49 |
|
|
50 |
void VideoPlaybackWrapper::Decrement()
|
|
51 |
{
|
|
52 |
MPX_DEBUG(_L("VideoPlaybackWrapper::Decrement()"));
|
|
53 |
|
|
54 |
if ( mCount > 0 )
|
|
55 |
{
|
|
56 |
--mCount;
|
|
57 |
}
|
|
58 |
}
|
|
59 |
|
|
60 |
int VideoPlaybackWrapper::GetInstanceCount()
|
|
61 |
{
|
|
62 |
MPX_DEBUG(_L("VideoPlaybackWrapper::GetInstanceCount()"));
|
|
63 |
return mCount;
|
|
64 |
}
|
|
65 |
|
|
66 |
int VideoPlaybackWrapper::playMedia( QString aFileName )
|
|
67 |
{
|
|
68 |
MPX_DEBUG(_L("VideoPlaybackWrapper::playMedia( aFileName )"));
|
|
69 |
|
|
70 |
Q_UNUSED( aFileName );
|
|
71 |
return 0;
|
|
72 |
}
|
|
73 |
|
49
|
74 |
int VideoPlaybackWrapper::replayMedia( QString aFileName )
|
|
75 |
{
|
|
76 |
MPX_ENTER_EXIT(_L("VideoPlaybackWrapper::replayMedia"));
|
|
77 |
|
|
78 |
Q_UNUSED( aFileName );
|
|
79 |
return 0;
|
|
80 |
}
|
|
81 |
|
|
82 |
|
44
|
83 |
int VideoPlaybackWrapper::playMedia( RFile aFile )
|
|
84 |
{
|
|
85 |
MPX_DEBUG(_L("VideoPlaybackWrapper::playMedia( aFile )"));
|
|
86 |
|
|
87 |
Q_UNUSED( aFile );
|
|
88 |
return 0;
|
|
89 |
}
|
|
90 |
|
|
91 |
void VideoPlaybackWrapper::lateInit()
|
|
92 |
{
|
|
93 |
MPX_DEBUG(_L("VideoPlaybackWrapper::lateInit()"));
|
|
94 |
}
|
|
95 |
|
50
|
96 |
const QString VideoPlaybackWrapper::resloveErrorString( int errorCode )
|
|
97 |
{
|
|
98 |
MPX_ENTER_EXIT(_L("VideoPlaybackWrapper::resloveErrorString()"));
|
|
99 |
|
|
100 |
Q_UNUSED( errorCode );
|
|
101 |
|
|
102 |
const QString string("No Supported");
|
|
103 |
|
|
104 |
return string;
|
|
105 |
|
|
106 |
}
|
|
107 |
|
|
108 |
int VideoPlaybackWrapper::playURI( QString aUri )
|
|
109 |
{
|
|
110 |
MPX_ENTER_EXIT(_L("QMpxVideoPlaybackWrapper::playURI"));
|
|
111 |
|
|
112 |
Q_UNUSED( aUri );
|
|
113 |
|
|
114 |
return 0;
|
|
115 |
}
|
|
116 |
|
44
|
117 |
// End of File
|