19 |
19 |
20 #include "csignalindreq.h" |
20 #include "csignalindreq.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 "csignalindreqTraces.h" |
|
27 #endif |
24 |
28 |
25 CSignalIndReq::CSignalIndReq( |
29 CSignalIndReq::CSignalIndReq( |
26 RModemAtController* aClient) : |
30 RModemAtController* aClient) : |
27 CActive(EPriorityNormal), |
31 CActive(EPriorityNormal), |
28 iClient(aClient) |
32 iClient(aClient) |
29 { |
33 { |
|
34 OstTrace1( TRACE_NORMAL, CSIGNALINDREQ_CSIGNALINDREQ, "CSignalIndReq::CSignalIndReq;aClient=%x", aClient ); |
30 C_TRACE((_L("CSignalIndReq::CSignalIndReq(0x%x)"), aClient)); |
35 C_TRACE((_L("CSignalIndReq::CSignalIndReq(0x%x)"), aClient)); |
31 CActiveScheduler::Add( this ); |
36 CActiveScheduler::Add( this ); |
32 aClient->SendReceiveSignalInd( iStatus ); |
37 aClient->SendReceiveSignalInd( iStatus ); |
33 SetActive(); |
38 SetActive(); |
34 } |
39 } |
35 |
40 |
36 CSignalIndReq::~CSignalIndReq() |
41 CSignalIndReq::~CSignalIndReq() |
37 { |
42 { |
|
43 OstTrace0( TRACE_NORMAL, DUP1_CSIGNALINDREQ_CSIGNALINDREQ, "CSignalIndReq::~CSignalIndReq" ); |
38 C_TRACE((_L("CSignalIndReq::~CSignalIndReq()"))); |
44 C_TRACE((_L("CSignalIndReq::~CSignalIndReq()"))); |
39 Cancel(); |
45 Cancel(); |
40 } |
46 } |
41 |
47 |
42 void CSignalIndReq::DoCancel() |
48 void CSignalIndReq::DoCancel() |
43 { |
49 { |
|
50 OstTrace0( TRACE_NORMAL, CSIGNALINDREQ_DOCANCEL, "CSignalIndReq::DoCancel" ); |
44 C_TRACE((_L("CSignalIndReq::DoCancel()"))); |
51 C_TRACE((_L("CSignalIndReq::DoCancel()"))); |
45 iClient->SendReceiveSignalIndCancel(); |
52 iClient->SendReceiveSignalIndCancel(); |
46 } |
53 } |
47 |
54 |
48 void CSignalIndReq::RunL() |
55 void CSignalIndReq::RunL() |
49 { |
56 { |
|
57 OstTrace0( TRACE_NORMAL, CSIGNALINDREQ_RUNL, "CSignalIndReq::RunL" ); |
50 C_TRACE((_L("CSignalIndReq::RunL()"))); |
58 C_TRACE((_L("CSignalIndReq::RunL()"))); |
51 if( iStatus.Int() == KErrNone ) |
59 if( iStatus.Int() == KErrNone || iStatus.Int() > 0 ) |
52 { |
60 { |
53 C_TRACE((_L("KErrNone %d"), iStatus.Int())); |
61 OstTrace1( TRACE_NORMAL, DUP1_CSIGNALINDREQ_RUNL, "CSignalIndReq::RunL - Completing with;iStatus.Int()=%d", iStatus.Int() ); |
|
62 C_TRACE((_L("Completing with %d"), iStatus.Int())); |
54 iClient->SignalIndReceived( iStatus.Int() ); |
63 iClient->SignalIndReceived( iStatus.Int() ); |
55 iClient->SendReceiveSignalInd( iStatus ); |
64 iClient->SendReceiveSignalInd( iStatus ); |
56 SetActive(); |
65 SetActive(); |
57 } |
66 } |
58 else |
67 else |
59 { |
68 { |
|
69 OstTrace1( TRACE_NORMAL, DUP2_CSIGNALINDREQ_RUNL, "CSignalIndReq::RunL - delete;iStatus.Int()=%d", iStatus.Int() ); |
60 C_TRACE((_L("CSignalIndReq RunL delete %d"), iStatus.Int())); |
70 C_TRACE((_L("CSignalIndReq RunL delete %d"), iStatus.Int())); |
61 delete this; |
71 delete this; |
62 } |
72 } |
63 } |
73 } |