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