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-configuration interface in the EAP-server. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 11 % |
|
20 */ |
|
21 |
|
22 |
|
23 #ifndef _EAP_PLUGIN_IF_H_ |
|
24 #define _EAP_PLUGIN_IF_H_ |
|
25 |
|
26 #include "abs_eap_am_message_if.h" |
|
27 #include "eap_am_message_if.h" |
|
28 #include "abs_eap_am_plugin.h" |
|
29 #include "eap_am_plugin.h" |
|
30 #include "eap_tools.h" |
|
31 #include "AbsEapSendInterface.h" |
|
32 |
|
33 //-------------------------------------------------- |
|
34 |
|
35 /** @file */ |
|
36 |
|
37 /// This class is the EAP-configuration interface in the EAP-server. |
|
38 class CEapPluginIf |
|
39 : public CBase |
|
40 , public abs_eap_am_message_if_c |
|
41 { |
|
42 |
|
43 public: |
|
44 |
|
45 // ---------------------------------------------------------------------- |
|
46 |
|
47 CEapPluginIf( |
|
48 abs_eap_am_tools_c * const tools, |
|
49 eap_am_message_if_c * const server); |
|
50 |
|
51 virtual ~CEapPluginIf(); |
|
52 |
|
53 bool get_is_valid(); |
|
54 |
|
55 eap_status_e configure( |
|
56 const eap_variable_data_c * const client_configuration); |
|
57 |
|
58 void set_partner(AbsEapSendInterface * const client); |
|
59 |
|
60 eap_status_e send_data(const void * const data, const u32_t length); |
|
61 |
|
62 eap_status_e process_data(const void * const data, const u32_t length); |
|
63 |
|
64 eap_status_e shutdown(); |
|
65 |
|
66 // ------------------------------------------------------ |
|
67 |
|
68 static CEapPluginIf * new_CEapPluginIf( |
|
69 abs_eap_am_tools_c * const tools); |
|
70 |
|
71 // ---------------------------------------------------------------------- |
|
72 |
|
73 private: |
|
74 |
|
75 // ---------------------------------------------------------------------- |
|
76 |
|
77 /// This is pointer to the tools class. |
|
78 abs_eap_am_tools_c * const m_am_tools; |
|
79 |
|
80 // client interface |
|
81 AbsEapSendInterface * m_client_if; |
|
82 |
|
83 /// CEapPluginIf deletes m_server_if in destructor. |
|
84 eap_am_message_if_c * m_server_if; |
|
85 |
|
86 bool m_use_asyncronous_test; |
|
87 |
|
88 bool m_is_valid; |
|
89 |
|
90 // ---------------------------------------------------------------------- |
|
91 |
|
92 }; |
|
93 |
|
94 |
|
95 #endif /* _EAP_PLUGIN_IF_H_ */ |
|