adaptationlayer/modematadaptation/modematcontroller_dll/src/cunsoliciteddatareq.cpp
changeset 9 8486d82aef45
parent 0 63b37f68c1ce
--- a/adaptationlayer/modematadaptation/modematcontroller_dll/src/cunsoliciteddatareq.cpp	Wed Apr 21 14:29:55 2010 +0300
+++ b/adaptationlayer/modematadaptation/modematcontroller_dll/src/cunsoliciteddatareq.cpp	Tue Oct 19 13:16:20 2010 +0300
@@ -21,12 +21,17 @@
 #include "modemattrace.h"
 #include "modematclientsrv.h"
 #include "rmodematcontroller.h"
+#include "OstTraceDefinitions.h"
+#ifdef OST_TRACE_COMPILER_IN_USE
+#include "cunsoliciteddatareqTraces.h"
+#endif
 
 CUnsolicitedDataReq::CUnsolicitedDataReq( RModemAtController* aClient, TDes8& aResponse ) :
         CActive(EPriorityNormal),
         iClient(aClient),
         iResponse(aResponse)
     { 
+    OstTrace1( TRACE_NORMAL, CUNSOLICITEDDATAREQ_CUNSOLICITEDDATAREQ, "CUnsolicitedDataReq::CUnsolicitedDataReq;aClient=%x", aClient );
     C_TRACE((_L("CUnsolicitedDataReq::CUnsolicitedDataReq(aClient: 0x%x this: 0x%x)"), aClient, this));
     CActiveScheduler::Add( this );
     aClient->SendReceiveUnsolicitedResult(aResponse,iStatus);
@@ -35,23 +40,28 @@
 
 CUnsolicitedDataReq::~CUnsolicitedDataReq() 
     {    
+    OstTrace0( TRACE_NORMAL, DUP1_CUNSOLICITEDDATAREQ_CUNSOLICITEDDATAREQ, "CUnsolicitedDataReq::~CUnsolicitedDataReq" );
     C_TRACE((_L("CUnsolicitedDataReq::~CUnsolicitedDataReq()")));
     Cancel();
     }
 
 void CUnsolicitedDataReq::RunL() 
     {
+    OstTrace0( TRACE_NORMAL, CUNSOLICITEDDATAREQ_RUNL, "CUnsolicitedDataReq::RunL" );
     C_TRACE((_L("CUnsolicitedDataReq::RunL()")));
     if( iStatus.Int() == KErrNone ) 
         {
+        OstTrace1( TRACE_NORMAL, DUP1_CUNSOLICITEDDATAREQ_RUNL, "iClient->UnsolicitedResultReceive;this=%x", this );
         C_TRACE((_L("CUnsolicitedDataReq iClient->UnsolicitedResultReceive this: 0x%x"), this));
         iClient->UnsolicitedResultReceived(iStatus.Int());  
+        OstTrace1( TRACE_NORMAL, DUP2_CUNSOLICITEDDATAREQ_RUNL, "CUnsolicitedDataReq::RunL - starting again;iStatus.Int()=%d", iStatus.Int() );
         C_TRACE((_L("CUnsolicitedDataReq RunL starting again %d"), iStatus.Int()));
         iClient->SendReceiveUnsolicitedResult( iResponse, iStatus );
         SetActive();
         }
     else
         {
+        OstTrace1( TRACE_NORMAL, DUP3_CUNSOLICITEDDATAREQ_RUNL, "CUnsolicitedDataReq::RunL - deleting instance;this=%x", this );
         C_TRACE((_L("CUnsolicitedDataReq::RunL() deleting instance this: 0x%x"), this));
         delete this;
         }
@@ -59,6 +69,7 @@
 
 void CUnsolicitedDataReq::DoCancel() 
     {
+    OstTrace0( TRACE_NORMAL, CUNSOLICITEDDATAREQ_DOCANCEL, "CUnsolicitedDataReq::DoCancel" );
     C_TRACE((_L("CUnsolicitedDataReq::DoCancel")));
     iClient->SendReceiveUnsolicitedResulCancel();
     }