telephonyserverplugins/simatktsy/src/CSatNotifyDisplayText.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
--- a/telephonyserverplugins/simatktsy/src/CSatNotifyDisplayText.cpp	Thu Aug 19 11:03:36 2010 +0300
+++ b/telephonyserverplugins/simatktsy/src/CSatNotifyDisplayText.cpp	Tue Aug 31 16:23:08 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2005-2010 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"
@@ -20,6 +20,12 @@
 
 
 //INCLUDES
+
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "CSatNotifyDisplayTextTraces.h"
+#endif
+
 #include <satcs.h>                  // Etel SAT IPC definitions
 #include "CSatTsy.h"                // Tsy class header
 #include "CSatNotifyDisplayText.h"  // Class header
@@ -27,7 +33,6 @@
 #include "CBerTlv.h"                // Ber Tlv data handling
 #include "TTlv.h"					// TTlv class
 #include "CSatDataPackage.h"        // Parameter packing 
-#include "TfLogger.h"               // For TFLOGSTRING
 #include "TSatUtility.h"            // Utilities
 #include "CSatTsyReqHandleStore.h"  // Request handle class
 #include "cmmmessagemanagerbase.h"  // Message manager class for forwarding req.
@@ -43,13 +48,13 @@
         CSatNotificationsTsy* aNotificationsTsy 
         )  
     {
-    TFLOGSTRING("CSAT: CSatNotifyDisplayText::NewL");
+    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_NEWL_1, "CSAT: CSatNotifyDisplayText::NewL");
    	CSatNotifyDisplayText* const satNotifyDisplayText = 
         new ( ELeave ) CSatNotifyDisplayText( aNotificationsTsy );
     CleanupStack::PushL( satNotifyDisplayText );
     satNotifyDisplayText->ConstructL();
     CleanupStack::Pop( satNotifyDisplayText );
-    TFLOGSTRING("CSAT: CSatNotifyDisplayText::NewL, end of method");
+    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_NEWL_2, "CSAT: CSatNotifyDisplayText::NewL, end of method");
     return satNotifyDisplayText;
     }
 
@@ -60,7 +65,7 @@
 //  
 CSatNotifyDisplayText::~CSatNotifyDisplayText()
     {
-    TFLOGSTRING("CSAT: CSatNotifyDisplayText::~CSatNotifyDisplayText");
+    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_DTOR_1, "CSAT: CSatNotifyDisplayText::~CSatNotifyDisplayText");
     }
         
 // -----------------------------------------------------------------------------
@@ -86,7 +91,7 @@
         void
         )
 	{
-	TFLOGSTRING("CSAT: CSatNotifyDisplayText::ConstructL");
+	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_CONSTRUCTL_1, "CSAT: CSatNotifyDisplayText::ConstructL");
 	}
        	
 // -----------------------------------------------------------------------------
@@ -101,7 +106,7 @@
         const TDataPackage& aPackage 
         )
     {
-    TFLOGSTRING("CSAT: CSatNotifyDisplayText::Notify");
+    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_NOTIFY_1, "CSAT: CSatNotifyDisplayText::Notify");
     // Save data pointer to client side for completion
     iDisplayTextV2Pckg = reinterpret_cast<RSat::TDisplayTextV2Pckg*>( 
         aPackage.Des1n() );    
@@ -124,7 +129,7 @@
         const TTsyReqHandle aTsyReqHandle
         )
     {
-    TFLOGSTRING("CSAT: CSatNotifyDisplayText::CancelNotification");    
+    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_CANCELNOTIFICATION_1, "CSAT: CSatNotifyDisplayText::CancelNotification");
     // Reset the request handle
     TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore->
         ResetTsyReqHandle( CSatTsy::ESatNotifyDisplayTextPCmdReqType );
@@ -147,14 +152,13 @@
         TInt aErrorCode                  
         )
     {
-    TFLOGSTRING("CSAT: CSatNotifyDisplayText::CompleteNotifyL");
+    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_COMPLETENOTIFYL_1, "CSAT: CSatNotifyDisplayText::CompleteNotifyL");
     TInt ret( KErrNone );
 
     // Unpack parameters
     TPtrC8* data;
     aDataPackage->UnPackData( &data );
-    TFLOGSTRING2("CSAT: CSatNotifyDisplayText::CompleteNotifyL, dataLength: \
-        %d", data->Length());
+    OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_COMPLETENOTIFYL_2, "CSAT: CSatNotifyDisplayText::CompleteNotifyL, dataLength: %d", data->Length());
     // Reset req handle. Returns the deleted req handle
     TTsyReqHandle reqHandle = iNotificationsTsy->iSatReqHandleStore->
         ResetTsyReqHandle( 
@@ -247,8 +251,7 @@
                 // Return terminal response immediately.
                 else
                     {            
-                    TFLOGSTRING("CSAT: CSatNotifyDisplayText::CompleteNotifyL,\
-                        Text string empty");  
+                    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_COMPLETENOTIFYL_3, "CSAT: CSatNotifyDisplayText::CompleteNotifyL, Text string empty");
 					CreateTerminalRespL( pCmdNumber, 
 					    RSat::KCmdDataNotUnderstood, KNullDesC16 );
 					// Indicate Client that response was corrupted
@@ -257,8 +260,7 @@
                 }    
 			else
                 {
-                TFLOGSTRING("CSAT: CSatNotifyDisplayText::CompleteNotifyL,\
-                    Test string missing");
+                OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_COMPLETENOTIFYL_4, "CSAT: CSatNotifyDisplayText::CompleteNotifyL, Test string missing");
 	            CreateTerminalRespL( 
 					pCmdNumber, RSat::KErrorRequiredValuesMissing,  
 					KNullDesC16 );
@@ -285,8 +287,7 @@
         } // End of if ( CSatTsy::ESatReqHandleUnknown != reqHandle )
     else 
         {
-        TFLOGSTRING("CSAT: CSatNotifyDisplayText::CompleteNotifyL,\
-            Request not ongoing");
+        OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_COMPLETENOTIFYL_5, "CSAT: CSatNotifyDisplayText::CompleteNotifyL, Request not ongoing");
     	TBuf16<1> additionalInfo;
         // Request not on, returning response immediately
         additionalInfo.Append( RSat::KNoSpecificMeProblem );
@@ -306,7 +307,7 @@
         TDes8* aRsp  
         )
     {
-    TFLOGSTRING("CSAT: CSatNotifyDisplayText::TerminalResponseL");
+    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_TERMINALRESPONSEL_1, "CSAT: CSatNotifyDisplayText::TerminalResponseL");
 
     TInt ret( KErrNone );
     TBuf16<1> additionalInfo;
@@ -328,8 +329,7 @@
         && ( RSat::KCmdBeyondMeCapabilities != rspV1.iGeneralResult )
         )
         {
-        TFLOGSTRING("CSAT: CSatNotifyDisplayText::TerminalResponseL,\
-            Invalid General Result");
+        OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_TERMINALRESPONSEL_2, "CSAT: CSatNotifyDisplayText::TerminalResponseL, Invalid General Result");
         // Invalid general result
         ret = KErrCorrupt;
         }
@@ -344,8 +344,7 @@
 			}
         else
             {
-            TFLOGSTRING("CSAT: CSatNotifyDisplayText::TerminalResponseL,\
-                Invalid Additional Info");
+            OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_TERMINALRESPONSEL_3, "CSAT: CSatNotifyDisplayText::TerminalResponseL, Invalid Additional Info");
             // Invalid additional info field
             ret = KErrCorrupt;
             }
@@ -370,7 +369,7 @@
         const TDesC16& aAdditionalInfo
 		)
     {
-    TFLOGSTRING("CSAT: CSatNotifyDisplayText::CreateTerminalRespL");
+    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CSATNOTIFYDISPLAYTEXT_CREATETERMINALRESPL_1, "CSAT: CSatNotifyDisplayText::CreateTerminalRespL");
     TTlv tlvSpecificData;
     // Create General Result TLV here
     tlvSpecificData.AddTag( KTlvResultTag );