27 #include "AbsEapSendInterface.h" |
27 #include "AbsEapSendInterface.h" |
28 #include "EapCoreIf.h" |
28 #include "EapCoreIf.h" |
29 #include "EapPluginIf.h" |
29 #include "EapPluginIf.h" |
30 #include "EapSettingsIf.h" |
30 #include "EapSettingsIf.h" |
31 |
31 |
32 #if defined (USE_WAPI_CORE) |
|
33 #include "WapiCoreIf.h" |
32 #include "WapiCoreIf.h" |
34 #include "WapiSettingsIf.h" |
33 #include "WapiSettingsIf.h" |
35 #endif |
|
36 |
34 |
37 #if defined(USE_EAP_PAC_STORE_IF) |
35 #if defined(USE_EAP_PAC_STORE_IF) |
38 #include "PacStoreIf.h" |
36 #include "PacStoreIf.h" |
39 #endif //#if defined(USE_EAP_PAC_STORE_IF) |
37 #endif //#if defined(USE_EAP_PAC_STORE_IF) |
40 |
38 |
41 #include "EapMessageQueue.h" |
39 #include "EapMessageQueue.h" |
42 #include "AbsEapProcessSendInterface.h" |
40 #include "AbsEapProcessSendInterface.h" |
|
41 |
|
42 |
|
43 enum CEapServerProcessHandlerState |
|
44 { |
|
45 EapServerProcessHandlerState_None, |
|
46 EapServerProcessHandlerState_Send, |
|
47 EapServerProcessHandlerState_All, |
|
48 }; |
43 |
49 |
44 class CEapServerProcessHandler |
50 class CEapServerProcessHandler |
45 : public CActive |
51 : public CActive |
46 , public AbsEapSendInterface |
52 , public AbsEapSendInterface |
47 { |
53 { |
56 |
62 |
57 void SaveMessage(TEapRequests message, const void * const data, const TUint length); |
63 void SaveMessage(TEapRequests message, const void * const data, const TUint length); |
58 |
64 |
59 eap_status_e SendData(const void * const data, const u32_t length, TEapRequests message); |
65 eap_status_e SendData(const void * const data, const u32_t length, TEapRequests message); |
60 |
66 |
61 void Activate(); |
67 void Activate(const CEapServerProcessHandlerState aState); |
62 |
68 |
63 private: |
69 private: |
64 |
70 |
65 CEapServerProcessHandler(); |
71 CEapServerProcessHandler(); |
66 |
72 |
76 abs_eap_am_tools_c * iTools; |
82 abs_eap_am_tools_c * iTools; |
77 CEapCoreIf * iEapCore; |
83 CEapCoreIf * iEapCore; |
78 CEapPluginIf* iEapPlugin; |
84 CEapPluginIf* iEapPlugin; |
79 CEapSettingsIf* iEapSettings; |
85 CEapSettingsIf* iEapSettings; |
80 |
86 |
81 #if defined (USE_WAPI_CORE) |
|
82 CWapiCoreIf * iWapiCore; |
87 CWapiCoreIf * iWapiCore; |
83 CWapiSettingsIf* iWapiSettings; |
88 CWapiSettingsIf* iWapiSettings; |
84 #endif |
|
85 |
89 |
86 #if defined(USE_EAP_PAC_STORE_IF) // JPH: does not compile anymore |
90 #if defined(USE_EAP_PAC_STORE_IF) // JPH: does not compile anymore |
87 CPacStoreIf* iPacStore; |
91 CPacStoreIf* iPacStore; |
88 #endif //#if defined(USE_EAP_PAC_STORE_IF) // JPH: does not compile anymore |
92 #endif //#if defined(USE_EAP_PAC_STORE_IF) // JPH: does not compile anymore |
89 |
93 |
90 EapMessageQueue* iEapMessageQueue; |
94 EapMessageQueue* iEapSendMessageQueue; |
|
95 EapMessageQueue* iEapProcessMessageQueue; |
91 |
96 |
|
97 const EapMessageBuffer * iProcessMessage; |
|
98 CEapServerProcessHandlerState iHandlerState; |
92 |
99 |
93 }; |
100 }; |
94 |
101 |
95 #endif /* EAPPROCESSHANDLER_H_ */ |
102 #endif /* EAPPROCESSHANDLER_H_ */ |