phonebookui/cntcommonui/views/cntnamesviewitem.h
changeset 81 640d30f4fb64
equal deleted inserted replaced
77:c18f9fa7f42e 81:640d30f4fb64
       
     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:
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CNTNAMESVIEWITEM_H
       
    19 #define CNTNAMESVIEWITEM_H
       
    20 
       
    21 #include <hblistviewitem.h>
       
    22 
       
    23 const int CNT_NAME_LIST_LAYOUT_CHANGED_TIMEOUT = 200;
       
    24 const qreal CNT_NAME_LIST_LAYOUT_CHANGE_PINCH_IN_TRESHOLD = 0.6;
       
    25 const qreal CNT_NAME_LIST_LAYOUT_CHANGE_PINCH_OUT_TRESHOLD = 1.4;
       
    26 const QString CNT_NAME_LIST_LAYOUT_PROPERTY_ANIMATE = "animate";
       
    27 const QString CNT_NAME_LIST_LAYOUT_PROPERTY_NORMAL = "normal";
       
    28 
       
    29 class CntNamesViewItem : public HbListViewItem
       
    30 {
       
    31     friend class TestCntNamesView;
       
    32     Q_OBJECT
       
    33     
       
    34 public:
       
    35     CntNamesViewItem(QGraphicsItem* parent = NULL);
       
    36 
       
    37     HbAbstractViewItem* createItem();
       
    38     void updateChildItems();
       
    39     
       
    40 private slots:
       
    41     void doUpdateChildItems();
       
    42 };
       
    43 
       
    44 #endif /* CNTNAMESVIEWITEM_H */