|
1 /* |
|
2 * Copyright (c) 2008 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: Data sink proxy implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 #include "mvtprotocolhandler.h" |
|
19 #include "cdatasinkproxy.h" |
|
20 |
|
21 #ifdef _DEBUG |
|
22 # define __IF_DEBUG(t) {RDebug::t;} |
|
23 #else |
|
24 # define __IF_DEBUG(t) |
|
25 #endif |
|
26 |
|
27 // ----------------------------------------------------------------------------- |
|
28 // CDisplaySinkProxy::CDisplaySinkProxy |
|
29 // Constructor. |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 CDisplaySinkProxy::CDisplaySinkProxy(MVTVideoSink* aDisplaySink) : iDisplaySink(aDisplaySink) |
|
33 { |
|
34 __IF_DEBUG(Print( _L( "VTProto: CDisplaySinkProxy::CDisplaySinkProxy<" ) )); |
|
35 __IF_DEBUG(Print( _L( "VTProto: CDisplaySinkProxy::CDisplaySinkProxy iDisplaySink %d>" ), iDisplaySink)); |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CDisplaySinkProxy::ConstructL |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 void CDisplaySinkProxy::ConstructL() |
|
43 { |
|
44 __IF_DEBUG(Print( _L( "VTProto: CDisplaySinkProxy::ConstructL<" ) )); |
|
45 __IF_DEBUG(Print( _L( "VTProto: CDisplaySinkProxy::ConstructL>" ) )); |
|
46 } |
|
47 |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // CDisplaySinkProxy::NewL |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CDisplaySinkProxy* CDisplaySinkProxy::NewL(MVTVideoSink* aDisplaySink) |
|
54 { |
|
55 __IF_DEBUG(Print( _L( "VTProto: CDisplaySinkProxy::NewL<" ) )); |
|
56 CDisplaySinkProxy* self = new (ELeave)CDisplaySinkProxy(aDisplaySink); |
|
57 CleanupStack::PushL(self); |
|
58 self->ConstructL(); |
|
59 CleanupStack::Pop(); |
|
60 __IF_DEBUG(Print( _L( "VTProto: CDisplaySinkProxy::NewL>" ) )); |
|
61 return self; |
|
62 } |
|
63 // End of File |