equal
deleted
inserted
replaced
|
1 // Copyright (c) 1997-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 // |
|
15 |
|
16 #include "ATERROR.H" |
|
17 #include "ATWAIT.H" |
|
18 #include "NOTIFY.H" |
|
19 |
|
20 CATErrorHandler* CATErrorHandler::NewL(CPhoneGlobals* aPhoneGlobals,CATWaitForCall* aWaitForCall) |
|
21 { |
|
22 return new(ELeave) CATErrorHandler(aPhoneGlobals,aWaitForCall); |
|
23 } |
|
24 |
|
25 CATErrorHandler::CATErrorHandler(CPhoneGlobals* aPhoneGlobals,CATWaitForCall* aWaitForCall) |
|
26 : iWaitForCall(aWaitForCall), iPhoneGlobals(aPhoneGlobals) |
|
27 {} |
|
28 |
|
29 CATErrorHandler::~CATErrorHandler() |
|
30 {} |
|
31 |
|
32 void CATErrorHandler::CleanUp(TInt aError) |
|
33 // |
|
34 // Completes all notifications with the error. If there were no notifications, the error |
|
35 // remains until the next |
|
36 { |
|
37 iPhoneGlobals->iPhoneStatus.iMode = RPhone::EModeUnknown; |
|
38 iPhoneGlobals->iPhoneStatus.iDataAndFaxFlags = RPhone::KCapsUnknown; |
|
39 iPhoneGlobals->iPhoneStatus.iInitStatus = EPhoneNotInitialised; |
|
40 iPhoneGlobals->iNotificationStore->CompleteNotificationsWithError(aError); |
|
41 iWaitForCall->StartWait(); // re-start the RING expect string |
|
42 } |