diff -r 238255e8b033 -r 84d9eb65b26f messagingapp/msgui/msgapp/inc/msglistviewitem.h --- 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