529 |
529 |
530 // active presentities |
530 // active presentities |
531 for ( TInt i = 0; i < count; i++ ) |
531 for ( TInt i = 0; i < count; i++ ) |
532 { |
532 { |
533 MPresenceInfo* info = aPresenceFactory.NewPresenceInfoLC(); // << info |
533 MPresenceInfo* info = aPresenceFactory.NewPresenceInfoLC(); // << info |
534 aEntities.Append( info ); |
534 aEntities.AppendL( info ); |
535 // aEntities may contain entries even this method leaves |
535 // aEntities may contain entries even this method leaves |
536 CleanupStack::Pop(); // >> info |
536 CleanupStack::Pop(); // >> info |
537 |
537 |
538 NotifyToPrInfoL( aPresenceFactory, *aDocs[i], *info ); |
538 NotifyToPrInfoL( aPresenceFactory, *aDocs[i], *info ); |
539 |
539 |
540 // Add SIP identity to active users list |
540 // Add SIP identity to active users list |
541 MXIMPIdentity* active = aFactory.NewIdentityLC(); // << active |
541 MXIMPIdentity* active = aFactory.NewIdentityLC(); // << active |
542 aActives.Append( active ); |
542 aActives.AppendL( active ); |
543 CleanupStack::Pop(); // >> active |
543 CleanupStack::Pop(); // >> active |
544 |
544 |
545 // Convert SIP entity URI from UTF to Unicode. |
545 // Convert SIP entity URI from UTF to Unicode. |
546 const TDesC8* pUri8 = (aDocs[i])->EntityURI(); |
546 const TDesC8* pUri8 = (aDocs[i])->EntityURI(); |
547 HBufC16* uri16 = NULL; |
547 HBufC16* uri16 = NULL; |
729 const TDesC8* stateVal = aElem->AttrValue( KSimpleState8 ); |
729 const TDesC8* stateVal = aElem->AttrValue( KSimpleState8 ); |
730 if ( stateVal && !stateVal->CompareF( KSimpleTerminated8 )) |
730 if ( stateVal && !stateVal->CompareF( KSimpleTerminated8 )) |
731 { |
731 { |
732 // Add presentity into terminated list |
732 // Add presentity into terminated list |
733 MXIMPIdentity* terminated = aFactory.NewIdentityLC(); // +terminated |
733 MXIMPIdentity* terminated = aFactory.NewIdentityLC(); // +terminated |
734 aTerminated.Append( terminated ); |
734 aTerminated.AppendL( terminated ); |
735 CleanupStack::Pop(); // -terminated |
735 CleanupStack::Pop(); // -terminated |
736 |
736 |
737 // Convert SIP entity URI from UTF to Unicode. |
737 // Convert SIP entity URI from UTF to Unicode. |
738 HBufC16* uri16 = NULL; |
738 HBufC16* uri16 = NULL; |
739 uri16 = CnvUtfConverter::ConvertToUnicodeFromUtf8L( *uri8 ); |
739 uri16 = CnvUtfConverter::ConvertToUnicodeFromUtf8L( *uri8 ); |