eapol/eapol_framework/eapol_symbian/am/include/eap_am_type_leap_symbian.h
changeset 52 c23bdf5a328a
parent 39 fe6b6762fccd
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 16.1.11 %
    19 * %version: 16.1.15 %
    20 */
    20 */
    21 
    21 
    22 #ifndef EAP_AM_TYPE_LEAP_SYMBIAN_H
    22 #ifndef EAP_AM_TYPE_LEAP_SYMBIAN_H
    23 #define EAP_AM_TYPE_LEAP_SYMBIAN_H
    23 #define EAP_AM_TYPE_LEAP_SYMBIAN_H
    24 
    24 
    36 #include "eap_auth_notifier.h"
    36 #include "eap_auth_notifier.h"
    37 #endif //#if defined(USE_EAP_AUTH_NOTIFIER)
    37 #endif //#if defined(USE_EAP_AUTH_NOTIFIER)
    38 
    38 
    39 #include <EapType.h>
    39 #include <EapType.h>
    40 #include <d32dbms.h>
    40 #include <d32dbms.h>
       
    41 #include "eap_am_export.h"
       
    42 // Start: added by script change_export_macros.sh.
       
    43 #if defined(EAP_NO_EXPORT_EAP_AM_TYPE_LEAP_SYMBIAN_H)
       
    44 	#define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_NONSHARABLE 
       
    45 	#define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H 
       
    46 	#define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H 
       
    47 	#define EAP_FUNC_EXPORT_EAP_AM_TYPE_LEAP_SYMBIAN_H 
       
    48 	#define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_LEAP_SYMBIAN_H 
       
    49 #elif defined(EAP_EXPORT_EAP_AM_TYPE_LEAP_SYMBIAN_H)
       
    50 	#define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_EXPORT 
       
    51 	#define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_FUNC_EXPORT 
       
    52 	#define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_C_FUNC_EXPORT 
       
    53 	#define EAP_FUNC_EXPORT_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_FUNC_EXPORT 
       
    54 	#define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_C_FUNC_EXPORT 
       
    55 #else
       
    56 	#define EAP_CLASS_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_IMPORT 
       
    57 	#define EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_FUNC_IMPORT 
       
    58 	#define EAP_C_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H EAP_C_FUNC_IMPORT 
       
    59 	#define EAP_FUNC_EXPORT_EAP_AM_TYPE_LEAP_SYMBIAN_H 
       
    60 	#define EAP_C_FUNC_EXPORT_EAP_AM_TYPE_LEAP_SYMBIAN_H 
       
    61 #endif
       
    62 // End: added by script change_export_macros.sh.
       
    63 
    41 
    64 
    42 const TUint KDefaultTimeoutLEAP = 120000;
    65 const TUint KDefaultTimeoutLEAP = 120000;
    43 
    66 
    44 // CLASS DECLARATION
    67 // CLASS DECLARATION
    45 
    68 
    46 /**
    69 /**
    47 * Class that implements the operating system dependent portion of EAP LEAP protocol.
    70 * Class that implements the operating system dependent portion of EAP LEAP protocol.
    48 * For Symbian OS.
    71 * For Symbian OS.
    49 */
    72 */
    50 class EAP_EXPORT eap_am_type_leap_symbian_c
    73 class EAP_CLASS_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H eap_am_type_leap_symbian_c
    51 : public CActive, public eap_am_type_leap_c
    74 : public CActive, public eap_am_type_leap_c
    52 #if defined(USE_EAP_AUTH_NOTIFIER)
    75 #if defined(USE_EAP_AUTH_NOTIFIER)
    53 	, public MNotificationCallback
    76 	, public MNotificationCallback
    54 #endif //#if defined(USE_EAP_AUTH_NOTIFIER)
    77 #endif //#if defined(USE_EAP_AUTH_NOTIFIER)
    55 
    78 
   153 		const eap_type_value_e aTunnelingType,
   176 		const eap_type_value_e aTunnelingType,
   154 		const bool aIsClient,
   177 		const bool aIsClient,
   155 		const eap_am_network_id_c * const receive_network_id);
   178 		const eap_am_network_id_c * const receive_network_id);
   156 
   179 
   157 	// 
   180 	// 
   158 	EAP_FUNC_IMPORT virtual ~eap_am_type_leap_symbian_c();
   181 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H virtual ~eap_am_type_leap_symbian_c();
   159 
   182 
   160 	eap_status_e show_username_password_dialog(
   183 	eap_status_e show_username_password_dialog(
   161 		eap_variable_data_c &username,
   184 		eap_variable_data_c &username,
   162 		eap_variable_data_c &password,
   185 		eap_variable_data_c &password,
   163 		bool &password_prompt_enabled,
   186 		bool &password_prompt_enabled,
   164 		bool is_identity_query);
   187 		bool is_identity_query);
   165 
   188 
   166 	EAP_FUNC_IMPORT eap_status_e configure();
   189 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H eap_status_e configure();
   167 
   190 
   168 	EAP_FUNC_IMPORT eap_status_e reset();
   191 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H eap_status_e reset();
   169 
   192 
   170 	EAP_FUNC_IMPORT void set_is_valid();
   193 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H void set_is_valid();
   171 
   194 
   172 	EAP_FUNC_IMPORT bool get_is_valid();
   195 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H bool get_is_valid();
   173 
   196 
   174 	EAP_FUNC_IMPORT eap_status_e type_configure_read(
   197 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H eap_status_e type_configure_read(
   175 		const eap_configuration_field_c * const field,
   198 		const eap_configuration_field_c * const field,
   176 		eap_variable_data_c * const data);
   199 		eap_variable_data_c * const data);
   177 
   200 
   178 	EAP_FUNC_IMPORT eap_status_e type_configure_write(
   201 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H eap_status_e type_configure_write(
   179 		const eap_configuration_field_c * const field,
   202 		const eap_configuration_field_c * const field,
   180 		eap_variable_data_c * const data);
   203 		eap_variable_data_c * const data);
   181 
   204 
   182 	EAP_FUNC_IMPORT eap_status_e shutdown();
   205 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H eap_status_e shutdown();
   183 
   206 
   184 	EAP_FUNC_IMPORT eap_status_e read_auth_failure_string(
   207 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H eap_status_e read_auth_failure_string(
   185 		eap_variable_data_c &string);
   208 		eap_variable_data_c &string);
   186 
   209 
   187 	EAP_FUNC_IMPORT eap_status_e get_memory_store_key(
   210 	EAP_FUNC_VISIBILITY_EAP_AM_TYPE_LEAP_SYMBIAN_H eap_status_e get_memory_store_key(
   188 		eap_variable_data_c * const memory_store_key);
   211 		eap_variable_data_c * const memory_store_key);
   189 
   212 
   190 	/**
   213 	/**
   191 	 * Returns true if the full authenticated session is valid.
   214 	 * Returns true if the full authenticated session is valid.
   192 	 * It finds the difference between current time and the 
   215 	 * It finds the difference between current time and the 
   204 	 */
   227 	 */
   205 	eap_status_e store_authentication_time();
   228 	eap_status_e store_authentication_time();
   206 
   229 
   207 	void DlgComplete( TInt aStatus );
   230 	void DlgComplete( TInt aStatus );
   208 
   231 
       
   232 	TBool IsMasterKeyAndPasswordMatchingL(
       
   233 	      const TDesC16 & aPassword8);
       
   234 
   209 	TInt IsDlgReadyToCompleteL();
   235 	TInt IsDlgReadyToCompleteL();
   210 	
   236 	
   211 }; // class eap_am_type_leap_symbian_c
   237 }; // class eap_am_type_leap_symbian_c
   212 
   238 
   213 
   239