diff -r 093cf0757204 -r 938269283a16 securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtconfig.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/securitysettings/qtconfigutils/eapqtconfiginterface/src/eapqtconfig.cpp Fri Jun 11 13:40:22 2010 +0300 @@ -0,0 +1,74 @@ +/* + * 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: + * EAP method QT configuration + * + */ + +/* + * %version: 9 % + */ + +#include "eapqtconfig.h" +#include "eapqtconfig_p.h" + +//---------------------------------------------------------------------------- +// EapQtConfig +//---------------------------------------------------------------------------- + +EapQtConfig::EapQtConfig() : + d_ptr(new EapQtConfigPrivate) +{ +} + +EapQtConfig::~EapQtConfig() +{ + // scoped pointer deleted automatically +} + +QVariant EapQtConfig::value(SettingsId id) +{ + // check for valid range, otherwise memory is consumed for no reason + if(id >= SettingsIdLast) { + qDebug("ERROR: EapQtConfig::value - invalid id!"); + return QVariant::Invalid; + } + return d_ptr->mSettings[id]; +} + +void EapQtConfig::setValue(SettingsId id, QVariant newValue) +{ + // check for valid range, otherwise memory is consumed for no reason + if(id < SettingsIdLast) { + d_ptr->mSettings[id] = newValue; + } else { + qDebug("ERROR: EapQtConfig::setValue - invalid id!"); + } + return; +} + +void EapQtConfig::clear() { + d_ptr->mSettings.clear(); + return; +} + +QList EapQtConfig::validate( + QList ids) +{ + // not supported + Q_UNUSED(ids); + return QList(); +} + +