|
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 // This is enumeration of EAPOL source code. |
|
20 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
|
21 #undef EAP_FILE_NUMBER_ENUM |
|
22 #define EAP_FILE_NUMBER_ENUM 61 |
|
23 #undef EAP_FILE_NUMBER_DATE |
|
24 #define EAP_FILE_NUMBER_DATE 1127594498 |
|
25 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES) |
|
26 |
|
27 |
|
28 |
|
29 #include "eap_am_memory.h" |
|
30 #include "eap_type_selection.h" |
|
31 |
|
32 //-------------------------------------------------- |
|
33 |
|
34 EAP_FUNC_EXPORT eap_type_selection_c::~eap_type_selection_c() |
|
35 { |
|
36 } |
|
37 |
|
38 //-------------------------------------------------- |
|
39 |
|
40 EAP_FUNC_EXPORT eap_type_selection_c::eap_type_selection_c( |
|
41 abs_eap_am_tools_c * const tools, |
|
42 const eap_type_value_e type, |
|
43 const bool is_enabled) |
|
44 : m_am_tools(tools) |
|
45 , m_type(type) |
|
46 , m_is_enabled(is_enabled) |
|
47 , m_is_valid(true) |
|
48 { |
|
49 } |
|
50 |
|
51 //-------------------------------------------------- |
|
52 |
|
53 EAP_FUNC_EXPORT eap_type_value_e eap_type_selection_c::get_type() const |
|
54 { |
|
55 return m_type; |
|
56 } |
|
57 |
|
58 //-------------------------------------------------- |
|
59 |
|
60 EAP_FUNC_EXPORT bool eap_type_selection_c::get_is_enabled() const |
|
61 { |
|
62 return m_is_enabled; |
|
63 } |
|
64 |
|
65 //-------------------------------------------------- |
|
66 |
|
67 EAP_FUNC_EXPORT eap_type_selection_c * eap_type_selection_c::copy() const |
|
68 { |
|
69 eap_type_selection_c * const copy_object = new eap_type_selection_c( |
|
70 m_am_tools, |
|
71 m_type, |
|
72 m_is_enabled); |
|
73 |
|
74 return copy_object; |
|
75 } |
|
76 |
|
77 //-------------------------------------------------- |
|
78 |
|
79 EAP_FUNC_EXPORT bool eap_type_selection_c::get_is_valid() const |
|
80 { |
|
81 return m_is_valid; |
|
82 } |
|
83 |
|
84 //-------------------------------------------------- |
|
85 |
|
86 EAP_FUNC_EXPORT bool eap_type_selection_c::get_is_valid_data() const |
|
87 { |
|
88 return (m_type != eap_type_none); |
|
89 } |
|
90 |
|
91 //-------------------------------------------------- |
|
92 |
|
93 |
|
94 // End. |