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: Class is interface from user of EAP-general settings to eap_general_settings_client_message_if_c.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
49
|
19 |
* %version: 8 %
|
26
|
20 |
*/
|
|
21 |
|
|
22 |
#if !defined(_EAP_GENERAL_SETTINGS_MESSAGE_BASE_H_)
|
|
23 |
#define _EAP_GENERAL_SETTINGS_MESSAGE_BASE_H_
|
|
24 |
|
|
25 |
#include "eap_tools.h"
|
|
26 |
#include "eap_am_export.h"
|
49
|
27 |
// Start: added by script change_export_macros.sh.
|
|
28 |
#if defined(EAP_NO_EXPORT_EAP_GENERAL_SETTINGS_MESSAGE_H)
|
|
29 |
#define EAP_CLASS_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_NONSHARABLE
|
|
30 |
#define EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H
|
|
31 |
#define EAP_C_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H
|
|
32 |
#define EAP_FUNC_EXPORT_EAP_GENERAL_SETTINGS_MESSAGE_H
|
|
33 |
#define EAP_C_FUNC_EXPORT_EAP_GENERAL_SETTINGS_MESSAGE_H
|
|
34 |
#elif defined(EAP_EXPORT_EAP_GENERAL_SETTINGS_MESSAGE_H)
|
|
35 |
#define EAP_CLASS_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_EXPORT
|
|
36 |
#define EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_FUNC_EXPORT
|
|
37 |
#define EAP_C_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_C_FUNC_EXPORT
|
|
38 |
#define EAP_FUNC_EXPORT_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_FUNC_EXPORT
|
|
39 |
#define EAP_C_FUNC_EXPORT_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_C_FUNC_EXPORT
|
|
40 |
#else
|
|
41 |
#define EAP_CLASS_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_IMPORT
|
|
42 |
#define EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_FUNC_IMPORT
|
|
43 |
#define EAP_C_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H EAP_C_FUNC_IMPORT
|
|
44 |
#define EAP_FUNC_EXPORT_EAP_GENERAL_SETTINGS_MESSAGE_H
|
|
45 |
#define EAP_C_FUNC_EXPORT_EAP_GENERAL_SETTINGS_MESSAGE_H
|
|
46 |
#endif
|
|
47 |
// End: added by script change_export_macros.sh.
|
26
|
48 |
|
|
49 |
class abs_eap_general_settings_message_c;
|
|
50 |
class eap_method_settings_c;
|
|
51 |
|
|
52 |
/// Class is interface from user of EAP-general settings to eap_general_settings_client_message_if_c.
|
49
|
53 |
class EAP_CLASS_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H eap_general_settings_message_c
|
26
|
54 |
{
|
|
55 |
private:
|
|
56 |
//--------------------------------------------------
|
|
57 |
|
|
58 |
|
|
59 |
//--------------------------------------------------
|
|
60 |
protected:
|
|
61 |
//--------------------------------------------------
|
|
62 |
|
|
63 |
//--------------------------------------------------
|
|
64 |
public:
|
|
65 |
//--------------------------------------------------
|
|
66 |
|
|
67 |
/**
|
|
68 |
* The destructor of the eap_core class does nothing special.
|
|
69 |
*/
|
49
|
70 |
EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H virtual ~eap_general_settings_message_c();
|
26
|
71 |
|
|
72 |
/**
|
|
73 |
* The constructor initializes member attributes.
|
|
74 |
*/
|
49
|
75 |
EAP_FUNC_VISIBILITY_EAP_GENERAL_SETTINGS_MESSAGE_H eap_general_settings_message_c();
|
26
|
76 |
|
|
77 |
/**
|
|
78 |
* This function must reset the state of object to same as
|
|
79 |
* state was after the configure() function call.
|
|
80 |
* If object reset succeeds this function must return eap_status_ok.
|
|
81 |
* If object reset fails this function must return corresponding error status.
|
|
82 |
* @return This function returns the status of reset operation.
|
|
83 |
*/
|
|
84 |
virtual eap_status_e reset() = 0;
|
|
85 |
|
|
86 |
// This is documented in abs_eap_stack_interface_c::configure().
|
|
87 |
virtual eap_status_e configure() = 0;
|
|
88 |
|
|
89 |
// This is documented in abs_eap_stack_interface_c::shutdown().
|
|
90 |
virtual eap_status_e shutdown() = 0;
|
|
91 |
|
|
92 |
// This is documented in abs_eap_stack_interface_c::get_is_valid().
|
|
93 |
virtual bool get_is_valid() = 0;
|
|
94 |
|
|
95 |
virtual eap_status_e get_eap_methods(const eap_method_settings_c * const internal_settings) = 0;
|
|
96 |
|
|
97 |
virtual eap_status_e set_eap_methods(const eap_method_settings_c * const internal_settings) = 0;
|
|
98 |
|
|
99 |
virtual eap_status_e get_certificate_lists(const eap_method_settings_c * const internal_settings) = 0;
|
|
100 |
|
|
101 |
virtual eap_status_e delete_all_eap_settings(const eap_method_settings_c * const internal_settings) = 0;
|
|
102 |
|
|
103 |
virtual eap_status_e copy_all_eap_settings(const eap_method_settings_c * const internal_settings) = 0;
|
|
104 |
|
|
105 |
//--------------------------------------------------
|
|
106 |
}; // class eap_general_settings_message_c
|
|
107 |
|
|
108 |
/// Function creates new eap_general_settings_message_c object.
|
|
109 |
eap_general_settings_message_c * new_eap_general_settings_client_message_if_c(
|
|
110 |
abs_eap_am_tools_c * const tools,
|
|
111 |
abs_eap_general_settings_message_c * const partner);
|
|
112 |
|
|
113 |
//--------------------------------------------------
|
|
114 |
|
|
115 |
#endif //#if !defined(_EAP_GENERAL_SETTINGS_MESSAGE_BASE_H_)
|
|
116 |
|
|
117 |
//--------------------------------------------------
|
|
118 |
|
|
119 |
|
|
120 |
|
|
121 |
// End.
|