diff -r 238255e8b033 -r 84d9eb65b26f messagingapp/msgui/appengine/inc/conversationsmodel.h --- a/messagingapp/msgui/appengine/inc/conversationsmodel.h Fri Apr 16 14:56:15 2010 +0300 +++ b/messagingapp/msgui/appengine/inc/conversationsmodel.h Mon May 03 12:29:07 2010 +0300 @@ -38,17 +38,16 @@ * */ -class ConversationsModel : public QStandardItemModel +class ConversationsModel: public QStandardItemModel { - Q_OBJECT +Q_OBJECT public: /** * Constructor */ - explicit ConversationsModel(ConversationMsgStoreHandler* msgStoreHandler, - QObject* parent = 0); + explicit ConversationsModel(ConversationMsgStoreHandler* msgStoreHandler, QObject* parent = 0); /** * Destructor @@ -69,8 +68,7 @@ * @param entry, CCsConversationEntry * @param dynamicUpdate , true if it is a dynamic update event */ - void addRow(const CCsConversationEntry& entry, - bool dynamicUpdate=false); + void addRow(const CCsConversationEntry& entry, bool dynamicUpdate = false); /** * Delete a row from conversations model. @@ -78,16 +76,45 @@ */ void deleteRow(int msgId); - private: /** - * Populate an item in model from CovergedMessage. + * Populate an item in model from CCsConversationEntry. + * @param item, QStandardItem + * @param entry, CCsConversationEntry + */ + void populateItem(QStandardItem& item, const CCsConversationEntry& entry); + + /** + * Populate MMS related data into item. + * @param item, QStandardItem + * @param entry, CCsConversationEntry + */ + void handleMMS(QStandardItem& item, const CCsConversationEntry& entry); + + /** + * Populate MMS Notification related data into item. * @param item, QStandardItem * @param entry, CCsConversationEntry */ - void populateItem(QStandardItem& item, - const CCsConversationEntry& entry); + void handleMMSNotification(QStandardItem& item, + const CCsConversationEntry& entry); + + /** + * Populate BT message related data into item. + * @param item, QStandardItem + * @param entry, CCsConversationEntry + */ + void handleBlueToothMessages(QStandardItem& item, + const CCsConversationEntry& entry); + + /** + * Populate Bio message related data into item. + * @param item, QStandardItem + * @param entry, CCsConversationEntry + */ + void handleBioMessages(QStandardItem& item, + const CCsConversationEntry& entry); private: @@ -97,17 +124,23 @@ */ ConversationMsgStoreHandler* mMsgStoreHandler; - /** + /** * UniDataModelLoader object * Own */ UniDataModelLoader* iDataModelPluginLoader; - /** + /** * Mms Data model plugin interface * Not Own */ - UniDataModelPluginInterface* iMmsDataPlugin; + UniDataModelPluginInterface* iMmsDataPlugin; + + /** + * BioMsg Data model plugin interface + * Not Own + */ + UniDataModelPluginInterface* iBioMsgPlugin; }; #endif // CONVERSATIONS_MODEL_H