eapol/eapol_framework/eapol_symbian/eap_if/include/REapSession.h
changeset 52 c23bdf5a328a
parent 33 938269283a16
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: 21 %
    19 * %version: 22 %
    20 */
    20 */
    21 
    21 
    22 
    22 
    23 #ifndef EAPSESSION_H_
    23 #ifndef EAPSESSION_H_
    24 #define EAPSESSION_H_
    24 #define EAPSESSION_H_
    31 #include "EapScheduler.h"
    31 #include "EapScheduler.h"
    32 #include "eap_am_tools.h"
    32 #include "eap_am_tools.h"
    33 #include "eap_am_types.h"
    33 #include "eap_am_types.h"
    34 #include "SendPacketHandler.h"
    34 #include "SendPacketHandler.h"
    35 #include "EapMessageQueue.h"
    35 #include "EapMessageQueue.h"
       
    36 #include "eap_am_export.h"
       
    37 // Start: added by script change_export_macros.sh.
       
    38 #if defined(EAP_NO_EXPORT_REAPSESSION_H)
       
    39 	#define EAP_CLASS_VISIBILITY_REAPSESSION_H EAP_NONSHARABLE 
       
    40 	#define EAP_FUNC_VISIBILITY_REAPSESSION_H 
       
    41 	#define EAP_C_FUNC_VISIBILITY_REAPSESSION_H 
       
    42 	#define EAP_FUNC_EXPORT_REAPSESSION_H 
       
    43 	#define EAP_C_FUNC_EXPORT_REAPSESSION_H 
       
    44 #elif defined(EAP_EXPORT_REAPSESSION_H)
       
    45 	#define EAP_CLASS_VISIBILITY_REAPSESSION_H EAP_EXPORT 
       
    46 	#define EAP_FUNC_VISIBILITY_REAPSESSION_H EAP_FUNC_EXPORT 
       
    47 	#define EAP_C_FUNC_VISIBILITY_REAPSESSION_H EAP_C_FUNC_EXPORT 
       
    48 	#define EAP_FUNC_EXPORT_REAPSESSION_H EAP_FUNC_EXPORT 
       
    49 	#define EAP_C_FUNC_EXPORT_REAPSESSION_H EAP_C_FUNC_EXPORT 
       
    50 #else
       
    51 	#define EAP_CLASS_VISIBILITY_REAPSESSION_H EAP_IMPORT 
       
    52 	#define EAP_FUNC_VISIBILITY_REAPSESSION_H EAP_FUNC_IMPORT 
       
    53 	#define EAP_C_FUNC_VISIBILITY_REAPSESSION_H EAP_C_FUNC_IMPORT 
       
    54 	#define EAP_FUNC_EXPORT_REAPSESSION_H 
       
    55 	#define EAP_C_FUNC_EXPORT_REAPSESSION_H 
       
    56 #endif
       
    57 // End: added by script change_export_macros.sh.
       
    58 
    36 
    59 
    37 //----------------------------------------------------------------
    60 //----------------------------------------------------------------
    38 
    61 
    39 class MEapolPacketHandler
    62 class MEapolPacketHandler
    40     {
    63     {
    57     CEapCoreInterfaceImplementation* iClient;
    80     CEapCoreInterfaceImplementation* iClient;
    58     };
    81     };
    59 
    82 
    60 //----------------------------------------------------------------
    83 //----------------------------------------------------------------
    61 
    84 
    62 class EAP_EXPORT REapSession :  public RSessionBase
    85 class EAP_CLASS_VISIBILITY_REAPSESSION_H REapSession :  public RSessionBase
    63     {
    86     {
    64 public:
    87 public:
    65 
    88 
    66     // construct
    89     // construct
    67     inline REapSession()
    90     inline REapSession()
    72 		, iClient(0)
    95 		, iClient(0)
    73 		, iEapMessageQueue(0)
    96 		, iEapMessageQueue(0)
    74 	{
    97 	{
    75 	};
    98 	};
    76 
    99 
    77 	EAP_FUNC_IMPORT virtual ~REapSession();
   100 	EAP_FUNC_VISIBILITY_REAPSESSION_H virtual ~REapSession();
    78 
   101 
    79 
   102 
    80 	EAP_FUNC_IMPORT void ConnectL(
   103 	EAP_FUNC_VISIBILITY_REAPSESSION_H void ConnectL(
    81 		abs_eap_am_tools_c * const tools,
   104 		abs_eap_am_tools_c * const tools,
    82 		MSendPacketHandler * Client,
   105 		MSendPacketHandler * Client,
    83 		const TBuf<KMaxServerExe> ServerName,
   106 		const TBuf<KMaxServerExe> ServerName,
    84 		const TBuf<KMaxServerExe> ServerExe,
   107 		const TBuf<KMaxServerExe> ServerExe,
    85 		const void * const aConfigurationData,
   108 		const void * const aConfigurationData,
    86 		const TInt aConfigurationDataLength,
   109 		const TInt aConfigurationDataLength,
    87 		const TEapRequests aIfRequest);
   110 		const TEapRequests aIfRequest);
    88 
   111 
    89     EAP_FUNC_IMPORT void Close();
   112     EAP_FUNC_VISIBILITY_REAPSESSION_H void Close();
    90 
   113 
    91     EAP_FUNC_IMPORT bool get_is_valid();
   114     EAP_FUNC_VISIBILITY_REAPSESSION_H bool get_is_valid();
    92  
   115  
    93     /// Function receives the data message from lower layer.
   116     /// Function receives the data message from lower layer.
    94     /// Data is formatted to Attribute-Value Pairs.
   117     /// Data is formatted to Attribute-Value Pairs.
    95     /// Look at eap_tlv_header_c and eap_tlv_message_data_c.
   118     /// Look at eap_tlv_header_c and eap_tlv_message_data_c.
    96     EAP_FUNC_IMPORT eap_status_e process_data(const TEapRequests aMessageType, const void * const data, const u32_t length);
   119     EAP_FUNC_VISIBILITY_REAPSESSION_H eap_status_e process_data(const TEapRequests aMessageType, const void * const data, const u32_t length);
    97 
   120 
    98 	const EapMessageBuffer * GetFirstMessage();
   121 	const EapMessageBuffer * GetFirstMessage();
    99 
   122 
   100 	TInt DeleteFirstMessage();
   123 	TInt DeleteFirstMessage();
   101 
   124