eapol/eapol_framework/eapol_symbian/eap_server/include/EapSettingsIf.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-general-settings interface inside the EAP-server.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 10 %
       
    20 */
       
    21 
       
    22 #ifndef _EAP_SETTINGS_IF_H_
       
    23 #define _EAP_SETTINGS_IF_H_
       
    24 
       
    25 #include "abs_eap_am_message_if.h"
       
    26 #include "eap_am_message_if.h"
       
    27 #include "abs_eap_am_plugin.h"
       
    28 #include "eap_am_plugin.h"
       
    29 #include "eap_tools.h"
       
    30 #include "AbsEapSendInterface.h"
       
    31 
       
    32 //--------------------------------------------------
       
    33 
       
    34 /** @file */
       
    35 
       
    36 /// This class is the EAP-general-settings interface inside the EAP-server.
       
    37 class CEapSettingsIf
       
    38 : public CBase
       
    39 , public abs_eap_am_message_if_c
       
    40 {
       
    41 
       
    42 public:
       
    43 
       
    44     // ----------------------------------------------------------------------
       
    45 
       
    46     CEapSettingsIf(
       
    47         abs_eap_am_tools_c * const tools,
       
    48         eap_am_message_if_c * const server);
       
    49 
       
    50     virtual ~CEapSettingsIf();
       
    51 
       
    52     bool get_is_valid();
       
    53 
       
    54     eap_status_e configure(
       
    55 		const eap_variable_data_c * const client_configuration);
       
    56 
       
    57     void set_partner(AbsEapSendInterface * const client);
       
    58 
       
    59     eap_status_e send_data(const void * const data, const u32_t length);
       
    60 
       
    61     eap_status_e process_data(const void * const data, const u32_t length);
       
    62 
       
    63     eap_status_e shutdown();
       
    64 
       
    65     // ------------------------------------------------------
       
    66 
       
    67     static CEapSettingsIf * new_CEapSettingsIf(
       
    68         abs_eap_am_tools_c * const tools);
       
    69 
       
    70     // ----------------------------------------------------------------------
       
    71 
       
    72 private:
       
    73 
       
    74     // ----------------------------------------------------------------------
       
    75 
       
    76     /// This is pointer to the tools class.
       
    77     abs_eap_am_tools_c * const m_am_tools;
       
    78 
       
    79     // client interface
       
    80     AbsEapSendInterface * m_client_if;
       
    81 
       
    82     /// CEapSettingsIf deletes m_server_if in destructor.
       
    83     eap_am_message_if_c * m_server_if;
       
    84 
       
    85     bool m_use_asyncronous_test;
       
    86 
       
    87 	bool m_is_valid;
       
    88 
       
    89     // ----------------------------------------------------------------------
       
    90 
       
    91 };
       
    92 
       
    93 
       
    94 #endif /* _EAP_PLUGIN_IF_H_ */