|
1 // Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // Wait for first one incoming call |
|
15 |
|
16 //system include |
|
17 |
|
18 //user include |
|
19 #include "atring.h" |
|
20 #include "mslogger.h" |
|
21 |
|
22 //const define |
|
23 _LIT8(KLtsyIncomingExtCallIndication,"+CRING:*"); |
|
24 _LIT8(KLtsyIncomingCallIndication,"RING"); |
|
25 |
|
26 CATRing* CATRing::NewL(CGlobalPhonemanager& aGloblePhone, |
|
27 CCtsyDispatcherCallback& aCtsyDispatcherCallback) |
|
28 { |
|
29 LOGTEXT(_L8("[Ltsy CallControl] Starting CATRing::NewL()")); |
|
30 |
|
31 CATRing* self = CATRing::NewLC(aGloblePhone, aCtsyDispatcherCallback); |
|
32 CleanupStack::Pop(self); |
|
33 return self; |
|
34 } |
|
35 |
|
36 |
|
37 CATRing* CATRing::NewLC(CGlobalPhonemanager& aGloblePhone, |
|
38 CCtsyDispatcherCallback& aCtsyDispatcherCallback) |
|
39 { |
|
40 LOGTEXT(_L8("[Ltsy CallControl] Starting CATRing::NewLC()")); |
|
41 |
|
42 CATRing* self = new (ELeave) CATRing(aGloblePhone, aCtsyDispatcherCallback); |
|
43 CleanupStack::PushL(self); |
|
44 self->ConstructL(); |
|
45 return self; |
|
46 } |
|
47 |
|
48 CATRing::~CATRing() |
|
49 { |
|
50 } |
|
51 |
|
52 CATRing::CATRing(CGlobalPhonemanager& aGloblePhone, |
|
53 CCtsyDispatcherCallback& aCtsyDispatcherCallback) |
|
54 :CAtCommandBase(aGloblePhone, aCtsyDispatcherCallback) |
|
55 { |
|
56 LOGTEXT(_L8("[Ltsy CallControl] Starting CATRing::CATRing()")); |
|
57 |
|
58 iAtType = ELtsyAT_Call_RING; |
|
59 } |
|
60 |
|
61 void CATRing::ConstructL() |
|
62 { |
|
63 LOGTEXT(_L8("[Ltsy CallControl] Starting CATRing::ConstructL()")); |
|
64 |
|
65 CAtCommandBase::ConstructL(); //Not must |
|
66 RemoveAllExpectString(); |
|
67 AddExpectStringL(KLtsyIncomingCallIndication); |
|
68 AddExpectStringL(KLtsyIncomingExtCallIndication); |
|
69 } |
|
70 |
|
71 //End of file |