supl/locationomasuplprotocolhandler/waplistener/src/epos_comasupltrace.cpp
changeset 0 667063e416a2
equal deleted inserted replaced
-1:000000000000 0:667063e416a2
       
     1 /*
       
     2 * Copyright (c) 2005 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:  Contains tracing functionality
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #include "epos_csupltrace.h"
       
    20 #include "epos_comasupltrace.h"
       
    21 
       
    22 COMASuplTrace* COMASuplTrace::NewL()
       
    23 {
       
    24 	 COMASuplTrace* self =  new ( ELeave ) COMASuplTrace();
       
    25 	 CleanupStack::PushL( self );
       
    26 	 self->ConstructL();
       
    27 	 CleanupStack::Pop(self);
       
    28 	 return self;
       
    29 }
       
    30 
       
    31 void COMASuplTrace::ConstructL()
       
    32 {
       
    33 	iTrace = CSuplTrace::NewL();
       
    34 }
       
    35 void COMASuplTrace::Trace(const TDesC& aDescription,const TDesC& aFilename,
       
    36               			  const TInt aLineNumber)
       
    37 {	
       
    38     TRAP_IGNORE(iTrace->TraceL(aDescription, aFilename, aLineNumber));
       
    39 }
       
    40 
       
    41 COMASuplTrace::~COMASuplTrace()
       
    42 {
       
    43 	delete iTrace;
       
    44 }