vmbx/vmbxcpplugin/inc/actioncustomitem.h
branchRCL_3
changeset 20 987c9837762f
parent 19 7d48bed6ce0c
child 21 0a6dd2dc9970
equal deleted inserted replaced
19:7d48bed6ce0c 20:987c9837762f
     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 ACTIONCUSTOMITEM_H
       
    19 #define ACTIONCUSTOMITEM_H
       
    20 
       
    21 
       
    22 // System includes
       
    23 #include <qobject.h>
       
    24 #include <hbdataformviewitem.h>
       
    25 #include <hbdataformmodelitem.h>
       
    26 
       
    27 // Forward declarations
       
    28 class CpItemDataHelper;
       
    29 
       
    30 // Class declaration
       
    31 class ActionCustomItem :  public HbDataFormViewItem
       
    32 {
       
    33     Q_OBJECT
       
    34 public:
       
    35     /*!
       
    36         Constructor
       
    37     */
       
    38     ActionCustomItem(QGraphicsItem *parent = 0);
       
    39     
       
    40     /*!
       
    41         Destructor
       
    42     */
       
    43 
       
    44     ~ActionCustomItem();
       
    45     /*!
       
    46         From base class CpPluginInterface
       
    47         Form more information please check the base class.
       
    48     */
       
    49      virtual HbAbstractViewItem* createItem();
       
    50 
       
    51      virtual bool canSetModelIndex(const QModelIndex &index) const;
       
    52 
       
    53      enum { VmbxEditItem = HbDataFormModelItem::CustomItemBase + 1  };
       
    54     
       
    55 protected:
       
    56 
       
    57     virtual HbWidget* createCustomWidget();
       
    58         
       
    59 };
       
    60 
       
    61 #endif // ACTIONCUSTOMITEM_H