eapol/eapol_framework/eapol_symbian/eap_if/include/EapCoreInterface.h
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     1 /*
       
     2 * Copyright (c) 2001-2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the License "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  EAP and WLAN authentication protocols.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 9 %
       
    20 */
       
    21 
       
    22 #ifndef EAPCOREINTERFACE_H_
       
    23 #define EAPCOREINTERFACE_H_
       
    24 
       
    25 
       
    26 #include "abs_eap_am_message_if.h"
       
    27 #include "eap_am_message_if.h"
       
    28 #include "EapSendInterface.h"
       
    29 #include "EapProcessInterface.h"
       
    30 #include "EapServerClientDef.h"
       
    31 
       
    32 class CEapCoreInterface : 
       
    33     public CBase,
       
    34     public MEapSendInterface,
       
    35     public eap_am_message_if_c
       
    36 
       
    37     {
       
    38 public:
       
    39     /**
       
    40      * Two-phased constructor.
       
    41      */
       
    42     CEapCoreInterface(const u32_t MTU);
       
    43     
       
    44     /**
       
    45      * Destructor.
       
    46      */
       
    47     virtual ~CEapCoreInterface();
       
    48 
       
    49 public: // New functions
       
    50     
       
    51     /**
       
    52      * From eap_am_message_if_c 
       
    53      * Initialize interface to EAPOL or WAPI.
       
    54      * @since S60 v9.2
       
    55      */
       
    56 
       
    57     EAP_FUNC_IMPORT bool get_is_valid();
       
    58  
       
    59     /// Function receives the data message from lower layer.
       
    60     /// Data is formatted to Attribute-Value Pairs.
       
    61     /// Look at eap_tlv_header_c and eap_tlv_message_data_c.
       
    62     EAP_FUNC_IMPORT eap_status_e process_data(const void * const data, const u32_t length);
       
    63 
       
    64     // This is documented in abs_eap_stack_interface_c::configure().
       
    65     EAP_FUNC_IMPORT eap_status_e configure(
       
    66 		const eap_variable_data_c * const client_configuration);
       
    67 
       
    68     // This is documented in abs_eap_stack_interface_c::shutdown().
       
    69     EAP_FUNC_IMPORT eap_status_e shutdown();
       
    70 
       
    71     EAP_FUNC_IMPORT void set_partner(abs_eap_am_message_if_c * const client);
       
    72     
       
    73     /**
       
    74   * from MEapSendInterface 
       
    75      */
       
    76     EAP_FUNC_IMPORT TInt SendData(
       
    77         const void * const aData, 
       
    78         const TInt aLength );
       
    79 
       
    80     EAP_FUNC_IMPORT CEapProcessInterface* ConstrucL(abs_eap_am_tools_c * const tools );
       
    81 
       
    82 private:
       
    83     
       
    84     
       
    85     abs_eap_am_message_if_c* iClient;
       
    86     TBool iIsValid;
       
    87     abs_eap_am_tools_c* iTools;
       
    88     CEapCoreInterface* iEapCoreInterface;
       
    89     CEapProcessInterface* iServer;
       
    90     TUint32 iMTU;
       
    91     };
       
    92 
       
    93 #endif /* EAPCOREINTERFACE_H_ */