eapol/eapol_framework/eapol_common/type/tls_peap/eap/include/eap_tls_peap_state_notification.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     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 
       
    20 
       
    21 #if !defined(_EAP_TLS_PEAP_STATE_NOTIFICATION_H_)
       
    22 #define _EAP_TLS_PEAP_STATE_NOTIFICATION_H_
       
    23 
       
    24 #include "eap_variable_data.h"
       
    25 #include "eap_am_export.h"
       
    26 #include "eap_protocol_layer.h"
       
    27 #include "abs_eap_state_notification.h"
       
    28 
       
    29 
       
    30 /// A eap_tls_peap_state_notification_c class.
       
    31 /// This is used for debugging and protocol testing.
       
    32 class EAP_EXPORT eap_tls_peap_state_notification_c
       
    33 : public abs_eap_state_notification_c
       
    34 {
       
    35 private:
       
    36 	//--------------------------------------------------
       
    37 
       
    38 	abs_eap_am_tools_c * const m_am_tools; ///< This is pointer to the tools class. @see abs_eap_am_tools_c.
       
    39 
       
    40 	eap_protocol_layer_e m_layer; ///< Here is the protocol layer (EAP type).
       
    41 
       
    42 	eap_variable_data_c m_notification_string; ///< Here is the notification string.
       
    43 
       
    44 	eap_boolean_e m_needs_confirmation_from_user; ///< This flag tells whether user interaction is required.
       
    45 
       
    46 	u32_t m_protocol; ///< Here is the EAP type.
       
    47 	
       
    48 	u32_t m_previous_state; ///< Here is the previous state of the EAP type.
       
    49 	
       
    50 	u32_t m_current_state; ///< Here is the current state of the EAP type.
       
    51 	
       
    52 	const eap_am_network_id_c *m_send_network_id;
       
    53 	
       
    54 	eap_boolean_e m_is_client;
       
    55 	
       
    56 	u8_t m_eap_identifier;
       
    57 	
       
    58 	eap_boolean_e m_allow_send_eap_success;
       
    59 
       
    60 	//--------------------------------------------------
       
    61 protected:
       
    62 	//--------------------------------------------------
       
    63 
       
    64 	//--------------------------------------------------
       
    65 public:
       
    66 	//--------------------------------------------------
       
    67 
       
    68 	/**
       
    69 	 * The destructor of the eap_tls_peap_state_notification_c class does nothing special.
       
    70 	 */
       
    71 	EAP_FUNC_IMPORT virtual ~eap_tls_peap_state_notification_c();
       
    72 
       
    73 	/**
       
    74 	 * The constructor of the eap_tls_peap_state_notification_c class does nothing special.
       
    75 	 */
       
    76 	EAP_FUNC_IMPORT eap_tls_peap_state_notification_c(
       
    77 		abs_eap_am_tools_c * const tools,
       
    78 		const eap_am_network_id_c * const send_network_id,
       
    79 		eap_boolean_e is_client,
       
    80 		eap_protocol_layer_e layer,
       
    81 		u32_t protocol,
       
    82 		u32_t previous_state,
       
    83 		u32_t current_state,
       
    84 		u8_t eap_identifier,
       
    85 		eap_boolean_e allow_send_eap_success);
       
    86 
       
    87 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
    88 	EAP_FUNC_IMPORT const eap_am_network_id_c * const get_send_network_id() const;
       
    89 
       
    90 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
    91 	EAP_FUNC_IMPORT const eap_protocol_layer_e get_protocol_layer() const;
       
    92 
       
    93 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
    94 	EAP_FUNC_IMPORT const u32_t get_protocol() const;
       
    95 
       
    96 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
    97 	EAP_FUNC_IMPORT const u32_t get_previous_state() const;
       
    98 
       
    99 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
   100 	EAP_FUNC_IMPORT const u32_t get_current_state() const;
       
   101 
       
   102 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
   103 	EAP_FUNC_IMPORT eap_const_string get_current_state_string() const;
       
   104 
       
   105 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
   106 	EAP_FUNC_IMPORT eap_const_string get_previous_state_string() const;
       
   107 
       
   108 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
   109 	EAP_FUNC_IMPORT const eap_boolean_e get_is_client() const;
       
   110 
       
   111 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
   112 	EAP_FUNC_IMPORT const u8_t get_eap_identifier() const;
       
   113 
       
   114 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
   115 	EAP_FUNC_IMPORT eap_boolean_e get_allow_send_eap_success() const;
       
   116 
       
   117 	// This is commented in abs_eap_state_notification_c::set_notification_string().
       
   118 	EAP_FUNC_IMPORT const eap_status_e set_notification_string(
       
   119 		const eap_variable_data_c * const notification_string,
       
   120 		const eap_boolean_e needs_confirmation_from_user);
       
   121 
       
   122 	//--------------------------------------------------
       
   123 }; // class eap_tls_peap_state_notification_c
       
   124 
       
   125 #endif //#if !defined(_EAP_TLS_PEAP_STATE_NOTIFICATION_H_)
       
   126 
       
   127 //--------------------------------------------------
       
   128 
       
   129 
       
   130 
       
   131 // End.