messagingapp/msgui/msgapp/inc/msglistviewitem.h
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
child 48 4f501b74aeb1
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
    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      */
    99     HbFrameItem* mNewMsgIndicatorItem;
   104     HbFrameItem* mNewMsgIndicatorItem;
   100     
   105     
   101     /**
       
   102      * Background frame for item.
       
   103      */
       
   104     HbFrameItem* mBgFrameItem;
       
   105 
       
   106     /**
   106     /**
   107      * To display address.
   107      * To display address.
   108      * Owned
   108      * Owned
   109      */
   109      */
   110     HbTextItem *mAddressLabelItem;
   110     HbTextItem *mAddressLabelItem;