eapol/eapol_framework/eapol_symbian/eap_server/include/eap_am_plugin_symbian.h
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    14 * Description:  EAP-plugin adaptation.
    14 * Description:  EAP-plugin adaptation.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 16 %
    19 * %version: 23 %
    20 */
    20 */
    21 
    21 
    22 #if !defined(_EAP_AM_PLUGIN_SYMBIAN_H_)
    22 #if !defined(_EAP_AM_PLUGIN_SYMBIAN_H_)
    23 #define _EAP_AM_PLUGIN_SYMBIAN_H_
    23 #define _EAP_AM_PLUGIN_SYMBIAN_H_
    24 
    24 
    25 #include "eap_tools.h"
    25 #include "eap_tools.h"
    26 #include "eap_status.h"
    26 #include "eap_status.h"
    27 #include "eap_am_export.h"
    27 #include "eap_am_export.h"
       
    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)
    28 #include "eap_expanded_type.h"
    52 #include "eap_expanded_type.h"
    29 #include "eap_array.h"
    53 #include "eap_array.h"
    30 #include "eap_database_reference_if.h"
    54 #include "eap_database_reference_if.h"
    31 #include "eap_am_plugin.h"
    55 #include "eap_am_plugin.h"
    32 #include "eap_process_tlv_message_data.h"
    56 #include "eap_process_tlv_message_data.h"
    37 class CEapTypePlugin;
    61 class CEapTypePlugin;
    38 
    62 
    39 /** @file */
    63 /** @file */
    40 
    64 
    41 /// This class is EAP-plugin adaptation.
    65 /// This class is EAP-plugin adaptation.
    42 class EAP_EXPORT eap_am_plugin_symbian_c
    66 class EAP_CLASS_VISIBILITY_EAP_AM_PLUGIN_SYMBIAN_H eap_am_plugin_symbian_c
    43 : public eap_am_plugin_c
    67 : public eap_am_plugin_c
       
    68 #if defined(USE_FAST_EAP_TYPE)
       
    69 , public AbsPacStoreInitializer
       
    70 #endif //#if defined(USE_FAST_EAP_TYPE)
    44 {
    71 {
    45 
    72 
    46 private:
    73 private:
    47 
    74 
    48 	// ----------------------------------------------------------------------
    75 	// ----------------------------------------------------------------------
    50 	abs_eap_am_tools_c * const m_am_tools;
    77 	abs_eap_am_tools_c * const m_am_tools;
    51 
    78 
    52 	abs_eap_am_plugin_c * m_partner;
    79 	abs_eap_am_plugin_c * m_partner;
    53 
    80 
    54 	eap_array_c<eap_loaded_type_c> m_loaded_types;
    81 	eap_array_c<eap_loaded_type_c> m_loaded_types;
       
    82 
       
    83 	eap_method_settings_c * m_internal_settings;
       
    84 
       
    85 	eap_tlv_message_type_function_e m_completion_function;
    55 
    86 
    56 	bool m_is_valid;
    87 	bool m_is_valid;
    57 
    88 
    58 	bool m_shutdown_was_called;
    89 	bool m_shutdown_was_called;
    59 
    90 
    66 
    97 
    67 	CEapTypePlugin * get_eap_type(
    98 	CEapTypePlugin * get_eap_type(
    68 		const eap_type_value_e eap_type,
    99 		const eap_type_value_e eap_type,
    69 		u32_t index_type,
   100 		u32_t index_type,
    70 		u32_t index);
   101 		u32_t index);
       
   102 
       
   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);
    71 
   112 
    72 	// ----------------------------------------------------------------------
   113 	// ----------------------------------------------------------------------
    73 
   114 
    74 public:
   115 public:
    75 
   116 
   100 	eap_status_e set_index(const eap_method_settings_c * const internal_settings);
   141 	eap_status_e set_index(const eap_method_settings_c * const internal_settings);
   101 
   142 
   102 	eap_status_e get_type_info(const eap_method_settings_c * const internal_settings);
   143 	eap_status_e get_type_info(const eap_method_settings_c * const internal_settings);
   103 
   144 
   104 
   145 
       
   146 #if defined(USE_FAST_EAP_TYPE)
       
   147 
       
   148 	TInt CompleteInitialisePacStore();
       
   149 
       
   150 #endif //#if defined(USE_FAST_EAP_TYPE)
       
   151 
   105 
   152 
   106 	// ----------------------------------------------------------------------
   153 	// ----------------------------------------------------------------------
   107 };
   154 };
   108 
   155 
   109 #endif //#if !defined(_EAP_AM_PLUGIN_SYMBIAN_H_)
   156 #endif //#if !defined(_EAP_AM_PLUGIN_SYMBIAN_H_)