Search in sources :

Example 1 with IChatRoomInvitationListener

use of org.eclipse.ecf.presence.chatroom.IChatRoomInvitationListener in project ecf by eclipse.

the class XMPPChatRoomManager method fireInvitationReceived.

protected void fireInvitationReceived(ID roomID, ID fromID, ID toID, String subject, String body) {
    List toNotify = null;
    synchronized (invitationListeners) {
        toNotify = new ArrayList(invitationListeners);
    }
    for (final Iterator i = toNotify.iterator(); i.hasNext(); ) {
        final IChatRoomInvitationListener l = (IChatRoomInvitationListener) i.next();
        l.handleInvitationReceived(roomID, fromID, subject, body);
    }
}
Also used : ArrayList(java.util.ArrayList) Iterator(java.util.Iterator) ArrayList(java.util.ArrayList) List(java.util.List) IChatRoomInvitationListener(org.eclipse.ecf.presence.chatroom.IChatRoomInvitationListener)

Aggregations

ArrayList (java.util.ArrayList)1 Iterator (java.util.Iterator)1 List (java.util.List)1 IChatRoomInvitationListener (org.eclipse.ecf.presence.chatroom.IChatRoomInvitationListener)1