diff -r d845db10c0d4 -r 15bc1d5d6267 emailservices/nmclientapi/src/nmapisettingsmanager.cpp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/emailservices/nmclientapi/src/nmapisettingsmanager.cpp Fri Jul 23 19:09:50 2010 +0300 @@ -0,0 +1,54 @@ +/* + * 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: + * + */ +#include +#include "nmapisettingsmanager_p.h" +#include "nmapiheaders.h" + +namespace EmailClientApi +{ + +NmApiSettingsManager::NmApiSettingsManager(const quint64 mailboxId) +{ + d = new NmApiSettingsManagerPrivate(mailboxId); +} + +NmApiSettingsManager::~NmApiSettingsManager() +{ + delete d; +} +/*! + Loads email settings. + \param mailboxId which settings are returned + \param data consists of keys and values of settings. + \return bool when the setting items were found otherwise . + */ +bool NmApiSettingsManager::load(quint64 mailboxId, NmApiMailboxSettingsData &data) +{ + return d->load(mailboxId, data); +} + +/*! + Saves email settings. + \param data consists of keys and values of settings. + \return bool when the setting items were successfully saved otherwise . + */ +bool NmApiSettingsManager::save(const NmApiMailboxSettingsData &data) +{ + return d->save(data); +} + +} // end namespace