|
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 |
|
18 // Version : %version: da1mmcf#7 % |
|
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 |
|
74 int VideoPlaybackWrapper::playMedia( RFile aFile ) |
|
75 { |
|
76 MPX_DEBUG(_L("VideoPlaybackWrapper::playMedia( aFile )")); |
|
77 |
|
78 Q_UNUSED( aFile ); |
|
79 return 0; |
|
80 } |
|
81 |
|
82 void VideoPlaybackWrapper::lateInit() |
|
83 { |
|
84 MPX_DEBUG(_L("VideoPlaybackWrapper::lateInit()")); |
|
85 } |
|
86 |
|
87 // End of File |