eapol/eapol_framework/eapol_symbian/eap_server/src/EapServerStrings.cpp
branchRCL_3
changeset 46 c74b3d9f6b9e
parent 45 bad0cc58d154
child 55 9c2aa05919d9
equal deleted inserted replaced
45:bad0cc58d154 46:c74b3d9f6b9e
     1 /*
       
     2 * Copyright (c) 2009-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: 7 %
       
    20 */
       
    21 
       
    22 // This is enumeration of EAPOL source code.
       
    23 #if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
       
    24 	#undef EAP_FILE_NUMBER_ENUM
       
    25 	#define EAP_FILE_NUMBER_ENUM 714
       
    26 	#undef EAP_FILE_NUMBER_DATE
       
    27 	#define EAP_FILE_NUMBER_DATE 1127594498
       
    28 #endif //#if defined(USE_EAP_MINIMUM_RELEASE_TRACES)
       
    29 
       
    30 
       
    31 
       
    32 /** @file */
       
    33 
       
    34 #include "EapServerStrings.h"
       
    35 #include "eap_tools.h"
       
    36 
       
    37 //------------------------------------------------------------------------------
       
    38 
       
    39 EXPORT_C EapServerStrings::~EapServerStrings()
       
    40 {
       
    41 }
       
    42 
       
    43 //------------------------------------------------------------------------------
       
    44 
       
    45 EXPORT_C EapServerStrings::EapServerStrings()
       
    46 {
       
    47 }
       
    48 
       
    49 //------------------------------------------------------------------------------
       
    50 
       
    51 EXPORT_C eap_const_string EapServerStrings::GetEapRequestsString(const TEapRequests request)
       
    52 {
       
    53 
       
    54 #if defined(USE_EAP_TRACE_STRINGS)
       
    55 	EAP_IF_RETURN_STRING(request, EEapNone)
       
    56 	else EAP_IF_RETURN_STRING(request, EEapCoreIfNew)
       
    57 	else EAP_IF_RETURN_STRING(request, EEapPluginNew)
       
    58 	else EAP_IF_RETURN_STRING(request, EEapSettingsNew)
       
    59 	else EAP_IF_RETURN_STRING(request, EEapCoreProcessData)
       
    60 	else EAP_IF_RETURN_STRING(request, EEapPluginProcessData)
       
    61 	else EAP_IF_RETURN_STRING(request, EEapSettingsProcessData)
       
    62 	else EAP_IF_RETURN_STRING(request, EEapCoreSendData)
       
    63 	else EAP_IF_RETURN_STRING(request, EEapPluginSendData)
       
    64 	else EAP_IF_RETURN_STRING(request, EEapSettingsSendData)
       
    65 	else EAP_IF_RETURN_STRING(request, EEapIfReqReceive)
       
    66 	else EAP_IF_RETURN_STRING(request, EEapIfCancelReceive)
       
    67 	else EAP_IF_RETURN_STRING(request, EEapPacStoreNew)
       
    68 	else EAP_IF_RETURN_STRING(request, EEapPacStoreProcessData)
       
    69 	else EAP_IF_RETURN_STRING(request, EEapPacStoreSendData)
       
    70 	else EAP_IF_RETURN_STRING(request, EWapiCoreIfNew)
       
    71 	else EAP_IF_RETURN_STRING(request, EWapiSettingsNew)
       
    72 	else EAP_IF_RETURN_STRING(request, EWapiCoreProcessData)
       
    73 	else EAP_IF_RETURN_STRING(request, EWapiSettingsProcessData)
       
    74 	else EAP_IF_RETURN_STRING(request, EWapiCoreSendData)
       
    75 	else EAP_IF_RETURN_STRING(request, EWapiSettingsSendData)
       
    76 
       
    77 	else
       
    78 #endif // #if defined(USE_EAP_TRACE_STRINGS)
       
    79 	{
       
    80 		EAP_UNREFERENCED_PARAMETER(request);
       
    81 		return EAPL("Unknown TEapRequests");
       
    82 	}
       
    83 
       
    84 }
       
    85 
       
    86 //------------------------------------------------------------------------------
       
    87 
       
    88 EXPORT_C eap_const_string EapServerStrings::GetEapRequestsString(const TInt request)
       
    89 {
       
    90 	return EapServerStrings::GetEapRequestsString(static_cast<TEapRequests>(request));
       
    91 }
       
    92 
       
    93 //------------------------------------------------------------------------------
       
    94 // End.