eapol/eapol_framework/eapol_symbian/eap_server/include/EapServerProcessHandler.h
branchRCL_3
changeset 18 bad0cc58d154
equal deleted inserted replaced
17:30e048a7b597 18:bad0cc58d154
       
     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-server process handler.
       
    15 *
       
    16 */
       
    17 
       
    18 /*
       
    19 * %version: 22 %
       
    20 */
       
    21 
       
    22 
       
    23 #ifndef EAPPROCESSHANDLER_H_
       
    24 #define EAPPROCESSHANDLER_H_
       
    25 
       
    26 #include "EapServerClientDef.h"
       
    27 #include "AbsEapSendInterface.h"
       
    28 #include "EapCoreIf.h"
       
    29 #include "EapPluginIf.h"
       
    30 #include "EapSettingsIf.h"
       
    31 
       
    32 #if defined (USE_WAPI_CORE)
       
    33 #include "WapiCoreIf.h"
       
    34 #include "WapiSettingsIf.h"
       
    35 #endif
       
    36 
       
    37 #if defined(USE_EAP_PAC_STORE_IF)
       
    38 #include "PacStoreIf.h"
       
    39 #endif //#if defined(USE_EAP_PAC_STORE_IF)
       
    40 
       
    41 #include "EapMessageQueue.h"
       
    42 #include "AbsEapProcessSendInterface.h"
       
    43 
       
    44 class CEapServerProcessHandler
       
    45 : public CActive
       
    46 , public AbsEapSendInterface
       
    47 {
       
    48     
       
    49 public:
       
    50     
       
    51 	virtual ~CEapServerProcessHandler();
       
    52 
       
    53 	void ConstructL(AbsEapProcessSendInterface* const client, abs_eap_am_tools_c * const tools);
       
    54 
       
    55 	static CEapServerProcessHandler* NewL();
       
    56 
       
    57 	void SaveMessage(TEapRequests message, const void * const data, const TUint length);
       
    58 
       
    59 	eap_status_e SendData(const void * const data, const u32_t length, TEapRequests message);
       
    60 
       
    61 	void Activate();
       
    62 
       
    63 private:
       
    64 
       
    65 	CEapServerProcessHandler();
       
    66 
       
    67 
       
    68 	//from CActive
       
    69 
       
    70 	void DoCancel();
       
    71 	void RunL();
       
    72 	TInt RunError(TInt aError);
       
    73 
       
    74 
       
    75 	AbsEapProcessSendInterface * iClient;
       
    76 	abs_eap_am_tools_c * iTools;
       
    77 	CEapCoreIf * iEapCore;
       
    78 	CEapPluginIf* iEapPlugin;
       
    79 	CEapSettingsIf* iEapSettings;
       
    80 
       
    81 #if defined (USE_WAPI_CORE)
       
    82 	CWapiCoreIf * iWapiCore;
       
    83   CWapiSettingsIf* iWapiSettings;
       
    84 #endif
       
    85 
       
    86 #if defined(USE_EAP_PAC_STORE_IF) // JPH: does not compile anymore
       
    87     CPacStoreIf* iPacStore;
       
    88 #endif //#if defined(USE_EAP_PAC_STORE_IF) // JPH: does not compile anymore
       
    89 
       
    90 	EapMessageQueue* iEapMessageQueue;
       
    91 	
       
    92 
       
    93 };
       
    94     
       
    95 #endif /* EAPPROCESSHANDLER_H_ */