calendarui/views/inc/caleneventlistviewitem.h
changeset 57 bb2d3e476f29
parent 55 2c54b51f39c4
child 64 1881ad52dc45
equal deleted inserted replaced
55:2c54b51f39c4 57:bb2d3e476f29
    24 
    24 
    25 class CalenEventListViewItem : public HbListViewItem
    25 class CalenEventListViewItem : public HbListViewItem
    26 {
    26 {
    27     Q_OBJECT
    27     Q_OBJECT
    28     Q_PROPERTY(bool leftAllDayIcon READ hasAllDayIcon WRITE setAllDayLeftIcon)
    28     Q_PROPERTY(bool leftAllDayIcon READ hasAllDayIcon WRITE setAllDayLeftIcon)
    29     Q_PROPERTY(bool repeatingIcon READ hasRepeatingIcon WRITE setRepeatingIcon) 
    29     Q_PROPERTY(bool locationEntry READ locationEntryLayout WRITE setLocationEntry)
    30     Q_PROPERTY(bool alarmIcon READ hasAlarmIcon WRITE setAlarmIcon)
    30 
    31     Q_PROPERTY(bool exceptionIcon READ hasExceptionIcon WRITE setExceptionIcon)
       
    32 public:
    31 public:
       
    32     /**
       
    33      * @brief Constructor
       
    34      * @param CalenAgendaViewWidget
       
    35      */
    33     CalenEventListViewItem(CalenAgendaViewWidget *parent = 0);
    36     CalenEventListViewItem(CalenAgendaViewWidget *parent = 0);
       
    37     
       
    38     /**
       
    39      * @brief Destructor
       
    40      */
    34     ~CalenEventListViewItem();
    41     ~CalenEventListViewItem();
    35 
    42 
       
    43     /**
       
    44      * @brief creates the instance  of the class
       
    45      */
    36     HbAbstractViewItem * createItem();
    46     HbAbstractViewItem * createItem();
       
    47     
       
    48     /**
       
    49      * @brief crestes the item of the list
       
    50      */
    37     void updateChildItems();
    51     void updateChildItems();
       
    52     
       
    53     /**
       
    54      * @brief check if all day icon is present
       
    55      */
    38     bool hasAllDayIcon();
    56     bool hasAllDayIcon();
       
    57     
       
    58     /**
       
    59      * @brief sets teh all day icon 
       
    60      */
    39     void setAllDayLeftIcon(bool icon = false);
    61     void setAllDayLeftIcon(bool icon = false);
    40     bool hasRepeatingIcon();
    62     
    41     void setRepeatingIcon(bool icon = false);
    63     /**
    42     bool hasAlarmIcon();
    64     * @brief sets location entry status 
    43     void setAlarmIcon(bool icon = false);
    65     */
    44     bool hasExceptionIcon();
    66     void setLocationEntry(bool icon);
    45     void setExceptionIcon(bool icon = false);
    67     
       
    68     /**
       
    69     * @brief check if location is present
       
    70     */
       
    71     bool locationEntryLayout();
    46 private:  
    72 private:  
    47     
    73     CalenAgendaViewWidget* mParent; 
    48     bool mAllDayIcon ;
    74     bool mAllDayIcon ;
    49     bool mExceptionIcon ;
    75     bool mLocationEntry;
    50     bool mAlarmIcon ;
       
    51     bool mRepeatingIcon ;
       
    52     CalenAgendaViewWidget* mParent; 
       
    53 };
    76 };
    54 
    77 
    55 #endif      // __CALEN_EVENT_LIST_VIEW_ITEM_H__
    78 #endif      // __CALEN_EVENT_LIST_VIEW_ITEM_H__