messagingapp/msgui/msgapp/inc/msglistviewitem.h
branchGCC_SURGE
changeset 47 5b14749788d7
parent 27 e4592d119491
parent 34 84197e66a4bd
equal deleted inserted replaced
35:a32b19fb291e 47:5b14749788d7
    74     bool hasUnReadMsg();
    74     bool hasUnReadMsg();
    75     
    75     
    76 private:
    76 private:
    77 
    77 
    78     /**
    78     /**
    79      * Returns the preview text based on message type, sub type and state.
    79      * Create permanent items.
       
    80      */
       
    81     void initItems();
       
    82 
       
    83     /**
       
    84      * Returns the preview text based on message type, sub type.
       
    85      * Also sets the indicator icon.
    80      * @return QString
    86      * @return QString
    81      */
    87      */
    82     QString previewText(int msgType, int msgSubType, int msgState,int msgDirection);
    88     QString defaultPreviewText(int msgType, int msgSubType);
    83  
    89  
    84     /**
    90     /**
    85      * return the preview text based on state.
    91      * Sets the preview text and timestamp.
    86      * @return bool
       
    87      */
    92      */
    88     QString textBySendState(int sendState,int msgDirection);
    93     void setTimestampAndPreviewText();
    89     
    94 
    90 private:
    95 private:
    91     /**
    96     /**
    92  	   * Property to change the color of text
    97      * Property to change the color of text
    93 	   */
    98      */
    94     bool mUnReadMsg;
    99     bool mUnReadMsg;
    95 
   100 
    96     /**
   101     /**
    97      * To display the new message indication
   102      * To display the new message indication
    98      */
   103      */