26
|
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 |
/*
|
49
|
19 |
* %version: 27 %
|
26
|
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 |
#include "WapiCoreIf.h"
|
|
33 |
#include "WapiSettingsIf.h"
|
|
34 |
|
|
35 |
#if defined(USE_EAP_PAC_STORE_IF)
|
|
36 |
#include "PacStoreIf.h"
|
|
37 |
#endif //#if defined(USE_EAP_PAC_STORE_IF)
|
|
38 |
|
|
39 |
#include "EapMessageQueue.h"
|
|
40 |
#include "AbsEapProcessSendInterface.h"
|
|
41 |
|
49
|
42 |
|
|
43 |
enum CEapServerProcessHandlerState
|
|
44 |
{
|
|
45 |
EapServerProcessHandlerState_None,
|
|
46 |
EapServerProcessHandlerState_Send,
|
|
47 |
EapServerProcessHandlerState_All,
|
|
48 |
};
|
|
49 |
|
26
|
50 |
class CEapServerProcessHandler
|
|
51 |
: public CActive
|
|
52 |
, public AbsEapSendInterface
|
|
53 |
{
|
|
54 |
|
|
55 |
public:
|
|
56 |
|
|
57 |
virtual ~CEapServerProcessHandler();
|
|
58 |
|
|
59 |
void ConstructL(AbsEapProcessSendInterface* const client, abs_eap_am_tools_c * const tools);
|
|
60 |
|
|
61 |
static CEapServerProcessHandler* NewL();
|
|
62 |
|
|
63 |
void SaveMessage(TEapRequests message, const void * const data, const TUint length);
|
|
64 |
|
|
65 |
eap_status_e SendData(const void * const data, const u32_t length, TEapRequests message);
|
|
66 |
|
49
|
67 |
void Activate(const CEapServerProcessHandlerState aState);
|
26
|
68 |
|
|
69 |
private:
|
|
70 |
|
|
71 |
CEapServerProcessHandler();
|
|
72 |
|
|
73 |
|
|
74 |
//from CActive
|
|
75 |
|
|
76 |
void DoCancel();
|
|
77 |
void RunL();
|
|
78 |
TInt RunError(TInt aError);
|
|
79 |
|
|
80 |
|
|
81 |
AbsEapProcessSendInterface * iClient;
|
|
82 |
abs_eap_am_tools_c * iTools;
|
|
83 |
CEapCoreIf * iEapCore;
|
|
84 |
CEapPluginIf* iEapPlugin;
|
|
85 |
CEapSettingsIf* iEapSettings;
|
|
86 |
|
|
87 |
CWapiCoreIf * iWapiCore;
|
49
|
88 |
CWapiSettingsIf* iWapiSettings;
|
26
|
89 |
|
|
90 |
#if defined(USE_EAP_PAC_STORE_IF) // JPH: does not compile anymore
|
|
91 |
CPacStoreIf* iPacStore;
|
|
92 |
#endif //#if defined(USE_EAP_PAC_STORE_IF) // JPH: does not compile anymore
|
|
93 |
|
49
|
94 |
EapMessageQueue* iEapSendMessageQueue;
|
|
95 |
EapMessageQueue* iEapProcessMessageQueue;
|
26
|
96 |
|
49
|
97 |
const EapMessageBuffer * iProcessMessage;
|
|
98 |
CEapServerProcessHandlerState iHandlerState;
|
26
|
99 |
|
|
100 |
};
|
|
101 |
|
|
102 |
#endif /* EAPPROCESSHANDLER_H_ */
|