--- a/messagingapp/msgui/appengine/src/conversationmsgstorehandler.cpp Mon May 03 12:29:07 2010 +0300
+++ b/messagingapp/msgui/appengine/src/conversationmsgstorehandler.cpp Fri May 14 15:49:35 2010 +0300
@@ -407,8 +407,11 @@
mDraftsModel = draftsModel;
iState = EReadDrafts;
TCallBack callback = TCallBack(ProcessDraftMessages, (TAny*) this);
- iIdle = CIdle::NewL(CActive::EPriorityStandard);
- iIdle->Start(callback);
+ TRAPD(err, iIdle = CIdle::NewL(CActive::EPriorityStandard));
+ if(err == KErrNone)
+ {
+ iIdle->Start(callback);
+ }
}
// -----------------------------------------------------------------------------
@@ -648,10 +651,10 @@
}
//---------------------------------------------------------------
-// ConversationMsgStoreHandler::setNotificationMessageId
+// ConversationMsgStoreHandler::setNotificationMessageIdL
// @see header
//---------------------------------------------------------------
-void ConversationMsgStoreHandler::setNotificationMessageId(int messageId)
+void ConversationMsgStoreHandler::setNotificationMessageIdL(int messageId)
{
// get MMS Notification client mtm & set the content to current entry
if(iNotificationClient)
@@ -668,10 +671,10 @@
}
//---------------------------------------------------------------
-// ConversationMsgStoreHandler::NotificationMsgSize
+// ConversationMsgStoreHandler::NotificationMsgSizeL
// @see header
//---------------------------------------------------------------
-QString ConversationMsgStoreHandler::NotificationMsgSize()
+QString ConversationMsgStoreHandler::NotificationMsgSizeL()
{
// Size of message.
TInt size = iNotificationClient->MessageTransferSize( );
@@ -841,7 +844,7 @@
iNotificationClient->SwitchCurrentEntryL(aId); */
// set context to current entry
- setNotificationMessageId(aId);
+ setNotificationMessageIdL(aId);
TTime currentTime;
currentTime.HomeTime( );
@@ -925,7 +928,7 @@
{
// Mark the entry as read
entry.SetUnread( EFalse );
- cEntry->ChangeL( entry );
+ TRAP_IGNORE(cEntry->ChangeL( entry ));
}
// extract message type
extractMsgType(entry,msgType,msgSubType);