26
|
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 |
/*
|
49
|
19 |
* %version: 23 %
|
26
|
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"
|
49
|
28 |
// Start: added by script change_export_macros.sh.
|
|
29 |
#if defined(EAP_NO_EXPORT_EAP_AM_PLUGIN_SYMBIAN_H)
|
|
30 |
#define EAP_CLASS_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H EAP_NONSHARABLE
|
|
31 |
#define EAP_FUNC_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H
|
|
32 |
#define EAP_C_FUNC_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H
|
|
33 |
#define EAP_FUNC_EXPORT_EAP_AM_PLUGIN_SYMBIAN_H
|
|
34 |
#define EAP_C_FUNC_EXPORT_EAP_AM_PLUGIN_SYMBIAN_H
|
|
35 |
#elif defined(EAP_EXPORT_EAP_AM_PLUGIN_SYMBIAN_H)
|
|
36 |
#define EAP_CLASS_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H EAP_EXPORT
|
|
37 |
#define EAP_FUNC_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H EAP_FUNC_EXPORT
|
|
38 |
#define EAP_C_FUNC_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H EAP_C_FUNC_EXPORT
|
|
39 |
#define EAP_FUNC_EXPORT_EAP_AM_PLUGIN_SYMBIAN_H EAP_FUNC_EXPORT
|
|
40 |
#define EAP_C_FUNC_EXPORT_EAP_AM_PLUGIN_SYMBIAN_H EAP_C_FUNC_EXPORT
|
|
41 |
#else
|
|
42 |
#define EAP_CLASS_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H EAP_IMPORT
|
|
43 |
#define EAP_FUNC_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H EAP_FUNC_IMPORT
|
|
44 |
#define EAP_C_FUNC_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H EAP_C_FUNC_IMPORT
|
|
45 |
#define EAP_FUNC_EXPORT_EAP_AM_PLUGIN_SYMBIAN_H
|
|
46 |
#define EAP_C_FUNC_EXPORT_EAP_AM_PLUGIN_SYMBIAN_H
|
|
47 |
#endif
|
|
48 |
// End: added by script change_export_macros.sh.
|
|
49 |
#if defined(USE_FAST_EAP_TYPE)
|
|
50 |
#include "AbsPacStoreInitializer.h"
|
|
51 |
#endif //#if defined(USE_FAST_EAP_TYPE)
|
26
|
52 |
#include "eap_expanded_type.h"
|
|
53 |
#include "eap_array.h"
|
|
54 |
#include "eap_database_reference_if.h"
|
|
55 |
#include "eap_am_plugin.h"
|
|
56 |
#include "eap_process_tlv_message_data.h"
|
|
57 |
#include "eap_loaded_type.h"
|
|
58 |
|
|
59 |
class eap_method_settings_c;
|
|
60 |
class abs_eap_am_plugin_c;
|
|
61 |
class CEapTypePlugin;
|
|
62 |
|
|
63 |
/** @file */
|
|
64 |
|
|
65 |
/// This class is EAP-plugin adaptation.
|
49
|
66 |
class EAP_CLASS_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H eap_am_plugin_symbian_c
|
26
|
67 |
: public eap_am_plugin_c
|
49
|
68 |
#if defined(USE_FAST_EAP_TYPE)
|
|
69 |
, public AbsPacStoreInitializer
|
|
70 |
#endif //#if defined(USE_FAST_EAP_TYPE)
|
26
|
71 |
{
|
|
72 |
|
|
73 |
private:
|
|
74 |
|
|
75 |
// ----------------------------------------------------------------------
|
|
76 |
|
|
77 |
abs_eap_am_tools_c * const m_am_tools;
|
|
78 |
|
|
79 |
abs_eap_am_plugin_c * m_partner;
|
|
80 |
|
|
81 |
eap_array_c<eap_loaded_type_c> m_loaded_types;
|
|
82 |
|
49
|
83 |
eap_method_settings_c * m_internal_settings;
|
|
84 |
|
|
85 |
eap_tlv_message_type_function_e m_completion_function;
|
|
86 |
|
26
|
87 |
bool m_is_valid;
|
|
88 |
|
|
89 |
bool m_shutdown_was_called;
|
|
90 |
|
|
91 |
// ----------------------------------------------------------------------
|
|
92 |
|
|
93 |
eap_status_e error_complete(
|
|
94 |
const eap_status_e completion_status,
|
|
95 |
const eap_method_settings_c * const internal_settings,
|
|
96 |
const eap_tlv_message_type_function_e completion_function);
|
|
97 |
|
|
98 |
CEapTypePlugin * get_eap_type(
|
|
99 |
const eap_type_value_e eap_type,
|
|
100 |
u32_t index_type,
|
|
101 |
u32_t index);
|
|
102 |
|
49
|
103 |
#if defined(USE_FAST_EAP_TYPE)
|
|
104 |
eap_status_e initialize_pac_store(
|
|
105 |
const eap_method_settings_c * const internal_settings,
|
|
106 |
const eap_tlv_message_type_function_e completion_function);
|
|
107 |
#endif //#if defined(USE_FAST_EAP_TYPE)
|
|
108 |
|
|
109 |
eap_status_e internal_complete_get_configuration(const eap_method_settings_c * const internal_settings);
|
|
110 |
|
|
111 |
eap_status_e internal_complete_set_configuration(const eap_method_settings_c * const internal_settings);
|
|
112 |
|
26
|
113 |
// ----------------------------------------------------------------------
|
|
114 |
|
|
115 |
public:
|
|
116 |
|
|
117 |
// ----------------------------------------------------------------------
|
|
118 |
|
|
119 |
eap_am_plugin_symbian_c(
|
|
120 |
abs_eap_am_tools_c * const tools,
|
|
121 |
abs_eap_am_plugin_c * const partner);
|
|
122 |
|
|
123 |
virtual ~eap_am_plugin_symbian_c();
|
|
124 |
|
|
125 |
bool get_is_valid();
|
|
126 |
|
|
127 |
// This is documented in abs_eap_stack_interface_c::configure().
|
|
128 |
eap_status_e configure();
|
|
129 |
|
|
130 |
// This is documented in abs_eap_stack_interface_c::shutdown().
|
|
131 |
eap_status_e shutdown();
|
|
132 |
|
|
133 |
eap_status_e get_configuration(const eap_method_settings_c * const internal_settings);
|
|
134 |
|
|
135 |
eap_status_e set_configuration(const eap_method_settings_c * const internal_settings);
|
|
136 |
|
|
137 |
eap_status_e copy_configuration(const eap_method_settings_c * const internal_settings);
|
|
138 |
|
|
139 |
eap_status_e delete_configuration(const eap_method_settings_c * const internal_settings);
|
|
140 |
|
|
141 |
eap_status_e set_index(const eap_method_settings_c * const internal_settings);
|
|
142 |
|
|
143 |
eap_status_e get_type_info(const eap_method_settings_c * const internal_settings);
|
|
144 |
|
|
145 |
|
49
|
146 |
#if defined(USE_FAST_EAP_TYPE)
|
|
147 |
|
|
148 |
TInt CompleteInitialisePacStore();
|
|
149 |
|
|
150 |
#endif //#if defined(USE_FAST_EAP_TYPE)
|
|
151 |
|
26
|
152 |
|
|
153 |
// ----------------------------------------------------------------------
|
|
154 |
};
|
|
155 |
|
|
156 |
#endif //#if !defined(_EAP_AM_PLUGIN_SYMBIAN_H_)
|
|
157 |
|
|
158 |
|
|
159 |
//--------------------------------------------------
|
|
160 |
// End
|