diff -r 093cf0757204 -r 938269283a16 accesssec_plat/eap_qt_configuration_api/inc/eapqtpluginhandle.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/accesssec_plat/eap_qt_configuration_api/inc/eapqtpluginhandle.h Fri Jun 11 13:40:22 2010 +0300 @@ -0,0 +1,79 @@ +/* + * Copyright (c) 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: + * Control Panel EAP plugin information + * + */ + +/* + * %version: 4 % + */ + +#ifndef EAPQTPLUGINHANDLE_H +#define EAPQTPLUGINHANDLE_H + +#include +#include +#include + +class EapQtExpandedEapType; +class EapQtPluginHandlePrivate; + +class EAP_QT_PLUGIN_INFO_EXPORT EapQtPluginHandle +{ +public: + + enum Plugin + { + PluginUndefined = 0, + PluginEapAka, + PluginEapFast, + PluginEapGtc, + PluginLeap, + PluginEapMschapv2, + PluginPeap, + PluginEapSim, + PluginEapTls, + PluginEapTtls, + PluginPap, + PluginPlainMschapv2, + PluginLast + }; + +public: + + EapQtPluginHandle(); + EapQtPluginHandle(Plugin id); + EapQtPluginHandle(EapQtExpandedEapType type); // maps type to default UIDs + EapQtPluginHandle(const EapQtPluginHandle& handle); + EapQtPluginHandle(EapQtExpandedEapType type, int uid); + ~EapQtPluginHandle(); + + EapQtExpandedEapType type() const; + int protocolImplementationUid() const; + Plugin pluginId() const; + + EapQtPluginHandle &operator=(const EapQtPluginHandle &handle); + bool operator ==(const EapQtPluginHandle &right_type_value) const; + +private: + + QScopedPointer d_ptr; + +}; + +// Make the class known to QMetaType to support using QVariant +Q_DECLARE_METATYPE(EapQtPluginHandle) + +#endif /* EAPQTPLUGINHANDLE_H */