src/net/java/sip/communicator/impl/protocol/jabber/ScServiceDiscoveryManager.java
/**
     * Fires events to UserCapsNodeListener.
     * @param add whether this is add or remove event.
     * @param user the user full jid this is about.
     * @param nodeVer
     */
Fires events to UserCapsNodeListener.
@param add whether this is add or remove event.
@param user the user full jid this is about.
@param nodeVer
Fires events to UserCapsNodeListener . @param add whether this is add or remove event . @param user the user full jid this is about . @param nodeVer
private void fireUserCapsNodeEvent(
        boolean add, Jid user, String nodeVer)
    {
        UserCapsNodeListener[] listeners;
        synchronized (userCapsNodeListeners)
        {
            listeners
                = userCapsNodeListeners.toArray(
                NO_USER_CAPS_NODE_LISTENERS);
        }
        if (listeners.length != 0)
        {
            for (UserCapsNodeListener listener : listeners)
            {
                if(add)
                {
                    listener.userCapsNodeAdded(
                        user,
                        getFullJidsByBareJid(user.asBareJid()),
                        nodeVer, true);
                }
                else
                {
                    listener.userCapsNodeRemoved(
                        user,
                        getFullJidsByBareJid(user.asBareJid()),
                        nodeVer, false);
                }
            }
        }
    }
private void fireUserCapsNodeEvent ( boolean add , Jid user , String nodeVer ) { UserCapsNodeListener [ ] listeners ; synchronized ( userCapsNodeListeners ) { listeners = userCapsNodeListeners . toArray ( NO_USER_CAPS_NODE_LISTENERS ) ; } if ( listeners . length != 0 ) { for ( UserCapsNodeListener listener : listeners ) { if ( add ) { listener . userCapsNodeAdded ( user , getFullJidsByBareJid ( user . asBareJid ( ) ) , nodeVer , true ) ; } else { listener . userCapsNodeRemoved ( user , getFullJidsByBareJid ( user . asBareJid ( ) ) , nodeVer , false ) ; } } } }
Fires events to UserCapsNodeListener.
Fires events to UserCapsNodeListener .