calendarui/views/inc/caleneventlistviewitem.h
changeset 70 a5ed90760192
parent 64 1881ad52dc45
equal deleted inserted replaced
64:1881ad52dc45 70:a5ed90760192
    18 #ifndef __CALEN_EVENT_LIST_VIEW_ITEM_H__
    18 #ifndef __CALEN_EVENT_LIST_VIEW_ITEM_H__
    19 #define __CALEN_EVENT_LIST_VIEW_ITEM_H__
    19 #define __CALEN_EVENT_LIST_VIEW_ITEM_H__
    20 
    20 
    21 // System includes
    21 // System includes
    22 #include <hblistviewitem.h>
    22 #include <hblistviewitem.h>
    23 #include "calenagendaviewwidget.h"
       
    24 
    23 
    25 class CalenEventListViewItem : public HbListViewItem
    24 class CalenEventListViewItem : public HbListViewItem
    26 {
    25 {
    27     Q_OBJECT
    26     Q_OBJECT
    28     Q_PROPERTY(bool leftAllDayIcon READ hasAllDayIcon WRITE setAllDayLeftIcon)
    27   
    29 
       
    30 public:
    28 public:
    31     /**
    29     /**
    32      * @brief Constructor
    30      * @brief Constructor
    33      * @param CalenAgendaViewWidget
    31      * @param CalenAgendaViewWidget
    34      */
    32      */
    35     CalenEventListViewItem(CalenAgendaViewWidget *parent = 0);
    33     CalenEventListViewItem(QGraphicsItem *parent = 0);
    36     
    34     
    37     /**
    35     /**
    38      * @brief Destructor
    36      * @brief Destructor
    39      */
    37      */
    40     ~CalenEventListViewItem();
    38     ~CalenEventListViewItem();
    47     /**
    45     /**
    48      * @brief crestes the item of the list
    46      * @brief crestes the item of the list
    49      */
    47      */
    50     void updateChildItems();
    48     void updateChildItems();
    51     
    49     
    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 };
    50 };
    66 
    51 
    67 #endif      // __CALEN_EVENT_LIST_VIEW_ITEM_H__
    52 #endif      // __CALEN_EVENT_LIST_VIEW_ITEM_H__