|
1 /* |
|
2 * Copyright (c) 2001-2006 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 |
|
20 |
|
21 #if !defined(_EAP_TYPE_SELECTION_H_) |
|
22 #define _EAP_TYPE_SELECTION_H_ |
|
23 |
|
24 #include "eap_am_assert.h" |
|
25 #include "eap_variable_data.h" |
|
26 #include "eap_header.h" |
|
27 |
|
28 //-------------------------------------------------- |
|
29 |
|
30 class abs_eap_am_tools_c; |
|
31 |
|
32 |
|
33 /// eap_type_selection_c class stores infofmation of one supported EAP-type. |
|
34 class EAP_EXPORT eap_type_selection_c |
|
35 { |
|
36 private: |
|
37 //-------------------------------------------------- |
|
38 |
|
39 /// This is pointer to the tools class. |
|
40 abs_eap_am_tools_c * const m_am_tools; |
|
41 |
|
42 const eap_type_value_e m_type; |
|
43 |
|
44 const bool m_is_enabled; |
|
45 |
|
46 bool m_is_valid; |
|
47 |
|
48 //-------------------------------------------------- |
|
49 |
|
50 //-------------------------------------------------- |
|
51 public: |
|
52 //-------------------------------------------------- |
|
53 |
|
54 /** |
|
55 * The destructor of the eap_type_selection_c class does nothing special. |
|
56 */ |
|
57 EAP_FUNC_IMPORT virtual ~eap_type_selection_c(); |
|
58 |
|
59 /** |
|
60 */ |
|
61 EAP_FUNC_IMPORT eap_type_selection_c( |
|
62 abs_eap_am_tools_c * const tools, |
|
63 const eap_type_value_e type, |
|
64 const bool is_enabled); |
|
65 |
|
66 /** |
|
67 * The get_type() function returns EAP-type. |
|
68 */ |
|
69 EAP_FUNC_IMPORT eap_type_value_e get_type() const; |
|
70 |
|
71 /** |
|
72 * The get_is_enabled() function returns true when EAP-type is enabled. |
|
73 */ |
|
74 EAP_FUNC_IMPORT bool get_is_enabled() const; |
|
75 |
|
76 /** |
|
77 * The copy() function copies the eap_type_selection_c object and data. |
|
78 */ |
|
79 EAP_FUNC_IMPORT eap_type_selection_c * copy() const; |
|
80 |
|
81 /** |
|
82 * The get_is_valid() function returns the status of the object. |
|
83 * @return True indicates the object is initialized. |
|
84 */ |
|
85 EAP_FUNC_IMPORT bool get_is_valid() const; |
|
86 |
|
87 /** |
|
88 * The get_is_valid_data() function returns the status of the |
|
89 * data included in eap_type_selection_c object. |
|
90 * @return True indicates the object includes valid data. |
|
91 */ |
|
92 EAP_FUNC_IMPORT bool get_is_valid_data() const; |
|
93 |
|
94 }; // class eap_type_selection_c |
|
95 |
|
96 |
|
97 #endif //#if !defined(_EAP_TYPE_SELECTION_H_) |
|
98 |
|
99 //-------------------------------------------------- |
|
100 |
|
101 |
|
102 // End. |