diff -r b852595f5cbe -r 63be7eb3fc78 wlanutilities/wlanwizard/tsrc/stubs/eapqtconfiginterface.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wlanutilities/wlanwizard/tsrc/stubs/eapqtconfiginterface.h Tue Aug 31 16:18:40 2010 +0300 @@ -0,0 +1,131 @@ +/* +* 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 "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 method configuration QT interface. +*/ + +#ifndef EAPQTCONFIGINTERFACE_H +#define EAPQTCONFIGINTERFACE_H + +#include +#include +#include +#include +#include "eapqtconfig.h" +#include "eapqtpacstoreconfig.h" +#include "eapqtcertificateinfo.h" +#include "eapqtvalidator.h" + +class EapQtConfigInterfaceContext; +/*! + * @addtogroup group_eap_config_api + * @{ + */ + +/*! + */ +class EapQtConfigInterface +{ +public: + + enum EapBearerType + { + // EAP configuration interface for WLAN + EapBearerTypeWlan = 0, + // EAP configuration interface for VPN + EapBearerTypeVpn, + }; + + static const int IapIdUndefined = -1; + +public: + EapQtConfigInterface(const EapBearerType bearerType, const int iapId); + ~EapQtConfigInterface(); + + EapQtValidator *validatorEap(const EapQtExpandedEapType &type, const EapQtConfig::SettingsId id); + EapQtValidator *validatorPacStore(const EapQtPacStoreConfig::PacStoreSettings id); + + bool setConfigurationReference(const int iapId); + QList certificateAuthorityCertificates(); + QList userCertificates(); + + bool updateCertificates(); + + bool isSupportedOuterType(const EapQtPluginHandle& handle); + bool isSupportedInnerType(const EapQtPluginHandle& outerHandle, + const EapQtPluginHandle& innerHandle); + + bool setSelectedOuterTypes(const QList& outerHandles); + bool saveConfiguration(const EapQtPluginHandle& pluginHandle, const EapQtConfig &config); + bool deleteConfiguration(); + + bool readPacStoreConfiguration(EapQtPacStoreConfig &config); + bool savePacStoreConfiguration(EapQtPacStoreConfig &config); + + +private: + Q_DISABLE_COPY(EapQtConfigInterface) + QStringList mCalledMethods; + + // setConfigurationReference + int mIapId; + bool mReturnSetConfigurationReference; + + // certificateAuthorityCertificates + QList mCertsCa; + + // userCertificates + QList mCertsUser; + + // isSupportedOuterType + QList mSupportedOuterTypes; + + // isSupportedInnerType + QList mSupportedInnerTypes; + int mSupportedInnerTypesOuterHandle; + + // setSelectedOuterTypes + QList mSetSelectectedOuterTypes; + bool mReturnSetSelectedOuterTypes; + + // saveConfiguration + EapQtPluginHandle::Plugin mOuterPlugin; + EapQtConfig mSaveConfigurationsOuter; + bool mReturnSaveConfigurationOuter; + EapQtPluginHandle::Plugin mInnerPlugin; + EapQtConfig mSaveConfigurationsInner; + bool mReturnSaveConfigurationInner; + + // validatorEap + QHash > mValidator; + + // readPacStoreConfiguration + EapQtPacStoreConfig mReadPacStoreConfiguration; + bool mReadPacStoreConfigurationReturn; + + // savePacStoreConfiguration + EapQtPacStoreConfig mSavePacStoreConfiguration; + bool mSavePacStoreConfigurationReturn; + + // validatorPacStore, key: EapQtPacStoreConfig::PacStoreSettings + QHash mValidatorPacStore; + + friend class EapQtConfigInterfaceContext; +}; + +/*! @} */ + +#endif + +