messagingapp/msgui/msgapp/inc/msglistviewitem.h
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
child 48 4f501b74aeb1
--- a/messagingapp/msgui/msgapp/inc/msglistviewitem.h	Mon May 03 12:29:07 2010 +0300
+++ b/messagingapp/msgui/msgapp/inc/msglistviewitem.h	Fri Jun 25 15:47:40 2010 +0530
@@ -76,21 +76,26 @@
 private:
 
     /**
-     * Returns the preview text based on message type, sub type and state.
+     * Create permanent items.
+     */
+    void initItems();
+
+    /**
+     * Returns the preview text based on message type, sub type.
+     * Also sets the indicator icon.
      * @return QString
      */
-    QString previewText(int msgType, int msgSubType, int msgState,int msgDirection);
+    QString defaultPreviewText(int msgType, int msgSubType);
  
     /**
-     * return the preview text based on state.
-     * @return bool
+     * Sets the preview text and timestamp.
      */
-    QString textBySendState(int sendState,int msgDirection);
-    
+    void setTimestampAndPreviewText();
+
 private:
     /**
- 	   * Property to change the color of text
-	   */
+     * Property to change the color of text
+     */
     bool mUnReadMsg;
 
     /**
@@ -99,11 +104,6 @@
     HbFrameItem* mNewMsgIndicatorItem;
     
     /**
-     * Background frame for item.
-     */
-    HbFrameItem* mBgFrameItem;
-
-    /**
      * To display address.
      * Owned
      */