eapol/eapol_framework/eapol_symbian/eap_if/include/eap_am_message_if_symbian.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
equal deleted inserted replaced
51:e863583e6720 52:c23bdf5a328a
    29 #include "EapSendInterface.h"
    29 #include "EapSendInterface.h"
    30 #include "abs_eap_am_tools.h"
    30 #include "abs_eap_am_tools.h"
    31 #include "abs_eap_am_message_if.h"
    31 #include "abs_eap_am_message_if.h"
    32 #include "eap_am_message_if.h"
    32 #include "eap_am_message_if.h"
    33 #include "EapClientIf.h"
    33 #include "EapClientIf.h"
       
    34 #include "eap_am_export.h"
       
    35 // Start: added by script change_export_macros.sh.
       
    36 #if defined(EAP_NO_EXPORT_EAP_AM_MESSAGE_IF_SYMBIAN_H)
       
    37 	#define EAP_CLASS_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_NONSHARABLE 
       
    38 	#define EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H 
       
    39 	#define EAP_C_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H 
       
    40 	#define EAP_FUNC_EXPORT_EAP_AM_MESSAGE_IF_SYMBIAN_H 
       
    41 	#define EAP_C_FUNC_EXPORT_EAP_AM_MESSAGE_IF_SYMBIAN_H 
       
    42 #elif defined(EAP_EXPORT_EAP_AM_MESSAGE_IF_SYMBIAN_H)
       
    43 	#define EAP_CLASS_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_EXPORT 
       
    44 	#define EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_FUNC_EXPORT 
       
    45 	#define EAP_C_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_C_FUNC_EXPORT 
       
    46 	#define EAP_FUNC_EXPORT_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_FUNC_EXPORT 
       
    47 	#define EAP_C_FUNC_EXPORT_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_C_FUNC_EXPORT 
       
    48 #else
       
    49 	#define EAP_CLASS_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_IMPORT 
       
    50 	#define EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_FUNC_IMPORT 
       
    51 	#define EAP_C_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H EAP_C_FUNC_IMPORT 
       
    52 	#define EAP_FUNC_EXPORT_EAP_AM_MESSAGE_IF_SYMBIAN_H 
       
    53 	#define EAP_C_FUNC_EXPORT_EAP_AM_MESSAGE_IF_SYMBIAN_H 
       
    54 #endif
       
    55 // End: added by script change_export_macros.sh.
       
    56 
    34 
    57 
    35 class EapMessageBuffer;
    58 class EapMessageBuffer;
    36 
    59 
    37 /**
    60 /**
    38  * Message interface on client side.
    61  * Message interface on client side.
    39  */
    62  */
    40 class EAP_EXPORT eap_am_message_if_symbian_c
    63 class EAP_CLASS_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H eap_am_message_if_symbian_c
    41 : public eap_am_message_if_c
    64 : public eap_am_message_if_c
    42 , public MSendPacketHandler
    65 , public MSendPacketHandler
    43 , public EapClientIf
    66 , public EapClientIf
    44 {
    67 {
    45 
    68 
    49 	// Functions from CWlanEapolClient.
    72 	// Functions from CWlanEapolClient.
    50 
    73 
    51     /**
    74     /**
    52      * C++ default constructor.
    75      * C++ default constructor.
    53      */
    76      */
    54     EAP_FUNC_IMPORT eap_am_message_if_symbian_c(
    77     EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H eap_am_message_if_symbian_c(
    55 		abs_eap_am_tools_c * const tools,
    78 		abs_eap_am_tools_c * const tools,
    56 		const TEapRequests if_request);
    79 		const TEapRequests if_request);
    57 
    80 
    58 	/**
    81 	/**
    59 	 * Destructor.
    82 	 * Destructor.
    60 	 */
    83 	 */
    61     EAP_FUNC_IMPORT virtual ~eap_am_message_if_symbian_c();
    84     EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H virtual ~eap_am_message_if_symbian_c();
    62 
    85 
    63 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    86 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    64 	// Functions from eap_am_message_if_c.
    87 	// Functions from eap_am_message_if_c.
    65 
    88 
    66     EAP_FUNC_IMPORT bool get_is_valid();
    89     EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H bool get_is_valid();
    67 
    90 
    68     EAP_FUNC_IMPORT void set_partner(abs_eap_am_message_if_c * const client);
    91     EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H void set_partner(abs_eap_am_message_if_c * const client);
    69 
    92 
    70 	/// Function receives the data message from lower layer.
    93 	/// Function receives the data message from lower layer.
    71 	/// Data is formatted to Attribute-Value Pairs.
    94 	/// Data is formatted to Attribute-Value Pairs.
    72 	/// Look at eap_tlv_header_c and eap_tlv_message_data_c.
    95 	/// Look at eap_tlv_header_c and eap_tlv_message_data_c.
    73     EAP_FUNC_IMPORT eap_status_e process_data(const void * const data, const u32_t length);
    96     EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H eap_status_e process_data(const void * const data, const u32_t length);
    74 
    97 
    75 	// This is documented in abs_eap_stack_interface_c::configure().
    98 	// This is documented in abs_eap_stack_interface_c::configure().
    76     EAP_FUNC_IMPORT eap_status_e configure(
    99     EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H eap_status_e configure(
    77 		const eap_variable_data_c * const client_configuration);
   100 		const eap_variable_data_c * const client_configuration);
    78 
   101 
    79 	// This is documented in abs_eap_stack_interface_c::shutdown().
   102 	// This is documented in abs_eap_stack_interface_c::shutdown().
    80     EAP_FUNC_IMPORT eap_status_e shutdown();
   103     EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H eap_status_e shutdown();
    81 
   104 
    82 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   105 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    83 	// Functions from MSendPacketHandler.
   106 	// Functions from MSendPacketHandler.
    84 
   107 
    85 	/// Function sends the data message to lower layer.
   108 	/// Function sends the data message to lower layer.
    86 	/// Data is formatted to Attribute-Value Pairs.
   109 	/// Data is formatted to Attribute-Value Pairs.
    87 	/// Look at eap_tlv_header_c and eap_tlv_message_data_c.
   110 	/// Look at eap_tlv_header_c and eap_tlv_message_data_c.
    88     EAP_FUNC_IMPORT eap_status_e send_data(const TDesC8& message);
   111     EAP_FUNC_VISIBILITY_EAP_AM_MESSAGE_IF_SYMBIAN_H eap_status_e send_data(const TDesC8& message);
    89 
   112 
    90 
   113 
    91 private:
   114 private:
    92 
   115 
    93 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
   116 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -