vtprotocolsstub/src/cdatasourceproxy.cpp
changeset 0 ed9695c8bcbe
equal deleted inserted replaced
-1:000000000000 0:ed9695c8bcbe
       
     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 source proxy implementation
       
    15 *
       
    16 */
       
    17 
       
    18 #include "mvtprotocolhandler.h"
       
    19 #include "cdatasourceproxy.h"
       
    20 
       
    21 #ifdef _DEBUG
       
    22 #    define __IF_DEBUG(t) {RDebug::t;}
       
    23 #else
       
    24 #    define __IF_DEBUG(t)
       
    25 #endif
       
    26 
       
    27 // -----------------------------------------------------------------------------
       
    28 // CVideoSourceProxy::CVideoSourceProxy
       
    29 // Constructor.
       
    30 // -----------------------------------------------------------------------------
       
    31 //
       
    32 CVideoSourceProxy::CVideoSourceProxy(MVTVideoSource* aDataSource) : iVideoSource(aDataSource) 
       
    33     {
       
    34     __IF_DEBUG(Print(_L("VTProto: CVideoSourceProxy::CVideoSourceProxy<")));
       
    35     __IF_DEBUG(Print(_L("VTProto: CVideoSourceProxy::CVideoSourceProxy iVideoSource %d>"), iVideoSource));	
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CVideoSourceProxy::ConstructL
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 void CVideoSourceProxy::ConstructL() 
       
    43     {
       
    44     __IF_DEBUG(Print(_L("VTProto: CVideoSourceProxy::ConstructL<")));
       
    45     __IF_DEBUG(Print(_L("VTProto: CVideoSourceProxy::ConstructL>")));	
       
    46     }
       
    47     
       
    48 // -----------------------------------------------------------------------------
       
    49 // CVideoSourceProxy::NewL
       
    50 // -----------------------------------------------------------------------------
       
    51 //
       
    52 CVideoSourceProxy* CVideoSourceProxy::NewL(MVTVideoSource* aDataSource) 
       
    53     {
       
    54     __IF_DEBUG(Print(_L("VTProto: CVideoSourceProxy::NewL<")));
       
    55     CVideoSourceProxy* self = new (ELeave)CVideoSourceProxy(aDataSource);
       
    56     CleanupStack::PushL(self);
       
    57     self->ConstructL();
       
    58     CleanupStack::Pop();
       
    59     __IF_DEBUG(Print(_L("VTProto: CVideoSourceProxy::NewL>")));  
       
    60     return self;
       
    61     }
       
    62 //  End of File