emailuis/nmsettingui/inc/nmmailboxsettingview.h
changeset 18 578830873419
child 48 10eaf342f539
equal deleted inserted replaced
4:e7aa27f58ae1 18:578830873419
       
     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 NMMAILBOXSETTINGVIEW_H
       
    19 #define NMMAILBOXSETTINGVIEW_H
       
    20 
       
    21 #include <cpbasesettingview.h>
       
    22 #include <nmcommon.h>
       
    23 #include "nmsettingscommon.h"
       
    24 
       
    25 class HbDataForm;
       
    26 class HbDataFormModel;
       
    27 class NmMailboxSettingsManager;
       
    28 class QGraphicsItem;
       
    29 class NmId;
       
    30 
       
    31 
       
    32 class NmMailboxSettingView : public CpBaseSettingView
       
    33 {
       
    34     Q_OBJECT
       
    35 
       
    36 public:
       
    37 
       
    38     explicit NmMailboxSettingView(const NmId &mailboxId,
       
    39         const QString &mailboxName,
       
    40         NmMailboxSettingsManager& settingsManager,
       
    41         QGraphicsItem *parent = 0);
       
    42 
       
    43     ~NmMailboxSettingView();
       
    44 
       
    45 
       
    46 private slots:
       
    47 
       
    48     void mailboxListChanged(const NmId &mailboxId, NmSettings::MailboxEventType type);
       
    49 
       
    50     void mailboxPropertyChanged(const NmId &mailboxId, QVariant property, QVariant value);
       
    51 
       
    52 
       
    53 private:
       
    54 
       
    55     Q_DISABLE_COPY(NmMailboxSettingView)
       
    56 
       
    57 
       
    58 private: // Data
       
    59 
       
    60     HbDataForm *mForm; // Owned
       
    61     HbDataFormModel *mModel; // Owned
       
    62     const NmId mMailboxId;
       
    63 };
       
    64 
       
    65 #endif // NMMAILBOXSETTINGVIEW_H
       
    66 
       
    67 // End of file.