emailservices/nmclientapi/src/nmapimailboxsettings_p.cpp
changeset 56 15bc1d5d6267
parent 48 10eaf342f539
child 74 6c59112cfd31
equal deleted inserted replaced
51:d845db10c0d4 56:15bc1d5d6267
    14  * Description:
    14  * Description:
    15  *
    15  *
    16  */
    16  */
    17 
    17 
    18 #include "nmapiheaders.h"
    18 #include "nmapiheaders.h"
       
    19 #include <nmapisettingsmanager.h>
    19 
    20 
    20 
    21 
    21 namespace EmailClientApi
    22 namespace EmailClientApi
    22 {
    23 {
    23 NmApiMailboxSettingsPrivate::NmApiMailboxSettingsPrivate(QObject *parent) : 
    24 NmApiMailboxSettingsPrivate::NmApiMailboxSettingsPrivate(QObject *parent) : 
    62 }
    63 }
    63 
    64 
    64 bool NmApiMailboxSettingsPrivate::loadSettings(quint64 mailboxId, NmApiMailboxSettingsData &data)
    65 bool NmApiMailboxSettingsPrivate::loadSettings(quint64 mailboxId, NmApiMailboxSettingsData &data)
    65 {
    66 {
    66     NM_FUNCTION;
    67     NM_FUNCTION;
    67     Q_UNUSED(mailboxId);
    68     QScopedPointer<NmApiSettingsManager> settingsManager(new NmApiSettingsManager(mailboxId));  
    68     Q_UNUSED(data);
    69     return settingsManager->load(mailboxId, data);
    69     return false;
       
    70 }
    70 }
    71 
    71 
    72 bool NmApiMailboxSettingsPrivate::saveSettings(const NmApiMailboxSettingsData &data)
    72 bool NmApiMailboxSettingsPrivate::saveSettings(const NmApiMailboxSettingsData &data)
    73 {
    73 {
    74     NM_FUNCTION;
    74     NM_FUNCTION;
    75     Q_UNUSED(data);
    75     QScopedPointer<NmApiSettingsManager> settingsManager(new NmApiSettingsManager(data.mailboxId()));  
    76     return false;
    76     return settingsManager->save(data);
    77 }
    77 }
    78 
    78 
    79 bool NmApiMailboxSettingsPrivate::createMailbox(
    79 bool NmApiMailboxSettingsPrivate::createMailbox(
    80     const QString &mailboxType,
    80     const QString &mailboxType,
    81     NmApiMailboxSettingsData &data)
    81     NmApiMailboxSettingsData &data)