--- a/calendarui/views/inc/caleneventlistviewitem.h Tue Jul 06 14:14:56 2010 +0300
+++ b/calendarui/views/inc/caleneventlistviewitem.h Wed Aug 18 09:47:38 2010 +0300
@@ -20,16 +20,59 @@
// System includes
#include <hblistviewitem.h>
+#include "calenagendaviewwidget.h"
class CalenEventListViewItem : public HbListViewItem
{
Q_OBJECT
+ Q_PROPERTY(bool leftAllDayIcon READ hasAllDayIcon WRITE setAllDayLeftIcon)
+ Q_PROPERTY(bool locationEntry READ locationEntryLayout WRITE setLocationEntry)
+
public:
- CalenEventListViewItem(QGraphicsItem *parent = 0);
+ /**
+ * @brief Constructor
+ * @param CalenAgendaViewWidget
+ */
+ CalenEventListViewItem(CalenAgendaViewWidget *parent = 0);
+
+ /**
+ * @brief Destructor
+ */
~CalenEventListViewItem();
+ /**
+ * @brief creates the instance of the class
+ */
HbAbstractViewItem * createItem();
+
+ /**
+ * @brief crestes the item of the list
+ */
void updateChildItems();
+
+ /**
+ * @brief check if all day icon is present
+ */
+ bool hasAllDayIcon();
+
+ /**
+ * @brief sets teh all day icon
+ */
+ void setAllDayLeftIcon(bool icon = false);
+
+ /**
+ * @brief sets location entry status
+ */
+ void setLocationEntry(bool icon);
+
+ /**
+ * @brief check if location is present
+ */
+ bool locationEntryLayout();
+private:
+ CalenAgendaViewWidget* mParent;
+ bool mAllDayIcon ;
+ bool mLocationEntry;
};
#endif // __CALEN_EVENT_LIST_VIEW_ITEM_H__