messagingapp/msgui/conversationview/inc/msgconversationviewitem.h
changeset 37 518b245aa84c
parent 25 84d9eb65b26f
child 56 f42d9a78f435
equal deleted inserted replaced
25:84d9eb65b26f 37:518b245aa84c
    18 #ifndef MSG_CONVERSATION_VIEW_ITEM_H
    18 #ifndef MSG_CONVERSATION_VIEW_ITEM_H
    19 #define MSG_CONVERSATION_VIEW_ITEM_H
    19 #define MSG_CONVERSATION_VIEW_ITEM_H
    20 
    20 
    21 // INCLUDES
    21 // INCLUDES
    22 #include <HbListViewItem>
    22 #include <HbListViewItem>
       
    23 #include "convergedmessage.h"
    23 
    24 
    24 //Forward Declarations
    25 //Forward Declarations
    25 class MsgConversationWidget;
    26 class MsgConversationWidget;
    26 class HbTextItem;
    27 class HbTextItem;
    27 class HbIconItem;
    28 class HbIconItem;
    87 
    88 
    88     /**
    89     /**
    89      * Set the Icon that displays the message notification state.
    90      * Set the Icon that displays the message notification state.
    90      */
    91      */
    91     void setNotificationStateIcon(int notificationState);
    92     void setNotificationStateIcon(int notificationState);
       
    93     
       
    94     /*
       
    95      * Update item with sms content
       
    96      */
       
    97     void updateSmsTypeItem(const QModelIndex& index, int messageSubType =
       
    98             ConvergedMessage::None);
    92 
    99 
       
   100     /*
       
   101      * Update item with mms type content
       
   102      */
       
   103     void updateMmsTypeItem(const QModelIndex& index, int messageType,
       
   104         int messageSubType);
       
   105 
       
   106     /*
       
   107      * Initializes the msgconverstionviewitem
       
   108      */
       
   109     void init();
       
   110 
       
   111 private slots:    
       
   112 
       
   113     /*
       
   114      * Handler for orientation changed
       
   115      * @param orientation Qt::Orientation
       
   116      */
       
   117     void orientationchanged(Qt::Orientation orientation);
       
   118     
    93 protected:
   119 protected:
    94 
   120 
    95     /**
   121     /**
    96      * Reimplemented from HbAbstractViewItem.
   122      * Reimplemented from HbAbstractViewItem.
    97      * This function is called whenever item press state changes.
   123      * This function is called whenever item press state changes.
   112      * Owned
   138      * Owned
   113      */
   139      */
   114     MsgConversationWidget *mConversation;
   140     MsgConversationWidget *mConversation;
   115 
   141 
   116     /**
   142     /**
       
   143      * Graphics Item to hold message incoming state. 
       
   144      * Applicable for notification
       
   145      * Owned
       
   146      */
       
   147     HbIconItem *mIncomingMsgStateIconItem;
       
   148 
       
   149     /**
   117      * Graphics Item to hold message sending state.
   150      * Graphics Item to hold message sending state.
   118      * Owned
   151      * Owned
   119      */
   152      */
   120     HbIconItem *mMessageStateIconItem;
   153     HbIconItem *mOutgoingMsgStateIconItem;
   121 };
   154 };
   122 
   155 
   123 #endif // MSG_CONVERSATION_VIEW_ITEM_H
   156 #endif // MSG_CONVERSATION_VIEW_ITEM_H
   124 // EOF
   157 // EOF