798 // active presentities |
798 // active presentities |
799 for ( TInt i = 0; i < count; i++ ) |
799 for ( TInt i = 0; i < count; i++ ) |
800 { |
800 { |
801 MPresenceInfo* info = |
801 MPresenceInfo* info = |
802 aPresenceFactory.NewPresenceInfoLC();//<< info |
802 aPresenceFactory.NewPresenceInfoLC();//<< info |
803 aEntities.Append( info ); |
803 aEntities.AppendL( info ); |
804 // aEntities may contain entries even this method leaves |
804 // aEntities may contain entries even this method leaves |
805 CleanupStack::Pop();// >> info |
805 CleanupStack::Pop();// >> info |
806 |
806 |
807 NotifyToPrInfoL( aFactory, aPresenceFactory, *docs[i], *info ); |
807 NotifyToPrInfoL( aFactory, aPresenceFactory, *docs[i], *info ); |
808 // Add SIp identity to active users list |
808 // Add SIp identity to active users list |
809 MXIMPIdentity* active = aFactory.NewIdentityLC();// << active |
809 MXIMPIdentity* active = aFactory.NewIdentityLC();// << active |
810 aActives.Append( active ); |
810 aActives.AppendL( active ); |
811 CleanupStack::Pop();// >> active |
811 CleanupStack::Pop();// >> active |
812 |
812 |
813 // Convert SIP entity URI from UTF to Unicode. |
813 // Convert SIP entity URI from UTF to Unicode. |
814 const TDesC8* pUri8 = (docs[i])->EntityURI(); |
814 const TDesC8* pUri8 = (docs[i])->EntityURI(); |
815 HBufC16* uri16 = NULL; |
815 HBufC16* uri16 = NULL; |
861 // Save resource element URI into list of |
861 // Save resource element URI into list of |
862 // "terminated" users. |
862 // "terminated" users. |
863 const TDesC8* uri8 = elem2->AttrValue( KPresenceUri8 ); |
863 const TDesC8* uri8 = elem2->AttrValue( KPresenceUri8 ); |
864 MXIMPIdentity* terminated = |
864 MXIMPIdentity* terminated = |
865 aFactory.NewIdentityLC();// << terminated |
865 aFactory.NewIdentityLC();// << terminated |
866 aTerminated.Append( terminated ); |
866 aTerminated.AppendL( terminated ); |
867 CleanupStack::Pop(); // >> terminated |
867 CleanupStack::Pop(); // >> terminated |
868 |
868 |
869 // Convert SIP entity URI from UTF to Unicode. |
869 // Convert SIP entity URI from UTF to Unicode. |
870 HBufC16* uri16 = NULL; |
870 HBufC16* uri16 = NULL; |
871 uri16 = |
871 uri16 = |