eapol/eapol_framework/wapi_symbian/wlanwapiif/inc/wlan_wapi_if_implementation.h
changeset 17 8840d3e38314
equal deleted inserted replaced
2:1c7bc153c08e 17:8840d3e38314
       
     1 /*
       
     2 * ============================================================================
       
     3 *  Name        : ./accesssec/eapol/eapol_framework/wapi_symbian/wlanwapiif/inc/wlan_wapi_if_implementation.h
       
     4 *  Part of     : WAPI / WAPI       *** Info from the SWAD
       
     5 *  Description : WAPI authentication
       
     6 *  Version     : %version: 5 % << Don't touch! Updated by Synergy at check-out.
       
     7 *
       
     8 *  Copyright © 2001-2009 Nokia.  All rights reserved.
       
     9 *  This material, including documentation and any related computer
       
    10 *  programs, is protected by copyright controlled by Nokia.  All
       
    11 *  rights are reserved.  Copying, including reproducing, storing,
       
    12 *  adapting or translating, any or all of this material requires the
       
    13 *  prior written consent of Nokia.  This material also contains
       
    14 *  confidential information which may not be disclosed to others
       
    15 *  without the prior written consent of Nokia.
       
    16 * ============================================================================
       
    17 * Template version: 4.2
       
    18 */
       
    19 
       
    20 #ifndef _WLAN_WAPI_INTERFACE_IMPLEMENTATION_H_
       
    21 #define _WLAN_WAPI_INTERFACE_IMPLEMENTATION_H_
       
    22 
       
    23 // INCLUDES
       
    24 #include <e32std.h>
       
    25 #include <wlaneapolclient.h>
       
    26 
       
    27 #include "abs_wapi_message_wlan_authentication.h"
       
    28 
       
    29 /**
       
    30  * Implementation for MWlanEapolInterface interface.
       
    31  *
       
    32  * @lib wlanwapiif.dll
       
    33  */
       
    34 class CWlanWAPIInterfaceImplementation
       
    35 : public CWlanEapolClient
       
    36 , public abs_wapi_message_wlan_authentication_c
       
    37 {
       
    38 
       
    39 public:
       
    40 
       
    41 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       
    42 	// Functions from CWlanEapolClient.
       
    43 
       
    44 	/**
       
    45 	 * Static constructor.
       
    46 	 * @param aPartner Pointer to callback instance.
       
    47 	 * @return Pointer to the constructed instance.
       
    48 	 */
       
    49 	static CWlanWAPIInterfaceImplementation* NewL( MWlanEapolCallbackInterface * aPartner );
       
    50 
       
    51 	/**
       
    52 	 * Destructor.
       
    53 	 */
       
    54 	virtual ~CWlanWAPIInterfaceImplementation();
       
    55 
       
    56 	/**
       
    57 	 * Configure plugin implementation.
       
    58 	 *
       
    59 	 * @since S60 v3.2
       
    60 	 * @param aHeaderOffset Offset of EAP-header in packet_send.
       
    61 	 * @param aMTU Maximum transfer unit (MTU).
       
    62 	 * @param aTrailerLength Length of trailer needed by lower levels..
       
    63 	 * @return Return value is specified in interface specification.
       
    64 	 */
       
    65 	virtual TInt Configure(
       
    66 		const TInt aHeaderOffset,
       
    67 		const TInt aMTU,
       
    68 		const TInt aTrailerLength);
       
    69 
       
    70 	/**
       
    71 	 * Shutdown plugin implementation.
       
    72 	 *
       
    73 	 * @since S60 v3.2
       
    74 	 * @return Return value is specified in interface specification.
       
    75 	 */        
       
    76 	virtual TInt Shutdown();
       
    77 
       
    78 	/**
       
    79 	 * Send data to EAPOL.
       
    80 	 *
       
    81 	 * @since S60 v3.2
       
    82 	 * @param aData Pointer to the data to be sent.
       
    83 	 * @param aLength Length of the data to be sent.
       
    84 	 * @return Return value is specified in interface specification.
       
    85 	 */
       
    86 	virtual TInt ProcessData(
       
    87 		const void * const aData, 
       
    88 		const TInt aLength );
       
    89 
       
    90 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       
    91 	// Functions from abs_eapol_message_wlan_authentication_c.
       
    92 
       
    93 	/// Function sends the data message to lower layer.
       
    94 	/// Data is formatted to Attribute-Value Pairs.
       
    95 	/// Look at eap_tlv_header_c and eap_tlv_message_data_c.
       
    96 	virtual wlan_eap_if_send_status_e send_data(const void * const data, const u32_t length);
       
    97 
       
    98 
       
    99 private:
       
   100 
       
   101     /**
       
   102      * C++ default constructor.
       
   103      */
       
   104     CWlanWAPIInterfaceImplementation();
       
   105 
       
   106     /**
       
   107      * Symbian 2nd phase constructor.
       
   108      */
       
   109     void ConstructL(MWlanEapolCallbackInterface * aPartner);
       
   110 
       
   111 	/**
       
   112 	 * The get_is_valid() function returns the status of the CWlanWAPIInterfaceImplementation object.
       
   113 	 * @return True indicates the object is initialized.
       
   114 	 */
       
   115 	bool get_is_valid();
       
   116 
       
   117 	// - - - - - - - - - - - - - - - - - - - - - - - - - - - -
       
   118 
       
   119 	abs_eap_am_tools_c * m_am_tools;
       
   120 
       
   121 	MWlanEapolCallbackInterface * m_partner;
       
   122 
       
   123 	wapi_message_wlan_authentication_c * m_wauth;
       
   124 
       
   125 	bool m_is_valid;
       
   126 
       
   127 };
       
   128 
       
   129 
       
   130 #endif // _WLAN_EAPOL_INTERFACE_IMPLEMENTATION_H_
       
   131 
       
   132 // End of file.