messagingapp/msgui/msgapp/inc/msglistviewitem.h
changeset 48 4f501b74aeb1
parent 37 518b245aa84c
child 56 f42d9a78f435
--- a/messagingapp/msgui/msgapp/inc/msglistviewitem.h	Tue Jul 13 22:09:22 2010 +0530
+++ b/messagingapp/msgui/msgapp/inc/msglistviewitem.h	Sun Jul 25 18:59:19 2010 +0530
@@ -34,7 +34,7 @@
 class MsgListViewItem : public HbListViewItem
     {  
     Q_OBJECT    	
-    Q_PROPERTY(bool unReadMsg READ hasUnReadMsg WRITE setHasUnReadMsg)    	  
+    Q_PROPERTY(bool unReadMsg READ hasUnReadMsg WRITE setHasUnReadMsg)   
 
 public:
     /**
@@ -71,7 +71,15 @@
      * Returns the value of mUnReadMsg
      * @return bool
      */
-    bool hasUnReadMsg();
+    bool hasUnReadMsg();    
+   
+private slots:    
+
+    /*
+     * Handler for orientation changed
+     * @param orientation Qt::Orientation
+     */
+    void orientationchanged(Qt::Orientation orientation);
     
 private:
 
@@ -91,6 +99,16 @@
      * Sets the preview text and timestamp.
      */
     void setTimestampAndPreviewText();
+    
+    /*
+     * set Unread Count and frame
+     */
+    void setUnreadCountStatus();
+    
+    /*
+     * set common indicator (icon/unread count)
+     */
+    void setCommonIndicator(const QString& string);
 
 private:
     /**
@@ -130,7 +148,7 @@
     /**
      * To display the presence indication
      */
-    HbIconItem* mPresenceIndicatorItem;
+    HbIconItem* mMsgCommonIndicatorItem;
     
     };