emailuis/nmsettingui/inc/nmsettingsformcustomitems.h
changeset 18 578830873419
child 20 ecc8def7944a
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 NMSETTINGSFORMCUSTOMITEMS_H_
       
    19 #define NMSETTINGSFORMCUSTOMITEMS_H_
       
    20 
       
    21 #include <QObject>
       
    22 #include <hbdataformviewitem.h>
       
    23 #include <hbdataformmodelitem.h>
       
    24 
       
    25 class QGraphicsItem;
       
    26 class QModelIndex;
       
    27 
       
    28 
       
    29 class NmSettingsFormCustomItems : public HbDataFormViewItem
       
    30 {
       
    31     Q_OBJECT
       
    32 
       
    33 public: // Data types
       
    34 
       
    35     enum ItemType {
       
    36         NmButtonItem = HbDataFormModelItem::CustomItemBase + 2
       
    37     };
       
    38 
       
    39 
       
    40 public:
       
    41 
       
    42     NmSettingsFormCustomItems(QGraphicsItem *parent=0);
       
    43 
       
    44     ~NmSettingsFormCustomItems();
       
    45 
       
    46     bool canSetModelIndex(const QModelIndex &index) const;
       
    47 
       
    48     virtual HbAbstractViewItem* createItem();
       
    49 
       
    50 
       
    51 protected:
       
    52 
       
    53     virtual HbWidget* createCustomWidget();
       
    54 };
       
    55 
       
    56 
       
    57 #endif /* NMSETTINGSFORMCUSTOMITEMS_H_ */
       
    58 
       
    59 // End of file.