equal
deleted
inserted
replaced
|
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_tiapiimpltrace.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 #ifdef _DEBUG |
|
40 // same to epocwind.out |
|
41 _LIT(KSuplTraceLogFormat , "OMASUPL::Protocolhandler: %S"); |
|
42 RDebug::Print(KSuplTraceLogFormat, &aDescription); |
|
43 #endif |
|
44 } |
|
45 |
|
46 COMASuplTrace::~COMASuplTrace() |
|
47 { |
|
48 delete iTrace; |
|
49 } |