|
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 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: EAP and WLAN authentication protocols. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 // INCLUDE FILES |
|
20 #include <e32base.h> |
|
21 #include "eap_am_async_wait_symbian.h" |
|
22 |
|
23 // --------------------------------------------------------- |
|
24 // eap_am_async_wait_symbian_c::eap_am_async_wait_symbian_c() |
|
25 // --------------------------------------------------------- |
|
26 // |
|
27 eap_am_async_wait_symbian_c::eap_am_async_wait_symbian_c() : CActive(0) |
|
28 { |
|
29 CActiveScheduler::Add(this); |
|
30 } |
|
31 |
|
32 // --------------------------------------------------------- |
|
33 // eap_am_async_wait_symbian_c::~eap_am_async_wait_symbian_c() |
|
34 // --------------------------------------------------------- |
|
35 // |
|
36 eap_am_async_wait_symbian_c::~eap_am_async_wait_symbian_c() |
|
37 { |
|
38 Cancel() ; |
|
39 } |
|
40 |
|
41 // --------------------------------------------------------- |
|
42 // eap_am_async_wait_symbian_c::Wait() |
|
43 // --------------------------------------------------------- |
|
44 // |
|
45 void eap_am_async_wait_symbian_c::Wait() |
|
46 { |
|
47 SetActive(); |
|
48 iActiveWait.Start(); |
|
49 } |
|
50 |
|
51 // --------------------------------------------------------- |
|
52 // eap_am_async_wait_symbian_c::RunL() |
|
53 // --------------------------------------------------------- |
|
54 // |
|
55 void eap_am_async_wait_symbian_c::RunL() |
|
56 { |
|
57 iActiveWait.AsyncStop() ; |
|
58 } |
|
59 |
|
60 // --------------------------------------------------------- |
|
61 // eap_am_async_wait_symbian_c::DoCancel() |
|
62 // --------------------------------------------------------- |
|
63 // |
|
64 void eap_am_async_wait_symbian_c::DoCancel() |
|
65 { |
|
66 if( iStatus == KRequestPending ) |
|
67 { |
|
68 TRequestStatus * reqStat = &iStatus; |
|
69 User::RequestComplete(reqStat, KErrCancel); |
|
70 } |
|
71 } |
|
72 |
|
73 // End of File |