calendarui/views/inc/caleneventlistviewitem.h
changeset 55 2c54b51f39c4
parent 45 b6db4fd4947b
child 57 bb2d3e476f29
equal deleted inserted replaced
51:0b38fc5b94c6 55:2c54b51f39c4
    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"
    23 
    24 
    24 class CalenEventListViewItem : public HbListViewItem
    25 class CalenEventListViewItem : public HbListViewItem
    25 {
    26 {
    26     Q_OBJECT
    27     Q_OBJECT
       
    28     Q_PROPERTY(bool leftAllDayIcon READ hasAllDayIcon WRITE setAllDayLeftIcon)
       
    29     Q_PROPERTY(bool repeatingIcon READ hasRepeatingIcon WRITE setRepeatingIcon) 
       
    30     Q_PROPERTY(bool alarmIcon READ hasAlarmIcon WRITE setAlarmIcon)
       
    31     Q_PROPERTY(bool exceptionIcon READ hasExceptionIcon WRITE setExceptionIcon)
    27 public:
    32 public:
    28     CalenEventListViewItem(QGraphicsItem *parent = 0);
    33     CalenEventListViewItem(CalenAgendaViewWidget *parent = 0);
    29     ~CalenEventListViewItem();
    34     ~CalenEventListViewItem();
    30 
    35 
    31     HbAbstractViewItem * createItem();
    36     HbAbstractViewItem * createItem();
    32     void updateChildItems();
    37     void updateChildItems();
       
    38     bool hasAllDayIcon();
       
    39     void setAllDayLeftIcon(bool icon = false);
       
    40     bool hasRepeatingIcon();
       
    41     void setRepeatingIcon(bool icon = false);
       
    42     bool hasAlarmIcon();
       
    43     void setAlarmIcon(bool icon = false);
       
    44     bool hasExceptionIcon();
       
    45     void setExceptionIcon(bool icon = false);
       
    46 private:  
       
    47     
       
    48     bool mAllDayIcon ;
       
    49     bool mExceptionIcon ;
       
    50     bool mAlarmIcon ;
       
    51     bool mRepeatingIcon ;
       
    52     CalenAgendaViewWidget* mParent; 
    33 };
    53 };
    34 
    54 
    35 #endif      // __CALEN_EVENT_LIST_VIEW_ITEM_H__
    55 #endif      // __CALEN_EVENT_LIST_VIEW_ITEM_H__