eapol/eapol_framework/eapol_common/type/simple_config/simple_config/include/simple_config_credential.h
changeset 49 43351a4f2da3
parent 26 9abfd4f00d37
equal deleted inserted replaced
47:712b4ffd76bb 49:43351a4f2da3
    24 
    24 
    25 #include "eap_tools.h"
    25 #include "eap_tools.h"
    26 #include "simple_config_attribute_type.h"
    26 #include "simple_config_attribute_type.h"
    27 #include "simple_config_types.h"
    27 #include "simple_config_types.h"
    28 #include "eap_array_algorithms.h"
    28 #include "eap_array_algorithms.h"
       
    29 #include "eap_am_export.h"
       
    30 // Start: added by script change_export_macros.sh.
       
    31 #if defined(EAP_NO_EXPORT_SIMPLE_CONFIG_CREDENTIAL_H)
       
    32 	#define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H EAP_NONSHARABLE 
       
    33 	#define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H 
       
    34 	#define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H 
       
    35 	#define EAP_FUNC_EXPORT_SIMPLE_CONFIG_CREDENTIAL_H 
       
    36 	#define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_CREDENTIAL_H 
       
    37 #elif defined(EAP_EXPORT_SIMPLE_CONFIG_CREDENTIAL_H)
       
    38 	#define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H EAP_EXPORT 
       
    39 	#define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H EAP_FUNC_EXPORT 
       
    40 	#define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H EAP_C_FUNC_EXPORT 
       
    41 	#define EAP_FUNC_EXPORT_SIMPLE_CONFIG_CREDENTIAL_H EAP_FUNC_EXPORT 
       
    42 	#define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_CREDENTIAL_H EAP_C_FUNC_EXPORT 
       
    43 #else
       
    44 	#define EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H EAP_IMPORT 
       
    45 	#define EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H EAP_FUNC_IMPORT 
       
    46 	#define EAP_C_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H EAP_C_FUNC_IMPORT 
       
    47 	#define EAP_FUNC_EXPORT_SIMPLE_CONFIG_CREDENTIAL_H 
       
    48 	#define EAP_C_FUNC_EXPORT_SIMPLE_CONFIG_CREDENTIAL_H 
       
    49 #endif
       
    50 // End: added by script change_export_macros.sh.
       
    51 
    29 
    52 
    30 /** @file */
    53 /** @file */
    31 
    54 
    32 
    55 
    33 //----------------------------------------------------------------------------
    56 //----------------------------------------------------------------------------
    34 
    57 
    35 
    58 
    36 /// This class defines Credential attributes for protected setup (previously known as simple config).
    59 /// This class defines Credential attributes for protected setup (previously known as simple config).
    37 class EAP_EXPORT simple_config_credential_c
    60 class EAP_CLASS_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H simple_config_credential_c
    38 {
    61 {
    39 private:
    62 private:
    40 	//--------------------------------------------------
    63 	//--------------------------------------------------
    41 
    64 
    42 	/// This is pointer to the tools class.
    65 	/// This is pointer to the tools class.
    61 	//--------------------------------------------------
    84 	//--------------------------------------------------
    62 
    85 
    63 	/**
    86 	/**
    64 	 * The destructor of the simple_config_credential_c class does nothing.
    87 	 * The destructor of the simple_config_credential_c class does nothing.
    65 	 */
    88 	 */
    66 	EAP_FUNC_IMPORT virtual ~simple_config_credential_c();
    89 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H virtual ~simple_config_credential_c();
    67 
    90 
    68 	/**
    91 	/**
    69 	 * The constructor of the simple_config_credential_c class simply initializes the attributes.
    92 	 * The constructor of the simple_config_credential_c class simply initializes the attributes.
    70 	 */
    93 	 */
    71 	EAP_FUNC_IMPORT simple_config_credential_c(
    94 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H simple_config_credential_c(
    72 		abs_eap_am_tools_c * const tools);
    95 		abs_eap_am_tools_c * const tools);
    73 
    96 
    74 	EAP_FUNC_IMPORT void set_network_index(const u8_t index);
    97 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H void set_network_index(const u8_t index);
    75 
    98 
    76 	EAP_FUNC_IMPORT u8_t get_network_index() const;
    99 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H u8_t get_network_index() const;
    77 
   100 
    78 	EAP_FUNC_IMPORT eap_variable_data_c * get_SSID();
   101 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H eap_variable_data_c * get_SSID();
    79 
   102 
    80 	EAP_FUNC_IMPORT const eap_variable_data_c * get_SSID_const() const;
   103 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H const eap_variable_data_c * get_SSID_const() const;
    81 
   104 
    82 	EAP_FUNC_IMPORT simple_config_Authentication_Type_e get_Authentication_Type();
   105 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H simple_config_Authentication_Type_e get_Authentication_Type();
    83 
   106 
    84 	EAP_FUNC_IMPORT void set_Authentication_Type(const simple_config_Authentication_Type_e Authentication_Type);
   107 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H void set_Authentication_Type(const simple_config_Authentication_Type_e Authentication_Type);
    85 
   108 
    86 	EAP_FUNC_IMPORT simple_config_Encryption_Type_e get_Encryption_Type();
   109 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H simple_config_Encryption_Type_e get_Encryption_Type();
    87 
   110 
    88 	EAP_FUNC_IMPORT void set_Encryption_Type(const simple_config_Encryption_Type_e Encryption_Type);
   111 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H void set_Encryption_Type(const simple_config_Encryption_Type_e Encryption_Type);
    89 
   112 
    90 	EAP_FUNC_IMPORT eap_array_c<network_key_and_index_c> * get_network_keys();
   113 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H eap_array_c<network_key_and_index_c> * get_network_keys();
    91 
   114 
    92 	EAP_FUNC_IMPORT const eap_array_c<network_key_and_index_c> * get_network_keys_const() const;
   115 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H const eap_array_c<network_key_and_index_c> * get_network_keys_const() const;
    93 
   116 
    94 	EAP_FUNC_IMPORT eap_variable_data_c * get_MAC_address();
   117 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H eap_variable_data_c * get_MAC_address();
    95 
   118 
    96 	EAP_FUNC_IMPORT const eap_variable_data_c * get_MAC_address_const() const;
   119 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H const eap_variable_data_c * get_MAC_address_const() const;
    97 
   120 
    98 	EAP_FUNC_IMPORT bool get_is_valid();
   121 	EAP_FUNC_VISIBILITY_SIMPLE_CONFIG_CREDENTIAL_H bool get_is_valid();
    99 
   122 
   100 	// 
   123 	// 
   101 	//--------------------------------------------------
   124 	//--------------------------------------------------
   102 }; // class simple_config_credential_c
   125 }; // class simple_config_credential_c
   103 
   126