|
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" |
|
24 |
|
25 CSignalIndReq::CSignalIndReq( |
|
26 RModemAtController* aClient) : |
|
27 CActive(EPriorityNormal), |
|
28 iClient(aClient) |
|
29 { |
|
30 C_TRACE((_L("CSignalIndReq::CSignalIndReq(0x%x)"), aClient)); |
|
31 CActiveScheduler::Add( this ); |
|
32 aClient->SendReceiveSignalInd( iStatus ); |
|
33 SetActive(); |
|
34 } |
|
35 |
|
36 CSignalIndReq::~CSignalIndReq() |
|
37 { |
|
38 C_TRACE((_L("CSignalIndReq::~CSignalIndReq()"))); |
|
39 Cancel(); |
|
40 } |
|
41 |
|
42 void CSignalIndReq::DoCancel() |
|
43 { |
|
44 C_TRACE((_L("CSignalIndReq::DoCancel()"))); |
|
45 iClient->SendReceiveSignalIndCancel(); |
|
46 } |
|
47 |
|
48 void CSignalIndReq::RunL() |
|
49 { |
|
50 C_TRACE((_L("CSignalIndReq::RunL()"))); |
|
51 if( iStatus.Int() == KErrNone ) |
|
52 { |
|
53 C_TRACE((_L("KErrNone %d"), iStatus.Int())); |
|
54 iClient->SignalIndReceived( iStatus.Int() ); |
|
55 iClient->SendReceiveSignalInd( iStatus ); |
|
56 SetActive(); |
|
57 } |
|
58 else |
|
59 { |
|
60 C_TRACE((_L("CSignalIndReq RunL delete %d"), iStatus.Int())); |
|
61 delete this; |
|
62 } |
|
63 } |