email_plat/nmail_settings_api/nmapimailboxsettings.h
changeset 74 6c59112cfd31
parent 69 4e54af54a4a1
child 76 38bf5461e270
equal deleted inserted replaced
69:4e54af54a4a1 74:6c59112cfd31
     1 /*
       
     2  * Copyright (c) 2010 Nokia Corporation and/or its subsidiary(-ies).
       
     3  * All rights reserved.
       
     4  * This component and the accompanying materials are made available
       
     5  * under the terms of "Eclipse Public License v1.0"
       
     6  * which accompanies this distribution, and is available
       
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8  *
       
     9  * Initial Contributors:
       
    10  * Nokia Corporation - initial contribution.
       
    11  *
       
    12  * Contributors:
       
    13  *
       
    14  * Description:
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef NMAPIMAILBOXSETTINGS_H_
       
    19 #define NMAPIMAILBOXSETTINGS_H_
       
    20 
       
    21 #include <QList>
       
    22 #include <QObject>
       
    23 
       
    24 #include <nmapidef.h>
       
    25 
       
    26 namespace EmailClientApi
       
    27 {
       
    28 
       
    29 class NmApiMailboxSettingsData;
       
    30 class NmApiMailboxSettingsPrivate;
       
    31 class NMAPI_EXPORT NmApiMailboxSettings : public QObject
       
    32 {
       
    33     Q_OBJECT
       
    34 public:
       
    35     NmApiMailboxSettings(QObject *parent = 0);
       
    36     ~NmApiMailboxSettings();
       
    37 
       
    38     bool listMailboxIds(QList<quint64> &idList);
       
    39     bool loadSettings(quint64 mailboxId, NmApiMailboxSettingsData &data);
       
    40     bool saveSettings(const NmApiMailboxSettingsData &data);
       
    41     bool createMailbox(const QString &mailboxType, NmApiMailboxSettingsData &data);
       
    42     bool deleteMailbox(quint64 mailboxId);
       
    43     bool populateDefaultSettings(const QString &mailboxType, NmApiMailboxSettingsData &data);
       
    44 
       
    45 signals:
       
    46     void mailboxDeleted(int result = 0);
       
    47     
       
    48 protected:    
       
    49     NmApiMailboxSettingsPrivate *d;
       
    50  
       
    51 };
       
    52 
       
    53 }
       
    54 
       
    55 #endif /* NMAPIMAILBOXSETTINGS_H_ */