org.walluck.oscar.client
Interface DaimBuddyListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
AbstractOscarClient

public interface DaimBuddyListener
extends EventListener

Interface DaimBuddyListener This listener is called for buddy (list) changes.

Since:
1.0
Version:
1.0
Author:
Alain Penders

Method Summary
 void buddyOffline(String sn, Buddy buddy)
          Called when a buddy goes offline.
 void buddyOnline(String sn, Buddy buddy)
          Called when a buddy goes online.
 void newBuddyList(Buddy[] buddies)
          The server sent us our buddy list.
 

Method Detail

newBuddyList

void newBuddyList(Buddy[] buddies)
The server sent us our buddy list. (In general this list replaces everyone who was already in the buddy list.

Parameters:
buddies - Array of Buddy's

buddyOffline

void buddyOffline(String sn,
                  Buddy buddy)
Called when a buddy goes offline. Note: it's possible that this method gets called with buddy == null. Check for it!

Parameters:
sn - ScreenName
buddy - Buddy

buddyOnline

void buddyOnline(String sn,
                 Buddy buddy)
Called when a buddy goes online. The buddy's attributes are all updated before this is called. If you cache them, you must update them as well! Note: it's possible that this method gets called with buddy == null. Check for it!

Parameters:
sn - ScreenName
buddy - Buddy