eapol/eapol_framework/eapol_symbian/am/type/mschapv2/symbian/plugin/inc/EapMsChapV2.h
equal
deleted
inserted
replaced
14 * Description: EAP and WLAN authentication protocols. |
14 * Description: EAP and WLAN authentication protocols. |
15 * |
15 * |
16 */ |
16 */ |
17 |
17 |
18 /* |
18 /* |
19 * %version: 11.1.2 % |
19 * %version: 19 % |
20 */ |
20 */ |
21 |
21 |
22 #ifndef _EAPMSCHAPV2_H_ |
22 #ifndef _EAPMSCHAPV2_H_ |
23 #define _EAPMSCHAPV2_H_ |
23 #define _EAPMSCHAPV2_H_ |
24 |
24 |
25 // INCLUDES |
25 // INCLUDES |
26 #include <EapType.h> |
26 #include <EapTypePlugin.h> |
27 #include "eap_header.h" |
27 #include "eap_header.h" |
28 |
28 |
29 // LOCAL CONSTANTS |
29 // LOCAL CONSTANTS |
30 |
30 |
31 // CLASS DECLARATION |
31 // CLASS DECLARATION |
32 /** |
32 /** |
33 * Class that implements the generic EAP type interface. Implements EAP MSCHAPv2 and |
33 * Class that implements the generic EAP type interface. Implements EAP MSCHAPv2 and |
34 * plain MSCHAPv2 protocol. |
34 * plain MSCHAPv2 protocol. |
35 */ |
35 */ |
36 class CEapMsChapV2 : public CEapType |
36 class CEapMsChapV2 : public CEapTypePlugin |
37 { |
37 { |
38 public: |
38 public: |
39 /** |
39 /** |
40 * Construction function. Called by ECom after the EAP MSCHAPv2 plugin has been loaded. |
40 * Construction function. Called by ECom after the EAP MSCHAPv2 plugin has been loaded. |
41 * @param aIapInfo Pointer to the class that contains information about bearer type and unique index. |
41 * @param aIapInfo Pointer to the class that contains information about bearer type and unique index. |
91 const bool is_client_when_true, |
91 const bool is_client_when_true, |
92 const eap_am_network_id_c * const receive_network_id); |
92 const eap_am_network_id_c * const receive_network_id); |
93 |
93 |
94 #endif // #ifdef USE_EAP_SIMPLE_CONFIG |
94 #endif // #ifdef USE_EAP_SIMPLE_CONFIG |
95 |
95 |
96 /** |
96 |
97 * Invokes the configuration UI. |
|
98 **/ |
|
99 TInt InvokeUiL(); |
|
100 |
97 |
101 /** |
98 /** |
102 * Gets information about EAP type. |
99 * Gets information about EAP type. |
103 * @return Pointer to a class that contains the EAP type information. Also pushed to cleanup stack. |
100 * @return Pointer to a class that contains the EAP type information. Also pushed to cleanup stack. |
104 */ |
101 */ |
105 CEapTypeInfo* GetInfoLC(); |
102 CEapTypeInfo* GetInfoL(); |
106 |
103 |
107 /** |
104 /** |
108 * Deletes EAP type configuration |
105 * Deletes EAP type configuration |
109 */ |
106 */ |
110 void DeleteConfigurationL(); |
107 void DeleteConfigurationL(); |
122 /** |
119 /** |
123 * Sets the tunneling type. This is used to indicate that this type is run inside another |
120 * Sets the tunneling type. This is used to indicate that this type is run inside another |
124 * EAP type. |
121 * EAP type. |
125 * @param aTunnelingType Type number for the tunneling type |
122 * @param aTunnelingType Type number for the tunneling type |
126 */ |
123 */ |
127 void SetTunnelingType(const TInt aTunnelingType); |
124 void SetTunnelingType(const TEapExpandedType aTunnelingType); |
128 |
125 |
129 /** |
126 /** |
130 * Changes the index of the saved parameters. |
127 * Changes the index of the saved parameters. |
131 * @param aIndexType Indicates the bearer used for this connection. |
128 * @param aIndexType Indicates the bearer used for this connection. |
132 * @param aIndex Index for the connection. aIndexType and aIndex uniquely specify the connection. |
129 * @param aIndex Index for the connection. aIndexType and aIndex uniquely specify the connection. |
157 |
154 |
158 /** |
155 /** |
159 * Constructor initialises member variables. |
156 * Constructor initialises member variables. |
160 */ |
157 */ |
161 CEapMsChapV2(const TIndexType aIndexType, const TInt aIndex, |
158 CEapMsChapV2(const TIndexType aIndexType, const TInt aIndex, |
162 const eap_type_value_e aEapType = eap_type_mschapv2 ); |
159 const eap_type_value_e aEapType ); |
163 |
160 |
164 private: |
161 private: |
165 |
162 |
166 // Bearer type |
163 // Bearer type |
167 TIndexType iIndexType; |
164 TIndexType iIndexType; |