19 |
19 |
20 #include "cunsoliciteddatareq.h" |
20 #include "cunsoliciteddatareq.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 "cunsoliciteddatareqTraces.h" |
|
27 #endif |
24 |
28 |
25 CUnsolicitedDataReq::CUnsolicitedDataReq( RModemAtController* aClient, TDes8& aResponse ) : |
29 CUnsolicitedDataReq::CUnsolicitedDataReq( RModemAtController* aClient, TDes8& aResponse ) : |
26 CActive(EPriorityNormal), |
30 CActive(EPriorityNormal), |
27 iClient(aClient), |
31 iClient(aClient), |
28 iResponse(aResponse) |
32 iResponse(aResponse) |
29 { |
33 { |
|
34 OstTrace1( TRACE_NORMAL, CUNSOLICITEDDATAREQ_CUNSOLICITEDDATAREQ, "CUnsolicitedDataReq::CUnsolicitedDataReq;aClient=%x", aClient ); |
30 C_TRACE((_L("CUnsolicitedDataReq::CUnsolicitedDataReq(aClient: 0x%x this: 0x%x)"), aClient, this)); |
35 C_TRACE((_L("CUnsolicitedDataReq::CUnsolicitedDataReq(aClient: 0x%x this: 0x%x)"), aClient, this)); |
31 CActiveScheduler::Add( this ); |
36 CActiveScheduler::Add( this ); |
32 aClient->SendReceiveUnsolicitedResult(aResponse,iStatus); |
37 aClient->SendReceiveUnsolicitedResult(aResponse,iStatus); |
33 SetActive(); |
38 SetActive(); |
34 } |
39 } |
35 |
40 |
36 CUnsolicitedDataReq::~CUnsolicitedDataReq() |
41 CUnsolicitedDataReq::~CUnsolicitedDataReq() |
37 { |
42 { |
|
43 OstTrace0( TRACE_NORMAL, DUP1_CUNSOLICITEDDATAREQ_CUNSOLICITEDDATAREQ, "CUnsolicitedDataReq::~CUnsolicitedDataReq" ); |
38 C_TRACE((_L("CUnsolicitedDataReq::~CUnsolicitedDataReq()"))); |
44 C_TRACE((_L("CUnsolicitedDataReq::~CUnsolicitedDataReq()"))); |
39 Cancel(); |
45 Cancel(); |
40 } |
46 } |
41 |
47 |
42 void CUnsolicitedDataReq::RunL() |
48 void CUnsolicitedDataReq::RunL() |
43 { |
49 { |
|
50 OstTrace0( TRACE_NORMAL, CUNSOLICITEDDATAREQ_RUNL, "CUnsolicitedDataReq::RunL" ); |
44 C_TRACE((_L("CUnsolicitedDataReq::RunL()"))); |
51 C_TRACE((_L("CUnsolicitedDataReq::RunL()"))); |
45 if( iStatus.Int() == KErrNone ) |
52 if( iStatus.Int() == KErrNone ) |
46 { |
53 { |
|
54 OstTrace1( TRACE_NORMAL, DUP1_CUNSOLICITEDDATAREQ_RUNL, "iClient->UnsolicitedResultReceive;this=%x", this ); |
47 C_TRACE((_L("CUnsolicitedDataReq iClient->UnsolicitedResultReceive this: 0x%x"), this)); |
55 C_TRACE((_L("CUnsolicitedDataReq iClient->UnsolicitedResultReceive this: 0x%x"), this)); |
48 iClient->UnsolicitedResultReceived(iStatus.Int()); |
56 iClient->UnsolicitedResultReceived(iStatus.Int()); |
|
57 OstTrace1( TRACE_NORMAL, DUP2_CUNSOLICITEDDATAREQ_RUNL, "CUnsolicitedDataReq::RunL - starting again;iStatus.Int()=%d", iStatus.Int() ); |
49 C_TRACE((_L("CUnsolicitedDataReq RunL starting again %d"), iStatus.Int())); |
58 C_TRACE((_L("CUnsolicitedDataReq RunL starting again %d"), iStatus.Int())); |
50 iClient->SendReceiveUnsolicitedResult( iResponse, iStatus ); |
59 iClient->SendReceiveUnsolicitedResult( iResponse, iStatus ); |
51 SetActive(); |
60 SetActive(); |
52 } |
61 } |
53 else |
62 else |
54 { |
63 { |
|
64 OstTrace1( TRACE_NORMAL, DUP3_CUNSOLICITEDDATAREQ_RUNL, "CUnsolicitedDataReq::RunL - deleting instance;this=%x", this ); |
55 C_TRACE((_L("CUnsolicitedDataReq::RunL() deleting instance this: 0x%x"), this)); |
65 C_TRACE((_L("CUnsolicitedDataReq::RunL() deleting instance this: 0x%x"), this)); |
56 delete this; |
66 delete this; |
57 } |
67 } |
58 } |
68 } |
59 |
69 |
60 void CUnsolicitedDataReq::DoCancel() |
70 void CUnsolicitedDataReq::DoCancel() |
61 { |
71 { |
|
72 OstTrace0( TRACE_NORMAL, CUNSOLICITEDDATAREQ_DOCANCEL, "CUnsolicitedDataReq::DoCancel" ); |
62 C_TRACE((_L("CUnsolicitedDataReq::DoCancel"))); |
73 C_TRACE((_L("CUnsolicitedDataReq::DoCancel"))); |
63 iClient->SendReceiveUnsolicitedResulCancel(); |
74 iClient->SendReceiveUnsolicitedResulCancel(); |
64 } |
75 } |
65 |
76 |