0
|
1 |
/*
|
|
2 |
* Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
|
|
3 |
* All rights reserved.
|
|
4 |
* This component and the accompanying materials are made available
|
|
5 |
* under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
* which accompanies this distribution, and is available
|
|
7 |
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
*
|
|
9 |
* Initial Contributors:
|
|
10 |
* Nokia Corporation - initial contribution.
|
|
11 |
*
|
|
12 |
* Contributors:
|
|
13 |
*
|
|
14 |
* Description:
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
#include "csignalindreq.h"
|
|
21 |
#include "modemattrace.h"
|
|
22 |
#include "modematclientsrv.h"
|
|
23 |
#include "rmodematcontroller.h"
|
9
|
24 |
#include "OstTraceDefinitions.h"
|
|
25 |
#ifdef OST_TRACE_COMPILER_IN_USE
|
|
26 |
#include "csignalindreqTraces.h"
|
|
27 |
#endif
|
0
|
28 |
|
|
29 |
CSignalIndReq::CSignalIndReq(
|
|
30 |
RModemAtController* aClient) :
|
|
31 |
CActive(EPriorityNormal),
|
|
32 |
iClient(aClient)
|
|
33 |
{
|
9
|
34 |
OstTrace1( TRACE_NORMAL, CSIGNALINDREQ_CSIGNALINDREQ, "CSignalIndReq::CSignalIndReq;aClient=%x", aClient );
|
0
|
35 |
C_TRACE((_L("CSignalIndReq::CSignalIndReq(0x%x)"), aClient));
|
|
36 |
CActiveScheduler::Add( this );
|
|
37 |
aClient->SendReceiveSignalInd( iStatus );
|
|
38 |
SetActive();
|
|
39 |
}
|
|
40 |
|
|
41 |
CSignalIndReq::~CSignalIndReq()
|
|
42 |
{
|
9
|
43 |
OstTrace0( TRACE_NORMAL, DUP1_CSIGNALINDREQ_CSIGNALINDREQ, "CSignalIndReq::~CSignalIndReq" );
|
0
|
44 |
C_TRACE((_L("CSignalIndReq::~CSignalIndReq()")));
|
|
45 |
Cancel();
|
|
46 |
}
|
|
47 |
|
|
48 |
void CSignalIndReq::DoCancel()
|
|
49 |
{
|
9
|
50 |
OstTrace0( TRACE_NORMAL, CSIGNALINDREQ_DOCANCEL, "CSignalIndReq::DoCancel" );
|
0
|
51 |
C_TRACE((_L("CSignalIndReq::DoCancel()")));
|
|
52 |
iClient->SendReceiveSignalIndCancel();
|
|
53 |
}
|
|
54 |
|
|
55 |
void CSignalIndReq::RunL()
|
|
56 |
{
|
9
|
57 |
OstTrace0( TRACE_NORMAL, CSIGNALINDREQ_RUNL, "CSignalIndReq::RunL" );
|
0
|
58 |
C_TRACE((_L("CSignalIndReq::RunL()")));
|
9
|
59 |
if( iStatus.Int() == KErrNone || iStatus.Int() > 0 )
|
0
|
60 |
{
|
9
|
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()));
|
0
|
63 |
iClient->SignalIndReceived( iStatus.Int() );
|
|
64 |
iClient->SendReceiveSignalInd( iStatus );
|
|
65 |
SetActive();
|
|
66 |
}
|
9
|
67 |
else
|
0
|
68 |
{
|
9
|
69 |
OstTrace1( TRACE_NORMAL, DUP2_CSIGNALINDREQ_RUNL, "CSignalIndReq::RunL - delete;iStatus.Int()=%d", iStatus.Int() );
|
0
|
70 |
C_TRACE((_L("CSignalIndReq RunL delete %d"), iStatus.Int()));
|
|
71 |
delete this;
|
|
72 |
}
|
|
73 |
}
|