|
1 /* |
|
2 * Copyright (c) 2005 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 #ifndef __EAPPLUGINCALLBACKINTERFACE_H__ |
|
20 #define __EAPPLUGINCALLBACKINTERFACE_H__ |
|
21 |
|
22 // INCLUDES |
|
23 |
|
24 // Enums |
|
25 enum TNotification |
|
26 { |
|
27 ESuccess, |
|
28 EFailure, |
|
29 ECancelled, |
|
30 EFailedCompletely, |
|
31 ELogoff, |
|
32 ENoResponse |
|
33 }; |
|
34 |
|
35 /** |
|
36 * Class: MAbsEapVpnInterface |
|
37 * |
|
38 * Description: This interface defines the callback functions required from the CEaplugin user |
|
39 */ |
|
40 class MAbsEapVpnInterface |
|
41 { |
|
42 public: |
|
43 /** |
|
44 * Function: EapOutbound |
|
45 * |
|
46 * Description: Callback function, which returns an outbound EAP message |
|
47 * |
|
48 */ |
|
49 virtual void EapOutboundL(HBufC8* aResponse) = 0; |
|
50 |
|
51 /** |
|
52 * Function: IdentityResponse |
|
53 * |
|
54 * Description: Callback function, which returns identity |
|
55 * |
|
56 */ |
|
57 virtual void EapIdentityResponseL(HBufC8* aIdentity) = 0; |
|
58 |
|
59 /** |
|
60 * Function: EapSharedKey |
|
61 * |
|
62 * Description: Callback function, which returns a shared key established during EAP session |
|
63 * |
|
64 */ |
|
65 virtual void EapSharedKeyL(HBufC8* aSharedKey) = 0; |
|
66 |
|
67 /** |
|
68 * Function: EapIndication |
|
69 * |
|
70 * Description: Callback function, which returns notifications |
|
71 * |
|
72 * @param aNotification numeric notification |
|
73 */ |
|
74 virtual void EapIndication(TNotification aNotification) = 0; |
|
75 }; |
|
76 #endif |