eapol/eapol_framework/eapol_common/include/eap_type_selection.h
changeset 0 c8830336c852
child 2 1c7bc153c08e
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/eapol/eapol_framework/eapol_common/include/eap_type_selection.h	Thu Dec 17 08:47:43 2009 +0200
@@ -0,0 +1,102 @@
+/*
+* Copyright (c) 2001-2006 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:  EAP and WLAN authentication protocols.
+*
+*/
+
+
+
+
+#if !defined(_EAP_TYPE_SELECTION_H_)
+#define _EAP_TYPE_SELECTION_H_
+
+#include "eap_am_assert.h"
+#include "eap_variable_data.h"
+#include "eap_header.h"
+
+//--------------------------------------------------
+
+class abs_eap_am_tools_c;
+
+
+/// eap_type_selection_c class stores infofmation of one supported EAP-type.
+class EAP_EXPORT eap_type_selection_c
+{
+private:
+	//--------------------------------------------------
+
+	/// This is pointer to the tools class.
+	abs_eap_am_tools_c * const m_am_tools;
+
+	const eap_type_value_e m_type;
+
+	const bool m_is_enabled;
+
+	bool m_is_valid;
+
+	//--------------------------------------------------
+
+	//--------------------------------------------------
+public:
+	//--------------------------------------------------
+
+	/**
+	 * The destructor of the eap_type_selection_c class does nothing special.
+	 */
+	EAP_FUNC_IMPORT virtual ~eap_type_selection_c();
+
+	/**
+	 */
+	EAP_FUNC_IMPORT eap_type_selection_c(
+		abs_eap_am_tools_c * const tools,
+		const eap_type_value_e type,
+		const bool is_enabled);
+
+	/**
+	 * The get_type() function returns EAP-type.
+	 */
+	EAP_FUNC_IMPORT eap_type_value_e get_type() const;
+
+	/**
+	 * The get_is_enabled() function returns true when EAP-type is enabled.
+	 */
+	EAP_FUNC_IMPORT bool get_is_enabled() const;
+
+	/**
+	 * The copy() function copies the eap_type_selection_c object and data.
+	 */
+	EAP_FUNC_IMPORT eap_type_selection_c * copy() const;
+
+	/**
+	 * The get_is_valid() function returns the status of the object.
+	 * @return True indicates the object is initialized.
+	 */
+	EAP_FUNC_IMPORT bool get_is_valid() const;
+
+	/**
+	 * The get_is_valid_data() function returns the status of the
+	 * data included in eap_type_selection_c object.
+	 * @return True indicates the object includes valid data.
+	 */
+	EAP_FUNC_IMPORT bool get_is_valid_data() const;
+
+}; // class eap_type_selection_c
+
+
+#endif //#if !defined(_EAP_TYPE_SELECTION_H_)
+
+//--------------------------------------------------
+
+
+// End.