ui/views/detailsview/inc/glxdetailscustomwidgets.h
branchGCC_SURGE
changeset 51 525c140ec8db
parent 38 c9962d0368d9
parent 49 f291796e213d
equal deleted inserted replaced
38:c9962d0368d9 51:525c140ec8db
     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:   ?Description
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef GLXDETAILSCUSTOMWIDGETS_H
       
    19 #define GLXDETAILSCUSTOMWIDGETS_H
       
    20 
       
    21 #include <hbdataformmodelitem.h>
       
    22 #include <hbdataformviewitem.h>
       
    23 
       
    24 
       
    25 class HbIconItem;
       
    26 class HbLabel;
       
    27 class HbDataFormModelItem;
       
    28 enum 
       
    29     {
       
    30      ImageNameItem = HbDataFormModelItem::CustomItemEnd +1,
       
    31      DateLabelItem,
       
    32      LocationTagItem,
       
    33      DurationItem,
       
    34      ShareWithItem,
       
    35      FaceTagItem,
       
    36      CommentsItem
       
    37      
       
    38     };
       
    39 
       
    40 class GlxDetailsCustomWidgets: public HbDataFormViewItem
       
    41 {
       
    42     Q_OBJECT
       
    43 
       
    44 public:
       
    45     GlxDetailsCustomWidgets(QGraphicsItem *parent);
       
    46     ~GlxDetailsCustomWidgets();
       
    47      virtual HbAbstractViewItem* createItem();     
       
    48      bool canSetModelIndex(const QModelIndex &index) const;
       
    49 
       
    50 protected:
       
    51     virtual HbWidget* createCustomWidget();
       
    52 
       
    53 private:
       
    54     HbLabel *mLabel;
       
    55 };
       
    56 
       
    57 #endif // GLXDETAILSCUSTOMWIDGETS_H