calendarui/views/inc/caleneventlistviewitem.h
branchRCL_3
changeset 29 12af337248b1
equal deleted inserted replaced
28:96907930389d 29:12af337248b1
       
     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:  CalenEventListViewItem class definition
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef __CALEN_EVENT_LIST_VIEW_ITEM_H__
       
    19 #define __CALEN_EVENT_LIST_VIEW_ITEM_H__
       
    20 
       
    21 // System includes
       
    22 #include <hblistviewitem.h>
       
    23 #include "calenagendaviewwidget.h"
       
    24 
       
    25 class CalenEventListViewItem : public HbListViewItem
       
    26 {
       
    27     Q_OBJECT
       
    28     Q_PROPERTY(bool leftAllDayIcon READ hasAllDayIcon WRITE setAllDayLeftIcon)
       
    29 
       
    30 public:
       
    31     /**
       
    32      * @brief Constructor
       
    33      * @param CalenAgendaViewWidget
       
    34      */
       
    35     CalenEventListViewItem(CalenAgendaViewWidget *parent = 0);
       
    36     
       
    37     /**
       
    38      * @brief Destructor
       
    39      */
       
    40     ~CalenEventListViewItem();
       
    41 
       
    42     /**
       
    43      * @brief creates the instance  of the class
       
    44      */
       
    45     HbAbstractViewItem * createItem();
       
    46     
       
    47     /**
       
    48      * @brief crestes the item of the list
       
    49      */
       
    50     void updateChildItems();
       
    51     
       
    52     /**
       
    53      * @brief check if all day icon is present
       
    54      */
       
    55     bool hasAllDayIcon();
       
    56     
       
    57     /**
       
    58      * @brief sets teh all day icon 
       
    59      */
       
    60     void setAllDayLeftIcon(bool icon = false);
       
    61     
       
    62 private:  
       
    63     CalenAgendaViewWidget* mParent; 
       
    64     bool mAllDayIcon ;
       
    65 };
       
    66 
       
    67 #endif      // __CALEN_EVENT_LIST_VIEW_ITEM_H__