eapol/eapol_framework/eapol_symbian/am/common/file_io/symbian/eap_am_file_input_symbian.cpp
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
    14 * Description:  EAP and WLAN authentication protocols.
    14 * Description:  EAP and WLAN authentication protocols.
    15 *
    15 *
    16 */
    16 */
    17 
    17 
    18 /*
    18 /*
    19 * %version: 11.1.3 %
    19 * %version: 14 %
    20 */
    20 */
    21 
    21 
    22 // This is enumeration of EAPOL source code.
    22 // This is enumeration of EAPOL source code.
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
    24 	#undef EAP_FILE_NUMBER_ENUM
    24 	#undef EAP_FILE_NUMBER_ENUM
   516 //----------------------------------------------------------------------------------------------------
   516 //----------------------------------------------------------------------------------------------------
   517 
   517 
   518 /**
   518 /**
   519  * This function reads word from file.
   519  * This function reads word from file.
   520  */
   520  */
   521 EAP_FUNC_EXPORT eap_status_e eap_am_file_input_symbian_c::file_read_word(eap_variable_data_c * const word)
   521 eap_status_e eap_am_file_input_symbian_c::file_read_word(eap_variable_data_c * const word)
   522 {
   522 {
   523 	if (word == 0
   523 	if (word == 0
   524 		|| word->get_is_valid() == false)
   524 		|| word->get_is_valid() == false)
   525 	{
   525 	{
   526 		EAP_TRACE_END(m_am_tools, TRACE_FLAGS_DEFAULT);
   526 		EAP_TRACE_END(m_am_tools, TRACE_FLAGS_DEFAULT);
   624 /**
   624 /**
   625  * Object must indicate it's validity.
   625  * Object must indicate it's validity.
   626  * If object initialization fails this function must return false.
   626  * If object initialization fails this function must return false.
   627  * @return This function returns the validity of this object.
   627  * @return This function returns the validity of this object.
   628  */
   628  */
   629 EAP_FUNC_EXPORT bool eap_am_file_input_symbian_c::get_is_valid()
   629 bool eap_am_file_input_symbian_c::get_is_valid()
   630 {
   630 {
   631 	return m_is_valid;
   631 	return m_is_valid;
   632 }
   632 }
   633 
   633 
   634 //----------------------------------------------------------------------------------------------------
   634 //----------------------------------------------------------------------------------------------------
   635 
   635 
   636 EAP_FUNC_EXPORT eap_status_e eap_am_file_input_symbian_c::directory_open(
   636 eap_status_e eap_am_file_input_symbian_c::directory_open(
   637 	const eap_variable_data_c * const /* directory_name */)
   637 	const eap_variable_data_c * const /* directory_name */)
   638 {
   638 {
   639 	return EAP_STATUS_RETURN(m_am_tools, eap_status_not_supported);
   639 	return EAP_STATUS_RETURN(m_am_tools, eap_status_not_supported);
   640 }
   640 }
   641 
   641 
   642 //----------------------------------------------------------------------------------------------------
   642 //----------------------------------------------------------------------------------------------------
   643 
   643 
   644 EAP_FUNC_EXPORT eap_status_e eap_am_file_input_symbian_c::directory_read(
   644 eap_status_e eap_am_file_input_symbian_c::directory_read(
   645 	eap_array_c<abs_eap_file_stat_c> * const /* directory_list */)
   645 	eap_array_c<abs_eap_file_stat_c> * const /* directory_list */)
   646 {
   646 {
   647 	return EAP_STATUS_RETURN(m_am_tools, eap_status_not_supported);
   647 	return EAP_STATUS_RETURN(m_am_tools, eap_status_not_supported);
   648 }
   648 }
   649 
   649 
   650 //----------------------------------------------------------------------------------------------------
   650 //----------------------------------------------------------------------------------------------------
   651 
   651 
   652 /**
   652 /**
   653  * This function closes the directory.
   653  * This function closes the directory.
   654  */
   654  */
   655 EAP_FUNC_EXPORT eap_status_e eap_am_file_input_symbian_c::directory_close()
   655 eap_status_e eap_am_file_input_symbian_c::directory_close()
   656 {
   656 {
   657 	return EAP_STATUS_RETURN(m_am_tools, eap_status_not_supported);
   657 	return EAP_STATUS_RETURN(m_am_tools, eap_status_not_supported);
   658 }
   658 }
   659 
   659 
   660 //----------------------------------------------------------------------------------------------------
   660 //----------------------------------------------------------------------------------------------------