|
1 /* |
|
2 * Copyright (c) 2010 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 Video wrapper |
|
15 * |
|
16 */ |
|
17 |
|
18 // Version : %version: 4 % |
|
19 |
|
20 |
|
21 |
|
22 // Include Files |
|
23 |
|
24 #include "mpxvideo_debug.h" |
|
25 #include "mpxvideoviewwrapper.h" |
|
26 #include "videobaseplaybackview.h" |
|
27 #include "videoplaybackviewfiledetails.h" |
|
28 #include "mpxcommonvideoplaybackview.hrh" |
|
29 |
|
30 // Member Functions |
|
31 |
|
32 // ------------------------------------------------------------------------------------------------- |
|
33 // CMPXVideoViewWrapper::CMPXVideoViewWrapper() |
|
34 // ------------------------------------------------------------------------------------------------- |
|
35 // |
|
36 CMPXVideoViewWrapper::CMPXVideoViewWrapper( VideoBasePlaybackView* aView ) |
|
37 : mView( aView ) |
|
38 { |
|
39 } |
|
40 |
|
41 // ------------------------------------------------------------------------------------------------- |
|
42 // CMPXVideoViewWrapper::NewL() |
|
43 // ------------------------------------------------------------------------------------------------- |
|
44 // |
|
45 CMPXVideoViewWrapper* CMPXVideoViewWrapper::NewL( VideoBasePlaybackView* aView ) |
|
46 { |
|
47 MPX_ENTER_EXIT(_L("CMPXVideoViewWrapper::CMPXVideoViewWrapper()")); |
|
48 CMPXVideoViewWrapper* self = new (ELeave) CMPXVideoViewWrapper( aView ); |
|
49 |
|
50 CleanupStack::PushL( self ); |
|
51 self->ConstructL(); |
|
52 CleanupStack::Pop(); |
|
53 |
|
54 return self; |
|
55 } |
|
56 |
|
57 // ------------------------------------------------------------------------------------------------- |
|
58 // CMPXVideoViewWrapper::ConstructL() |
|
59 // ------------------------------------------------------------------------------------------------- |
|
60 // |
|
61 void CMPXVideoViewWrapper::ConstructL() |
|
62 { |
|
63 mMediaRequested = EFalse; |
|
64 } |
|
65 |
|
66 // ------------------------------------------------------------------------------------------------- |
|
67 // CMPXVideoViewWrapper::~CMPXVideoViewWrapper() |
|
68 // ------------------------------------------------------------------------------------------------- |
|
69 // |
|
70 CMPXVideoViewWrapper::~CMPXVideoViewWrapper() |
|
71 { |
|
72 MPX_DEBUG(_L("CMPXVideoViewWrapper::~CMPXVideoViewWrapper")); |
|
73 } |
|
74 |
|
75 |
|
76 // ------------------------------------------------------------------------------------------------- |
|
77 // CMPXVideoViewWrapper::HandleCommandL() |
|
78 // ------------------------------------------------------------------------------------------------- |
|
79 // |
|
80 void CMPXVideoViewWrapper::HandleCommandL( TInt aCommand ) |
|
81 { |
|
82 mCommandId = aCommand; |
|
83 } |
|
84 |
|
85 // ------------------------------------------------------------------------------------------------- |
|
86 // CMPXVideoViewWrapper::SetPropertyL() |
|
87 // ------------------------------------------------------------------------------------------------- |
|
88 // |
|
89 void CMPXVideoViewWrapper::SetPropertyL( TMPXPlaybackProperty aProperty, TInt aValue ) |
|
90 { |
|
91 mProperty = aProperty; |
|
92 Q_UNUSED( aValue ); |
|
93 } |
|
94 |
|
95 // ------------------------------------------------------------------------------------------------- |
|
96 // CMPXVideoViewWrapper::UpdateVideoRect() |
|
97 // ------------------------------------------------------------------------------------------------- |
|
98 // |
|
99 void CMPXVideoViewWrapper::UpdateVideoRect( |
|
100 TInt aX, TInt aY, TInt aWidth, TInt aHeight, TBool transitionEffect ) |
|
101 { |
|
102 Q_UNUSED( aX ); |
|
103 Q_UNUSED( aY ); |
|
104 Q_UNUSED( aWidth ); |
|
105 Q_UNUSED( aHeight ); |
|
106 Q_UNUSED( transitionEffect ); |
|
107 } |
|
108 |
|
109 |
|
110 // ------------------------------------------------------------------------------------------------- |
|
111 // CMPXVideoViewWrapper::IsResumingPlaybackAfterTermination() |
|
112 // ------------------------------------------------------------------------------------------------- |
|
113 // |
|
114 TBool CMPXVideoViewWrapper::IsResumingPlaybackAfterTermination() |
|
115 { |
|
116 return false; |
|
117 } |
|
118 |
|
119 |
|
120 |
|
121 // EOF |