messagingapp/msgui/msgapp/inc/msglistviewitem.h
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 27 e4592d119491
child 37 518b245aa84c
--- a/messagingapp/msgui/msgapp/inc/msglistviewitem.h	Fri Apr 16 14:56:15 2010 +0300
+++ b/messagingapp/msgui/msgapp/inc/msglistviewitem.h	Mon May 03 12:29:07 2010 +0300
@@ -72,7 +72,21 @@
      * @return bool
      */
     bool hasUnReadMsg();
- 		    
+    
+private:
+
+    /**
+     * Returns the preview text based on message type, sub type and state.
+     * @return QString
+     */
+    QString previewText(int msgType, int msgSubType, int msgState,int msgDirection);
+ 
+    /**
+     * return the preview text based on state.
+     * @return bool
+     */
+    QString textBySendState(int sendState,int msgDirection);
+    
 private:
     /**
  	   * Property to change the color of text