locationsystemui/locationsysui/possettings/possettingsengine/inc/possettingsgroupboxitem.h
branchRCL_3
changeset 44 2b4ea9893b66
equal deleted inserted replaced
42:02ba3f1733c6 44:2b4ea9893b66
       
     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:  This class provides custom list item 
       
    15 * for the groupbox on the DataForm
       
    16 */
       
    17 
       
    18 #ifndef POSSETTINGS_GROUPBOXITEM_H
       
    19 #define POSSETTINGS_GROUPBOXITEM_H
       
    20 
       
    21 #include <QObject>
       
    22 
       
    23 #include <hbdataformviewitem.h>
       
    24 #include <hbdataformmodelitem.h>
       
    25 
       
    26 const int GroupboxItem = HbDataFormModelItem::CustomItemBase+12; 
       
    27  
       
    28 class PosSettingsGroupboxItem : public HbDataFormViewItem
       
    29 {
       
    30 Q_OBJECT
       
    31 
       
    32 public: //constructor and destructor
       
    33     PosSettingsGroupboxItem(QGraphicsItem *parent);
       
    34     ~PosSettingsGroupboxItem();
       
    35 public: //from HbDataFormViewItem
       
    36     /*
       
    37      * It will return custom control item
       
    38      */
       
    39     virtual HbAbstractViewItem* createItem();
       
    40     virtual bool canSetModelIndex(const QModelIndex &index) const;
       
    41     virtual void restore();
       
    42 protected:
       
    43     /*
       
    44      * It will define the custom control item
       
    45      */
       
    46     virtual HbWidget* createCustomWidget();
       
    47     
       
    48 private:
       
    49     /*
       
    50      * Does not own
       
    51      */
       
    52     HbWidget* mWidget;
       
    53 };
       
    54 
       
    55 #endif // POSSETTINGS_GROUPBOXITEM_H