emailservices/nmclientapi/src/nmapisettingsmanager.cpp
changeset 74 6c59112cfd31
parent 56 15bc1d5d6267
equal deleted inserted replaced
69:4e54af54a4a1 74:6c59112cfd31
    12  * Contributors:
    12  * Contributors:
    13  *
    13  *
    14  * Description:
    14  * Description:
    15  *
    15  *
    16  */
    16  */
    17 #include <nmapisettingsmanager.h>
    17 #include <nmapiheaders.h>
    18 #include "nmapisettingsmanager_p.h"
       
    19 #include "nmapiheaders.h"
       
    20 
    18 
    21 namespace EmailClientApi
    19 namespace EmailClientApi
    22 {
    20 {
    23 
    21 
    24 NmApiSettingsManager::NmApiSettingsManager(const quint64 mailboxId)
    22 NmApiSettingsManager::NmApiSettingsManager(const quint64 mailboxId)
    25 {    
    23 {    
    26     d = new NmApiSettingsManagerPrivate(mailboxId);
    24     Q_UNUSED(mailboxId);
       
    25     d = new NmApiSettingsManagerPrivate();
    27 }
    26 }
    28 
    27 
    29 NmApiSettingsManager::~NmApiSettingsManager()
    28 NmApiSettingsManager::~NmApiSettingsManager()
    30 {    
    29 {    
    31     delete d;
    30     delete d;
    32 }
    31 }
       
    32 
    33 /*!     
    33 /*!     
    34  Loads email settings.
    34  Loads email settings.
    35  \param mailboxId which settings are returned
    35  \param mailboxId which settings are returned
    36  \param data consists of keys and values of settings.
    36  \param data consists of keys and values of settings.
    37  \return bool <true> when the setting items were found otherwise <false>.
    37  \return bool <true> when the setting items were found otherwise <false>.
    46  \param data consists of keys and values of settings.
    46  \param data consists of keys and values of settings.
    47  \return bool <true> when the setting items were successfully saved otherwise <false>.
    47  \return bool <true> when the setting items were successfully saved otherwise <false>.
    48  */
    48  */
    49 bool NmApiSettingsManager::save(const NmApiMailboxSettingsData &data)
    49 bool NmApiSettingsManager::save(const NmApiMailboxSettingsData &data)
    50 {
    50 {
    51     return d->save(data);
    51     return d->save(data.mailboxId(), data);
    52 }
    52 }
    53 
    53 
    54 } // end namespace
    54 } // end namespace