equal
deleted
inserted
replaced
|
1 /* |
|
2 * Copyright (c) 2008 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 "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 #include "endwaitao.h" |
|
20 #include <e32debug.h> |
|
21 #include "log.h" |
|
22 |
|
23 CEndWaitAO* CEndWaitAO::NewL() |
|
24 { |
|
25 DEBUG_PRINTF(_L8("CEndWaitAO::NewL")); |
|
26 CEndWaitAO* self = new(ELeave) CEndWaitAO(); |
|
27 return self; |
|
28 } |
|
29 |
|
30 CEndWaitAO::CEndWaitAO(): |
|
31 CAsyncOneShot(EPriorityHigh) |
|
32 { |
|
33 } |
|
34 |
|
35 CEndWaitAO::~CEndWaitAO() |
|
36 { |
|
37 DEBUG_PRINTF(_L8("CEndWaitAO::~CEndWaitAO")); |
|
38 Cancel(); |
|
39 } |
|
40 |
|
41 void CEndWaitAO::RunL() |
|
42 { |
|
43 DEBUG_PRINTF(_L8("CEndWaitAO::RunL")); |
|
44 CActiveScheduler::Stop(); |
|
45 } |
|
46 |
|
47 void CEndWaitAO::DoCancel() |
|
48 { |
|
49 DEBUG_PRINTF(_L8("CEndWaitAO::DoCancel")); |
|
50 TRequestStatus* status = &iStatus; |
|
51 User::RequestComplete(status, KErrCancel); |
|
52 } |