messagingfw/wappushfw/SISLPushMsgUtils/src/SISLPushMsgUtils.cpp
changeset 58 6c34d0baa0b1
parent 0 8e480a14352b
equal deleted inserted replaced
55:6f4453afd006 58:6c34d0baa0b1
   273 	else if (aPushType == KUidWapPushMsgSL)
   273 	else if (aPushType == KUidWapPushMsgSL)
   274 		{
   274 		{
   275 		pushMsg = CSLPushMsgEntry::NewL();
   275 		pushMsg = CSLPushMsgEntry::NewL();
   276 		}
   276 		}
   277 
   277 
   278 	CleanupStack::PushL(pushMsg);
   278 	if(pushMsg)
   279 	pushMsg->RetrieveL(Session(), iMsvEntry->EntryId());
   279         {
   280 	CleanupStack::Pop(pushMsg);
   280         CleanupStack::PushL(pushMsg);
       
   281         pushMsg->RetrieveL(Session(), iMsvEntry->EntryId());
       
   282         CleanupStack::Pop(pushMsg);
       
   283         }
   281 
   284 
   282 	return pushMsg;
   285 	return pushMsg;
   283 	}
   286 	}
   284 
   287 
   285 
   288 
   525 	TTime date = Time::NullTTime();
   528 	TTime date = Time::NullTTime();
   526 
   529 
   527 	iMsvEntry->SetEntryL(aId);
   530 	iMsvEntry->SetEntryL(aId);
   528 
   531 
   529 	CPushMsgEntryBase* pushEntry = GetPushMsgEntryL(aPushType);
   532 	CPushMsgEntryBase* pushEntry = GetPushMsgEntryL(aPushType);
   530 
   533 	if(pushEntry)
   531 	if (aPushType == KUidWapPushMsgSI)
   534         {
   532 		{
   535         if (aPushType == KUidWapPushMsgSI)
   533 		date = STATIC_CAST(CSIPushMsgEntry*, pushEntry) ->Created();
   536             {
   534 		}
   537             date = STATIC_CAST(CSIPushMsgEntry*, pushEntry) ->Created();
   535 	else if (aPushType == KUidWapPushMsgSL)
   538             }
   536 		{
   539         else if (aPushType == KUidWapPushMsgSL)
   537 		date = STATIC_CAST(CSLPushMsgEntry*, pushEntry) ->TimeSent();
   540             {
   538 		}
   541             date = STATIC_CAST(CSLPushMsgEntry*, pushEntry) ->TimeSent();
   539 	delete pushEntry;
   542             }
       
   543         delete pushEntry;
       
   544         }
   540 	return date;
   545 	return date;
   541 	}
   546 	}
   542 
   547 
   543 
   548 
   544 /**
   549 /**