eapol/eapol_framework/eapol_symbian/eap_server/include/eap_loaded_type.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 31 Aug 2010 15:16:37 +0300
branchRCL_3
changeset 18 bad0cc58d154
permissions -rw-r--r--
Revision: 201029 Kit: 201035

/*
* Copyright (c) 2009-2010 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of the License "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  This class stores the information on loaded EAP-type plugin.
*
*/

/*
* %version: 5 %
*/

#if !defined(_EAP_LOADED_TYPE_H_)
#define _EAP_LOADED_TYPE_H_

#include "eap_tools.h"
#include "eap_status.h"
#include "eap_am_export.h"
#include "eap_expanded_type.h"
#include "eap_array.h"
#include "eap_database_reference_if.h"
#include "eap_am_plugin.h"
#include "eap_process_tlv_message_data.h"
#include <EapTypePlugin.h>

/** @file */

/// This class stores the information on loaded EAP-type plugin.
class EAP_EXPORT eap_loaded_type_c
{

private:

	// ----------------------------------------------------------------------

	abs_eap_am_tools_c * const m_am_tools;

	CEapTypePlugin * const m_type_plugin;

	const eap_type_value_e m_eap_type;

	const u32_t m_index_type;

	const u32_t m_index;

	// ----------------------------------------------------------------------

public:

	// ----------------------------------------------------------------------

	// Destructor will delete type_plugin. So pass only object allocated from heap.
	eap_loaded_type_c(
		abs_eap_am_tools_c * const tools,
		CEapTypePlugin * const type_plugin,
		const eap_type_value_e eap_type,
		const u32_t index_type,
		const u32_t index);

	virtual ~eap_loaded_type_c();

	i32_t compare(const eap_loaded_type_c * const right);

	CEapTypePlugin * get_type_plugin();

	eap_type_value_e get_eap_type() const;

	u32_t get_index_type() const;

	u32_t get_index() const;

	// ----------------------------------------------------------------------
};

#endif //#if !defined(_EAP_LOADED_TYPE_H_)


//--------------------------------------------------
// End