1 /* |
|
2 * Copyright (c) 2009-2010 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-plugin adaptation. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 16 % |
|
20 */ |
|
21 |
|
22 #if !defined(_EAP_AM_PLUGIN_SYMBIAN_H_) |
|
23 #define _EAP_AM_PLUGIN_SYMBIAN_H_ |
|
24 |
|
25 #include "eap_tools.h" |
|
26 #include "eap_status.h" |
|
27 #include "eap_am_export.h" |
|
28 #include "eap_expanded_type.h" |
|
29 #include "eap_array.h" |
|
30 #include "eap_database_reference_if.h" |
|
31 #include "eap_am_plugin.h" |
|
32 #include "eap_process_tlv_message_data.h" |
|
33 #include "eap_loaded_type.h" |
|
34 |
|
35 class eap_method_settings_c; |
|
36 class abs_eap_am_plugin_c; |
|
37 class CEapTypePlugin; |
|
38 |
|
39 /** @file */ |
|
40 |
|
41 /// This class is EAP-plugin adaptation. |
|
42 class EAP_EXPORT eap_am_plugin_symbian_c |
|
43 : public eap_am_plugin_c |
|
44 { |
|
45 |
|
46 private: |
|
47 |
|
48 // ---------------------------------------------------------------------- |
|
49 |
|
50 abs_eap_am_tools_c * const m_am_tools; |
|
51 |
|
52 abs_eap_am_plugin_c * m_partner; |
|
53 |
|
54 eap_array_c<eap_loaded_type_c> m_loaded_types; |
|
55 |
|
56 bool m_is_valid; |
|
57 |
|
58 bool m_shutdown_was_called; |
|
59 |
|
60 // ---------------------------------------------------------------------- |
|
61 |
|
62 eap_status_e error_complete( |
|
63 const eap_status_e completion_status, |
|
64 const eap_method_settings_c * const internal_settings, |
|
65 const eap_tlv_message_type_function_e completion_function); |
|
66 |
|
67 CEapTypePlugin * get_eap_type( |
|
68 const eap_type_value_e eap_type, |
|
69 u32_t index_type, |
|
70 u32_t index); |
|
71 |
|
72 // ---------------------------------------------------------------------- |
|
73 |
|
74 public: |
|
75 |
|
76 // ---------------------------------------------------------------------- |
|
77 |
|
78 eap_am_plugin_symbian_c( |
|
79 abs_eap_am_tools_c * const tools, |
|
80 abs_eap_am_plugin_c * const partner); |
|
81 |
|
82 virtual ~eap_am_plugin_symbian_c(); |
|
83 |
|
84 bool get_is_valid(); |
|
85 |
|
86 // This is documented in abs_eap_stack_interface_c::configure(). |
|
87 eap_status_e configure(); |
|
88 |
|
89 // This is documented in abs_eap_stack_interface_c::shutdown(). |
|
90 eap_status_e shutdown(); |
|
91 |
|
92 eap_status_e get_configuration(const eap_method_settings_c * const internal_settings); |
|
93 |
|
94 eap_status_e set_configuration(const eap_method_settings_c * const internal_settings); |
|
95 |
|
96 eap_status_e copy_configuration(const eap_method_settings_c * const internal_settings); |
|
97 |
|
98 eap_status_e delete_configuration(const eap_method_settings_c * const internal_settings); |
|
99 |
|
100 eap_status_e set_index(const eap_method_settings_c * const internal_settings); |
|
101 |
|
102 eap_status_e get_type_info(const eap_method_settings_c * const internal_settings); |
|
103 |
|
104 |
|
105 |
|
106 // ---------------------------------------------------------------------- |
|
107 }; |
|
108 |
|
109 #endif //#if !defined(_EAP_AM_PLUGIN_SYMBIAN_H_) |
|
110 |
|
111 |
|
112 //-------------------------------------------------- |
|
113 // End |
|