telephonyserverplugins/simatktsy/utility/src/ttlv.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
--- a/telephonyserverplugins/simatktsy/utility/src/ttlv.cpp	Tue Aug 31 16:23:08 2010 +0300
+++ b/telephonyserverplugins/simatktsy/utility/src/ttlv.cpp	Wed Sep 01 12:40:21 2010 +0100
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -21,13 +21,8 @@
 
 
 //  Include Files  
-
-#include "OstTraceDefinitions.h"
-#ifdef OST_TRACE_COMPILER_IN_USE
-#include "ttlvTraces.h"
-#endif
-
 #include "TTlv.h"				    // Header of this class
+#include "tflogger.h"				// For logging
 
 //  External Data Structures  
 //    none
@@ -80,7 +75,7 @@
         TUint8 aTag 
         )
     {
-    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, TTLVBASE_BEGIN_1, "UTILITY: TTlvBase::Begin");
+    TFLOGSTRING("UTILITY: TTlvBase::Begin"); 
     iData.Zero();
     iData.Append( aTag );
     iData.Append( 0 );
@@ -96,7 +91,7 @@
         TUint8 aTag 
         )
     {
-    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, TTLVBASE_ADDTAG_1, "UTILITY: TTlvBase::AddTag");
+    TFLOGSTRING("UTILITY: TTlvBase::AddTag");
     iData.Append( aTag );           // tag
     iData.Append( 0 );              // length
     iLenIndex = iData.Length() - 1; // index to tag length
@@ -112,7 +107,7 @@
         TUint8 aValue  
         )
     {
-    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, TTLVBASE_ADDBYTE_1, "UTILITY: TTlvBase::AddByte");
+    TFLOGSTRING("UTILITY: TTlvBase::AddByte");
     iData.Append( aValue );
     iData[iLenIndex]++;
     }
@@ -127,7 +122,7 @@
         const TDesC8& aValue 
         )
     {
-    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, TTLVBASE_ADDDATA_1, "UTILITY: TTlvBase::AddData");
+    TFLOGSTRING("UTILITY: TTlvBase::AddData");
     iData.Append( aValue );
     iData[ iLenIndex ] = static_cast<TUint8>( iData[ iLenIndex ] + 
         aValue.Length() );
@@ -145,7 +140,7 @@
         // None
         )
     {
-    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, TTLVBASE_END_1, "UTILITY: TTlvBase::End");
+    TFLOGSTRING("UTILITY: TTlvBase::End");
     _LIT8( KLenTag, "\x81" );
 
     TInt i( 3 ); // Index to tag length
@@ -186,7 +181,7 @@
         // None
         )
     {
-    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_BORDER, TTLVBASE_GETDATAWITHOUTTOPLEVELTAG_1, "UTILITY: TTlvBase::GetDataWithoutTopLevelTag");
+    TFLOGSTRING("UTILITY: TTlvBase::GetDataWithoutTopLevelTag");
     _LIT8( KLenTag, "\x81" );
 
     TInt i( 1 ); // Index to tag length