26
|
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: This class stores the information on loaded EAP-type plugin.
|
|
15 |
*
|
|
16 |
*/
|
|
17 |
|
|
18 |
/*
|
|
19 |
* %version: 5 %
|
|
20 |
*/
|
|
21 |
|
|
22 |
#if !defined(_EAP_LOADED_TYPE_H_)
|
|
23 |
#define _EAP_LOADED_TYPE_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_plugin.h"
|
|
32 |
#include "eap_process_tlv_message_data.h"
|
|
33 |
#include <EapTypePlugin.h>
|
|
34 |
|
|
35 |
/** @file */
|
|
36 |
|
|
37 |
/// This class stores the information on loaded EAP-type plugin.
|
|
38 |
class EAP_EXPORT eap_loaded_type_c
|
|
39 |
{
|
|
40 |
|
|
41 |
private:
|
|
42 |
|
|
43 |
// ----------------------------------------------------------------------
|
|
44 |
|
|
45 |
abs_eap_am_tools_c * const m_am_tools;
|
|
46 |
|
|
47 |
CEapTypePlugin * const m_type_plugin;
|
|
48 |
|
|
49 |
const eap_type_value_e m_eap_type;
|
|
50 |
|
|
51 |
const u32_t m_index_type;
|
|
52 |
|
|
53 |
const u32_t m_index;
|
|
54 |
|
|
55 |
// ----------------------------------------------------------------------
|
|
56 |
|
|
57 |
public:
|
|
58 |
|
|
59 |
// ----------------------------------------------------------------------
|
|
60 |
|
|
61 |
// Destructor will delete type_plugin. So pass only object allocated from heap.
|
|
62 |
eap_loaded_type_c(
|
|
63 |
abs_eap_am_tools_c * const tools,
|
|
64 |
CEapTypePlugin * const type_plugin,
|
|
65 |
const eap_type_value_e eap_type,
|
|
66 |
const u32_t index_type,
|
|
67 |
const u32_t index);
|
|
68 |
|
|
69 |
virtual ~eap_loaded_type_c();
|
|
70 |
|
|
71 |
i32_t compare(const eap_loaded_type_c * const right);
|
|
72 |
|
|
73 |
CEapTypePlugin * get_type_plugin();
|
|
74 |
|
|
75 |
eap_type_value_e get_eap_type() const;
|
|
76 |
|
|
77 |
u32_t get_index_type() const;
|
|
78 |
|
|
79 |
u32_t get_index() const;
|
|
80 |
|
|
81 |
// ----------------------------------------------------------------------
|
|
82 |
};
|
|
83 |
|
|
84 |
#endif //#if !defined(_EAP_LOADED_TYPE_H_)
|
|
85 |
|
|
86 |
|
|
87 |
//--------------------------------------------------
|
|
88 |
// End
|