messagingapp/msgui/msgapp/inc/msglistviewitem.h
changeset 52 12db4185673b
parent 34 84197e66a4bd
child 70 a15d9966050f
equal deleted inserted replaced
44:36f374c67aa8 52:12db4185673b
    32  * the message list view.  
    32  * the message list view.  
    33  */
    33  */
    34 class MsgListViewItem : public HbListViewItem
    34 class MsgListViewItem : public HbListViewItem
    35     {  
    35     {  
    36     Q_OBJECT    	
    36     Q_OBJECT    	
    37     Q_PROPERTY(bool unReadMsg READ hasUnReadMsg WRITE setHasUnReadMsg)    	  
    37     Q_PROPERTY(bool unReadMsg READ hasUnReadMsg WRITE setHasUnReadMsg)   
    38 
    38 
    39 public:
    39 public:
    40     /**
    40     /**
    41      * Constructor
    41      * Constructor
    42      */
    42      */
    69 
    69 
    70     /**
    70     /**
    71      * Returns the value of mUnReadMsg
    71      * Returns the value of mUnReadMsg
    72      * @return bool
    72      * @return bool
    73      */
    73      */
    74     bool hasUnReadMsg();
    74     bool hasUnReadMsg();    
       
    75    
       
    76 private slots:    
       
    77 
       
    78     /*
       
    79      * Handler for orientation changed
       
    80      * @param orientation Qt::Orientation
       
    81      */
       
    82     void orientationchanged(Qt::Orientation orientation);
    75     
    83     
    76 private:
    84 private:
    77 
    85 
    78     /**
    86     /**
    79      * Create permanent items.
    87      * Create permanent items.
    89  
    97  
    90     /**
    98     /**
    91      * Sets the preview text and timestamp.
    99      * Sets the preview text and timestamp.
    92      */
   100      */
    93     void setTimestampAndPreviewText();
   101     void setTimestampAndPreviewText();
       
   102     
       
   103     /*
       
   104      * set Unread Count and frame
       
   105      */
       
   106     void setUnreadCountStatus();
       
   107     
       
   108     /*
       
   109      * set common indicator (icon/unread count)
       
   110      */
       
   111     void setCommonIndicator(const QString& string);
    94 
   112 
    95 private:
   113 private:
    96     /**
   114     /**
    97      * Property to change the color of text
   115      * Property to change the color of text
    98      */
   116      */
   128     HbTextItem *mUnreadCountItem;
   146     HbTextItem *mUnreadCountItem;
   129     
   147     
   130     /**
   148     /**
   131      * To display the presence indication
   149      * To display the presence indication
   132      */
   150      */
   133     HbIconItem* mPresenceIndicatorItem;
   151     HbIconItem* mMsgCommonIndicatorItem;
   134     
   152     
   135     };
   153     };
   136 
   154 
   137 #endif // MSG_LIST_VIEW_ITEM_H
   155 #endif // MSG_LIST_VIEW_ITEM_H
   138 
   156