src/net/java/sip/communicator/impl/protocol/jabber/OperationSetDesktopSharingServerJabberImpl.java
/**
     * Implementation of method <tt>registrationStateChange</tt> from
     * interface RegistrationStateChangeListener for setting up (or down)
     * our <tt>InputEvtManager</tt> when an <tt>XMPPConnection</tt> is available
     *
     * @param evt the event received
     * @param packetListener the packet listener for InputEvtIQ of this
     * connection.  (OperationSetDesktopSharingServerJabberImpl or
     * OperationSetDesktopSharingClientJabberImpl).
     * @param packetFilter the packet filter for InputEvtIQ of this connection.
     * @param connection The XMPP connection.
     */
Implementation of method registrationStateChange from
interface RegistrationStateChangeListener for setting up (or down)
our InputEvtManager when an XMPPConnection is available

@param evt the event received
@param packetListener the packet listener for InputEvtIQ of this
connection.
Implementation of method registrationStateChange from interface RegistrationStateChangeListener for setting up ( or down ) our InputEvtManager when an XMPPConnection is available @param evt the event received @param packetListener the packet listener for InputEvtIQ of this connection .
public static void registrationStateChanged(
            RegistrationStateChangeEvent evt,
            IQRequestHandler packetListener,
            XMPPConnection connection)
    {
        if(connection == null)
            return;
        if ((evt.getNewState() == RegistrationState.REGISTERING))
        {
            /* listen to specific inputevt IQ */
            connection.registerIQRequestHandler(packetListener);
        }
        else if ((evt.getNewState() == RegistrationState.UNREGISTERING))
        {
            /* listen to specific inputevt IQ */
            connection.unregisterIQRequestHandler(packetListener);
        }
    }
public static void registrationStateChanged ( RegistrationStateChangeEvent evt , IQRequestHandler packetListener , XMPPConnection connection ) { if ( connection == null ) return ; if ( ( evt . getNewState ( ) == RegistrationState . REGISTERING ) ) { /* listen to specific inputevt IQ */ connection . registerIQRequestHandler ( packetListener ) ; } else if ( ( evt . getNewState ( ) == RegistrationState . UNREGISTERING ) ) { /* listen to specific inputevt IQ */ connection . unregisterIQRequestHandler ( packetListener ) ; } }
Implementation of method <tt>registrationStateChange</tt> from
 interface RegistrationStateChangeListener for setting up (or down)
 our <tt>InputEvtManager</tt> when an <tt>XMPPConnection</tt> is available
Implementation of method <tt > registrationStateChange< / tt > from interface RegistrationStateChangeListener for setting up ( or down ) our <tt > InputEvtManager< / tt > when an <tt > XMPPConnection< / tt > is available