eapol/eapol_framework/eapol_common/type/gsmsim/include/eap_gsmsim_state_notification.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    22 #if !defined(_EAP_GSMSIM_STATE_NOTIFICATION_H_)
    22 #if !defined(_EAP_GSMSIM_STATE_NOTIFICATION_H_)
    23 #define _EAP_GSMSIM_STATE_NOTIFICATION_H_
    23 #define _EAP_GSMSIM_STATE_NOTIFICATION_H_
    24 
    24 
    25 #include "eap_variable_data.h"
    25 #include "eap_variable_data.h"
    26 #include "eap_am_export.h"
    26 #include "eap_am_export.h"
       
    27 // Start: added by script change_export_macros.sh.
       
    28 #if defined(EAP_NO_EXPORT_EAP_GSMSIM_STATE_NOTIFICATION_H)
       
    29 	#define EAP_CLASS_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_NONSHARABLE 
       
    30 	#define EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H 
       
    31 	#define EAP_C_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H 
       
    32 	#define EAP_FUNC_EXPORT_EAP_GSMSIM_STATE_NOTIFICATION_H 
       
    33 	#define EAP_C_FUNC_EXPORT_EAP_GSMSIM_STATE_NOTIFICATION_H 
       
    34 #elif defined(EAP_EXPORT_EAP_GSMSIM_STATE_NOTIFICATION_H)
       
    35 	#define EAP_CLASS_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_EXPORT 
       
    36 	#define EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_FUNC_EXPORT 
       
    37 	#define EAP_C_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_C_FUNC_EXPORT 
       
    38 	#define EAP_FUNC_EXPORT_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_FUNC_EXPORT 
       
    39 	#define EAP_C_FUNC_EXPORT_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_C_FUNC_EXPORT 
       
    40 #else
       
    41 	#define EAP_CLASS_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_IMPORT 
       
    42 	#define EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_FUNC_IMPORT 
       
    43 	#define EAP_C_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H EAP_C_FUNC_IMPORT 
       
    44 	#define EAP_FUNC_EXPORT_EAP_GSMSIM_STATE_NOTIFICATION_H 
       
    45 	#define EAP_C_FUNC_EXPORT_EAP_GSMSIM_STATE_NOTIFICATION_H 
       
    46 #endif
       
    47 // End: added by script change_export_macros.sh.
    27 #include "eap_protocol_layer.h"
    48 #include "eap_protocol_layer.h"
    28 #include "abs_eap_state_notification.h"
    49 #include "abs_eap_state_notification.h"
    29 
    50 
    30 
    51 
    31 /// A eap_gsmsim_state_notification_c class.
    52 /// A eap_gsmsim_state_notification_c class.
    32 /// This is used for debugging and protocol testing.
    53 /// This is used for debugging and protocol testing.
    33 class EAP_EXPORT eap_gsmsim_state_notification_c
    54 class EAP_CLASS_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H eap_gsmsim_state_notification_c
    34 : public abs_eap_state_notification_c
    55 : public abs_eap_state_notification_c
    35 {
    56 {
    36 private:
    57 private:
    37 	//--------------------------------------------------
    58 	//--------------------------------------------------
    38 
    59 
    56 	
    77 	
    57 	u8_t m_eap_identifier;
    78 	u8_t m_eap_identifier;
    58 	
    79 	
    59 	eap_boolean_e m_allow_send_eap_success;
    80 	eap_boolean_e m_allow_send_eap_success;
    60 
    81 
    61 	EAP_FUNC_IMPORT eap_const_string get_state_string(const u32_t state) const;
    82 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H eap_const_string get_state_string(const u32_t state) const;
    62 
    83 
    63 	//--------------------------------------------------
    84 	//--------------------------------------------------
    64 protected:
    85 protected:
    65 	//--------------------------------------------------
    86 	//--------------------------------------------------
    66 
    87 
    69 	//--------------------------------------------------
    90 	//--------------------------------------------------
    70 
    91 
    71 	/**
    92 	/**
    72 	 * The destructor of the eap_gsmsim_state_notification_c class does nothing special.
    93 	 * The destructor of the eap_gsmsim_state_notification_c class does nothing special.
    73 	 */
    94 	 */
    74 	EAP_FUNC_IMPORT virtual ~eap_gsmsim_state_notification_c();
    95 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H virtual ~eap_gsmsim_state_notification_c();
    75 
    96 
    76 	/**
    97 	/**
    77 	 * The constructor of the eap_gsmsim_state_notification_c class does nothing special.
    98 	 * The constructor of the eap_gsmsim_state_notification_c class does nothing special.
    78 	 */
    99 	 */
    79 	EAP_FUNC_IMPORT eap_gsmsim_state_notification_c(
   100 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H eap_gsmsim_state_notification_c(
    80 		abs_eap_am_tools_c * const tools,
   101 		abs_eap_am_tools_c * const tools,
    81 		const eap_am_network_id_c * const send_network_id,
   102 		const eap_am_network_id_c * const send_network_id,
    82 		eap_boolean_e is_client,
   103 		eap_boolean_e is_client,
    83 		eap_protocol_layer_e layer,
   104 		eap_protocol_layer_e layer,
    84 		u32_t protocol,
   105 		u32_t protocol,
    86 		u32_t current_state,
   107 		u32_t current_state,
    87 		u8_t eap_identifier,
   108 		u8_t eap_identifier,
    88 		eap_boolean_e allow_send_eap_success);
   109 		eap_boolean_e allow_send_eap_success);
    89 
   110 
    90 	// This is commented in abs_eap_state_notification_c::get_send_network_id().
   111 	// This is commented in abs_eap_state_notification_c::get_send_network_id().
    91 	EAP_FUNC_IMPORT const eap_am_network_id_c * const get_send_network_id() const;
   112 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H const eap_am_network_id_c * const get_send_network_id() const;
    92 
   113 
    93 	// This is commented in abs_eap_state_notification_c::get_protocol_layer().
   114 	// This is commented in abs_eap_state_notification_c::get_protocol_layer().
    94 	EAP_FUNC_IMPORT const eap_protocol_layer_e get_protocol_layer() const;
   115 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H const eap_protocol_layer_e get_protocol_layer() const;
    95 
   116 
    96 	// This is commented in abs_eap_state_notification_c::get_protocol().
   117 	// This is commented in abs_eap_state_notification_c::get_protocol().
    97 	EAP_FUNC_IMPORT const u32_t get_protocol() const;
   118 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H const u32_t get_protocol() const;
    98 
   119 
    99 	// This is commented in abs_eap_state_notification_c::get_previous_state().
   120 	// This is commented in abs_eap_state_notification_c::get_previous_state().
   100 	EAP_FUNC_IMPORT const u32_t get_previous_state() const;
   121 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H const u32_t get_previous_state() const;
   101 
   122 
   102 	// This is commented in abs_eap_state_notification_c::get_previous_state_string().
   123 	// This is commented in abs_eap_state_notification_c::get_previous_state_string().
   103 	EAP_FUNC_IMPORT eap_const_string get_previous_state_string() const;
   124 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H eap_const_string get_previous_state_string() const;
   104 
   125 
   105 	// This is commented in abs_eap_state_notification_c::get_current_state().
   126 	// This is commented in abs_eap_state_notification_c::get_current_state().
   106 	EAP_FUNC_IMPORT const u32_t get_current_state() const;
   127 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H const u32_t get_current_state() const;
   107 
   128 
   108 	// This is commented in abs_eap_state_notification_c::get_current_state_string().
   129 	// This is commented in abs_eap_state_notification_c::get_current_state_string().
   109 	EAP_FUNC_IMPORT eap_const_string get_current_state_string() const;
   130 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H eap_const_string get_current_state_string() const;
   110 
   131 
   111 	// This is commented in abs_eap_state_notification_c::get_is_client().
   132 	// This is commented in abs_eap_state_notification_c::get_is_client().
   112 	EAP_FUNC_IMPORT const eap_boolean_e get_is_client() const;
   133 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H const eap_boolean_e get_is_client() const;
   113 
   134 
   114 	// This is commented in abs_eap_state_notification_c::get_eap_identifier().
   135 	// This is commented in abs_eap_state_notification_c::get_eap_identifier().
   115 	EAP_FUNC_IMPORT const u8_t get_eap_identifier() const;
   136 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H const u8_t get_eap_identifier() const;
   116 
   137 
   117 	// This is commented in abs_eap_state_notification_c::get_allow_send_eap_success().
   138 	// This is commented in abs_eap_state_notification_c::get_allow_send_eap_success().
   118 	EAP_FUNC_IMPORT eap_boolean_e get_allow_send_eap_success() const;
   139 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H eap_boolean_e get_allow_send_eap_success() const;
   119 
   140 
   120 	// This is commented in abs_eap_state_notification_c::set_notification_string().
   141 	// This is commented in abs_eap_state_notification_c::set_notification_string().
   121 	EAP_FUNC_IMPORT const eap_status_e set_notification_string(
   142 	EAP_FUNC_VISIBILITY_EAP_GSMSIM_STATE_NOTIFICATION_H const eap_status_e set_notification_string(
   122 		const eap_variable_data_c * const notification_string,
   143 		const eap_variable_data_c * const notification_string,
   123 		const eap_boolean_e needs_confirmation_from_user);
   144 		const eap_boolean_e needs_confirmation_from_user);
   124 
   145 
   125 	//--------------------------------------------------
   146 	//--------------------------------------------------
   126 }; // class eap_gsmsim_state_notification_c
   147 }; // class eap_gsmsim_state_notification_c