equal
deleted
inserted
replaced
|
1 // Copyright (c) 2001-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of the License "Symbian Foundation License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.symbianfoundation.org/legal/sfl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 |
|
17 |
|
18 // INCLUDE FILES |
|
19 #include "ctlbsclientlog.h" |
|
20 #include <bautils.h> |
|
21 |
|
22 // CONSTANTS |
|
23 |
|
24 // ================= MEMBER FUNCTIONS ======================= |
|
25 |
|
26 // C++ default constructor can NOT contain any code, that |
|
27 // might leave. |
|
28 // |
|
29 CT_LbsClientLog::CT_LbsClientLog() |
|
30 { |
|
31 } |
|
32 |
|
33 // EPOC default constructor can leave. |
|
34 void CT_LbsClientLog::ConstructL(CTestExecuteLogger& aLogger) |
|
35 { |
|
36 iLogger = aLogger; |
|
37 } |
|
38 |
|
39 // Two-phased constructor. |
|
40 EXPORT_C CT_LbsClientLog* CT_LbsClientLog::NewL(CTestExecuteLogger& aLogger) |
|
41 { |
|
42 CT_LbsClientLog* self = NewLC(aLogger); |
|
43 CleanupStack::Pop(); |
|
44 return self; |
|
45 } |
|
46 |
|
47 // Two-phased constructor. |
|
48 EXPORT_C CT_LbsClientLog* CT_LbsClientLog::NewLC(CTestExecuteLogger& aLogger) |
|
49 { |
|
50 CT_LbsClientLog* self = new (ELeave) CT_LbsClientLog; |
|
51 CleanupStack::PushL(self); |
|
52 self->ConstructL(aLogger); |
|
53 return self; |
|
54 } |
|
55 |
|
56 // Destructor |
|
57 CT_LbsClientLog::~CT_LbsClientLog() |
|
58 { |
|
59 } |
|
60 |
|
61 void CT_LbsClientLog::Put(const TDesC& aLine) |
|
62 { |
|
63 INFO_PRINTF1(aLine); |
|
64 } |
|
65 |
|
66 void CT_LbsClientLog::PutError(const TDesC& aLine) |
|
67 { |
|
68 ERR_PRINTF1(aLine); |
|
69 } |