eapol/eapol_framework/eapol_symbian/am/type/gsmsim/symbian/plugin/simulator/src/EapSimSimulatorPlugin.cpp
changeset 0 c8830336c852
child 2 1c7bc153c08e
equal deleted inserted replaced
-1:000000000000 0:c8830336c852
       
     1 /*
       
     2 * Copyright (c) 2001-2006 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 // This is enumeration of EAPOL source code.
       
    20 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
       
    21 	#undef EAP_FILE_NUMBER_ENUM
       
    22 	#define EAP_FILE_NUMBER_ENUM 201 
       
    23 	#undef EAP_FILE_NUMBER_DATE 
       
    24 	#define EAP_FILE_NUMBER_DATE 1127594498 
       
    25 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
       
    26 
       
    27 
       
    28 #include "EapSimSimulatorPlugin.h"
       
    29 #include "EapSimSimulatorConfig.h"
       
    30 #include "eap_base_type.h"
       
    31 #include "eap_am_type_gsmsim_symbian_simulator.h"
       
    32 #include "eap_type_gsmsim.h"
       
    33 
       
    34 
       
    35 
       
    36 // ================= MEMBER FUNCTIONS =======================
       
    37 
       
    38 
       
    39 CEapSimSimulatorPlugin::CEapSimSimulatorPlugin() 
       
    40 	: iAmEapType(NULL),
       
    41 	iEapType(NULL),
       
    42 	iConfig(NULL)
       
    43 {
       
    44 }
       
    45 
       
    46 // ----------------------------------------------------------
       
    47 
       
    48 CEapSimSimulatorPlugin* CEapSimSimulatorPlugin::NewL()
       
    49 {
       
    50 	return new (ELeave) CEapSimSimulatorPlugin;
       
    51 }
       
    52 
       
    53 // ----------------------------------------------------------
       
    54 
       
    55 CEapSimSimulatorPlugin::~CEapSimSimulatorPlugin()
       
    56 {
       
    57 	delete iAmEapType;
       
    58 }
       
    59 
       
    60 // ----------------------------------------------------------
       
    61 
       
    62 CEapConfigInterface* CEapSimSimulatorPlugin::CreateConfigIfL(const TIndexType aIndexType, 
       
    63 													const TInt aIndex)
       
    64 {
       
    65 	EAP_UNREFERENCED_PARAMETER(aIndexType);
       
    66 	EAP_UNREFERENCED_PARAMETER(aIndex);
       
    67 	return NULL;
       
    68 }
       
    69 
       
    70 // ----------------------------------------------------------
       
    71 
       
    72 eap_base_type_c* CEapSimSimulatorPlugin::CreateTypeIfL(abs_eap_am_tools_c* const aTools, 
       
    73 										   abs_eap_base_type_c* const aPartner,
       
    74 										   const bool is_client_when_true,
       
    75 										   const TIndexType aIndexType,
       
    76 										   const TInt aIndex)
       
    77 {
       
    78 	iAmEapType = new (ELeave) eap_am_type_gsmsim_simulator_c(aTools, aPartner, aIndexType, aIndex);
       
    79 	iEapType = new (ELeave) eap_type_gsmsim_c(aTools, aPartner, iAmEapType, false /* free_am */, is_client_when_true);
       
    80 	return iEapType;
       
    81 }
       
    82 // End of file