deviceupdatesui/deviceupdates/inc/settingsdataformcustomitem.h
branchRCL_3
changeset 57 6757f1e2efd2
equal deleted inserted replaced
55:c4687ff85147 57:6757f1e2efd2
       
     1 /*
       
     2  * Copyright (c) 2009 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 for the
       
    15  * DataForm
       
    16  *
       
    17  */
       
    18 
       
    19 #ifndef SETTINGS_DATAFORM_CUSTOMITEM_H
       
    20 #define SETTINGS_DATAFORM_CUSTOMITEM_H
       
    21 
       
    22 #include <hbdataformviewitem.h>
       
    23 
       
    24 class HbLineEdit;
       
    25 class SettingsDataFormCustomItem : public HbDataFormViewItem
       
    26 {
       
    27 Q_OBJECT
       
    28 
       
    29 public:
       
    30     explicit SettingsDataFormCustomItem(QGraphicsItem *parent);
       
    31     ~SettingsDataFormCustomItem();
       
    32 
       
    33     virtual HbAbstractViewItem* createItem();
       
    34      bool canSetModelIndex( const QModelIndex& aIndex ) const; 
       
    35 
       
    36 protected:
       
    37     virtual HbWidget* createCustomWidget();
       
    38     
       
    39 public slots:
       
    40 virtual void restore();
       
    41 
       
    42 private:
       
    43 HbLineEdit* mLineEdit;
       
    44 };
       
    45 
       
    46 #endif // SETTINGS_DATAFORM_CUSTOMITEM_H