1 /* |
|
2 * Copyright (c) 2009-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: interface to PAC-store. |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 8 % |
|
20 */ |
|
21 |
|
22 #if !defined(_EAP_AM_PAC_STORE_SYMBIAN_H_) |
|
23 #define _EAP_AM_PAC_STORE_SYMBIAN_H_ |
|
24 |
|
25 #include "eap_tools.h" |
|
26 #include "eap_status.h" |
|
27 #include "eap_am_export.h" |
|
28 #include "eap_expanded_type.h" |
|
29 #include "eap_array.h" |
|
30 #include "eap_database_reference_if.h" |
|
31 #include "eap_am_pac_store.h" |
|
32 #include "eap_process_tlv_message_data.h" |
|
33 #include "pac_store_db_symbian.h" |
|
34 #include <d32dbms.h> |
|
35 |
|
36 class eap_method_settings_c; |
|
37 class abs_eap_am_pac_store_c; |
|
38 |
|
39 /** @file */ |
|
40 |
|
41 /// This class is the interface to PAC-store. |
|
42 class EAP_EXPORT eap_am_pac_store_symbian_c |
|
43 : public eap_am_pac_store_c |
|
44 { |
|
45 |
|
46 private: |
|
47 |
|
48 // ---------------------------------------------------------------------- |
|
49 |
|
50 abs_eap_am_tools_c * const m_am_tools; |
|
51 |
|
52 abs_eap_am_pac_store_c * m_partner; |
|
53 |
|
54 bool m_is_valid; |
|
55 |
|
56 /// Function shutdown() is called already. |
|
57 bool m_shutdown_was_called; |
|
58 |
|
59 TBool iClientCreated; |
|
60 TBool iPacStoreSessionOpened; |
|
61 |
|
62 CPacStoreDatabase* iClient; |
|
63 |
|
64 eap_variable_data_c m_PAC_store_password; |
|
65 |
|
66 // ---------------------------------------------------------------------- |
|
67 |
|
68 // ---------------------------------------------------------------------- |
|
69 |
|
70 public: |
|
71 |
|
72 // ---------------------------------------------------------------------- |
|
73 |
|
74 static eap_am_pac_store_c* new_eap_am_pac_store_symbian_c( |
|
75 abs_eap_am_tools_c * const tools, |
|
76 abs_eap_am_pac_store_c * const partner); |
|
77 |
|
78 eap_am_pac_store_symbian_c( |
|
79 abs_eap_am_tools_c * const tools, |
|
80 abs_eap_am_pac_store_c * const partner); |
|
81 |
|
82 virtual ~eap_am_pac_store_symbian_c(); |
|
83 |
|
84 EAP_FUNC_IMPORT bool get_is_valid(); |
|
85 |
|
86 // This is documented in abs_eap_stack_interface_c::configure(). |
|
87 EAP_FUNC_IMPORT eap_status_e configure(); |
|
88 |
|
89 // This is documented in abs_eap_stack_interface_c::shutdown(). |
|
90 EAP_FUNC_IMPORT eap_status_e shutdown(); |
|
91 |
|
92 EAP_FUNC_IMPORT eap_status_e open_pac_store(); |
|
93 |
|
94 EAP_FUNC_IMPORT eap_status_e create_device_seed(); |
|
95 |
|
96 EAP_FUNC_IMPORT eap_status_e is_master_key_present(); |
|
97 |
|
98 EAP_FUNC_IMPORT eap_status_e is_master_key_and_password_matching( |
|
99 const eap_variable_data_c * const pac_store_password); |
|
100 |
|
101 EAP_FUNC_IMPORT eap_status_e create_and_save_master_key( |
|
102 const eap_variable_data_c * const pac_store_password); |
|
103 |
|
104 EAP_FUNC_IMPORT eap_status_e compare_pac_store_password( |
|
105 eap_variable_data_c * const pac_store_password); |
|
106 |
|
107 EAP_FUNC_IMPORT eap_status_e is_pacstore_password_present(); |
|
108 |
|
109 EAP_FUNC_IMPORT eap_status_e set_pac_store_password( |
|
110 const eap_variable_data_c * pac_store_password); |
|
111 |
|
112 EAP_FUNC_IMPORT eap_status_e destroy_pac_store(); |
|
113 |
|
114 // ---------------------------------------------------------------------- |
|
115 }; |
|
116 |
|
117 #endif //#if !defined(_EAP_AM_PAC_STORE_SYMBIAN_H_) |
|
118 |
|
119 |
|
120 //-------------------------------------------------- |
|
121 // End |
|