adaptationlayer/modematadaptation/modematcontroller_dll/src/catcommandreq.cpp
changeset 9 8486d82aef45
parent 0 63b37f68c1ce
equal deleted inserted replaced
8:6295dc2169f3 9:8486d82aef45
    19 
    19 
    20 #include "catcommandreq.h"
    20 #include "catcommandreq.h"
    21 #include "modemattrace.h"
    21 #include "modemattrace.h"
    22 #include "modematclientsrv.h"
    22 #include "modematclientsrv.h"
    23 #include "rmodematcontroller.h"
    23 #include "rmodematcontroller.h"
       
    24 #include "OstTraceDefinitions.h"
       
    25 #ifdef OST_TRACE_COMPILER_IN_USE
       
    26 #include "catcommandreqTraces.h"
       
    27 #endif
    24 
    28 
    25 CAtCommandReq::CAtCommandReq( RModemAtController* aClient,
    29 CAtCommandReq::CAtCommandReq( RModemAtController* aClient,
    26     const TDesC8& aCommand,
    30     const TDesC8& aCommand,
    27     TDes8& aResponse ) :
    31     TDes8& aResponse ) :
    28     CActive(EPriorityNormal),
    32     CActive(EPriorityNormal),
    29     iClient(aClient)
    33     iClient(aClient)
    30     {
    34     {
       
    35     OstTraceExt3( TRACE_NORMAL, CATCOMMANDREQ_CATCOMMANDREQ, "CAtCommandReq::CAtCommandReq;aClient=%p;aCommand=%p;aResponse=%p", aClient, &aCommand, &aResponse );
       
    36     OstTraceExt1( TRACE_NORMAL, DUP2_CATCOMMANDREQ_CATCOMMANDREQ, "CAtCommandReq::CAtCommandReq - ;aCommand=%s", aCommand );
    31     C_TRACE((_L("CAtCommandReq::CAtCommandReq(0x%x, 0x%x, 0x%x) "), aClient, &aCommand, &aResponse));
    37     C_TRACE((_L("CAtCommandReq::CAtCommandReq(0x%x, 0x%x, 0x%x) "), aClient, &aCommand, &aResponse));
    32     DUMP_MESSAGE( aCommand );
    38     DUMP_MESSAGE( aCommand );
    33     CActiveScheduler::Add( this );
    39     CActiveScheduler::Add( this );
    34     aClient->SendReceiveATCommand( aCommand, aResponse, iStatus);
    40     aClient->SendReceiveATCommand( aCommand, aResponse, iStatus);
    35     SetActive();
    41     SetActive();
    36     }
    42     }
    37 
    43 
    38 CAtCommandReq::~CAtCommandReq() 
    44 CAtCommandReq::~CAtCommandReq() 
    39     {
    45     {
       
    46     OstTrace0( TRACE_NORMAL, DUP1_CATCOMMANDREQ_CATCOMMANDREQ, "CAtCommandReq::~CAtCommandReq" );
    40     C_TRACE((_L("CAtCommandReq::~CAtCommandReq()")));
    47     C_TRACE((_L("CAtCommandReq::~CAtCommandReq()")));
    41     Cancel();
    48     Cancel();
    42     }
    49     }
    43  
    50  
    44  void CAtCommandReq::RunL() 
    51  void CAtCommandReq::RunL() 
    45     {
    52     {
    46     C_TRACE((_L("CAtCommandReq::RunL()")));
    53     OstTrace1( TRACE_NORMAL, CATCOMMANDREQ_RUNL, "CAtCommandReq::RunL() complete;iStatus.Int()=%d", iStatus.Int() );
       
    54     C_TRACE((_L("CAtCommandReq::RunL() complete: %d"), iStatus.Int()));
    47     iClient->ATCommandResponseReceived( iStatus.Int() );
    55     iClient->ATCommandResponseReceived( iStatus.Int() );
    48     delete this;
    56     delete this;
    49     }
    57     }
    50  
    58  
    51 void CAtCommandReq::DoCancel() 
    59 void CAtCommandReq::DoCancel() 
    52     {
    60     {
       
    61     OstTrace0( TRACE_NORMAL, CATCOMMANDREQ_DOCANCEL, "CAtCommandReq::DoCancel" );
    53     C_TRACE((_L("CAtCommandReq::DoCancel()")));
    62     C_TRACE((_L("CAtCommandReq::DoCancel()")));
    54     iClient->SendReceiveAtCommandCancel();
    63     iClient->SendReceiveAtCommandCancel();
    55     C_TRACE((_L("Status: %d"), iStatus.Int()));
    64     C_TRACE((_L("Status: %d"), iStatus.Int()));
    56     }
    65     }
    57 
    66