1) Added Yahoo transport support.

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@4690 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Derek DeMoro
2006-07-26 19:20:03 +00:00
committed by derek
parent 4a4e391bca
commit 2468ef6ea7
9 changed files with 116 additions and 12 deletions

View File

@ -30,6 +30,8 @@ import org.jivesoftware.spark.util.log.Log;
import org.jivesoftware.sparkimpl.preference.chat.ChatPreference;
import org.jivesoftware.sparkimpl.preference.chat.ChatPreferences;
import javax.swing.Icon;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
@ -292,4 +294,15 @@ public class ChatManager {
return false;
}
public Icon getPresenceIconForContactHandler(Presence presence) {
for (ContactItemHandler handler : contactItemHandlers) {
Icon icon = handler.useIcon(presence);
if (icon != null) {
return icon;
}
}
return null;
}
}