messagingapp/msgui/msgapp/inc/msglistviewitem.h
changeset 34 84197e66a4bd
parent 31 ebfee66fde93
child 47 5b14749788d7
child 52 12db4185673b
--- a/messagingapp/msgui/msgapp/inc/msglistviewitem.h	Fri Jun 04 10:25:39 2010 +0100
+++ b/messagingapp/msgui/msgapp/inc/msglistviewitem.h	Fri Jun 11 13:35:48 2010 +0300
@@ -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;
 
     /**