Added a reference to the creating provider.

cusax-fix
Emil Ivov 20 years ago
parent 118bb4a7af
commit c1b794031a

@ -220,6 +220,15 @@ private void fireContactsReordered( ContactGroupIcqImpl parentGroup)
/** @todo implement fireContactsReordered() */
}
/**
* Retrns a reference to the provider that created us.
* @return a reference to a ProtocolProviderServiceIcqImpl instance.
*/
ProtocolProviderServiceIcqImpl getParentProvider()
{
return icqProvider;
}
/**
* Returns the index of the ContactGroup containing the specified joust sim
* group.
@ -466,7 +475,8 @@ public void groupAdded(BuddyList list, List oldItems, List newItems,
logger.trace("Group added: " + group.getName());
logger.trace("Buddies: " + buddies);
ContactGroupIcqImpl newGroup
= new ContactGroupIcqImpl((MutableGroup)group, buddies);
= new ContactGroupIcqImpl((MutableGroup)group, buddies,
ServerStoredContactListIcqImpl.this);
//add a joust sim buddy listener to all of the buddies in this group
for(int i = 0; i < buddies.size(); i++)
@ -553,8 +563,8 @@ public void groupRemoved(BuddyList list, List oldItems, List newItems,
public void buddyAdded(BuddyList list, Group joustSimGroup, List oldItems,
List newItems, Buddy buddy)
{
ContactIcqImpl newContact
= new ContactIcqImpl(buddy);
ContactIcqImpl newContact = new ContactIcqImpl(
buddy, ServerStoredContactListIcqImpl.this);
ContactGroupIcqImpl parentGroup = findContactGroup(joustSimGroup);
if (parentGroup == null)

Loading…
Cancel
Save