src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java
/**
         * The method is called by a ProtocolProvider implementation whenever
         * a change in the registration state of the corresponding provider had
         * occurred.
         * @param evt ProviderStatusChangeEvent the event describing the status
         * change.
         */
The method is called by a ProtocolProvider implementation whenever
a change in the registration state of the corresponding provider had
occurred.
@param evt ProviderStatusChangeEvent the event describing the status
change.
The method is called by a ProtocolProvider implementation whenever a change in the registration state of the corresponding provider had occurred . @param evt ProviderStatusChangeEvent the event describing the status change .
@Override
        public void registrationStateChanged(RegistrationStateChangeEvent evt)
        {
            if (logger.isDebugEnabled())
                logger.debug("The provider changed state from: "
                         + evt.getOldState()
                         + " to: " + evt.getNewState());
            if (evt.getNewState() != RegistrationState.REGISTERED)
            {
                return;
            }
            opSetPersPresence =
                (OperationSetPersistentPresenceJabberImpl) jabberProvider
                    .getOperationSet(OperationSetPersistentPresence.class);
            FileTransferManager.getInstanceFor(
                jabberProvider.getConnection())
                .addFileTransferListener(new FileTransferRequestListener());
        }
@ Override public void registrationStateChanged ( RegistrationStateChangeEvent evt ) { if ( logger . isDebugEnabled ( ) ) logger . debug ( "The provider changed state from: " + evt . getOldState ( ) + " to: " + evt . getNewState ( ) ) ; if ( evt . getNewState ( ) != RegistrationState . REGISTERED ) { return ; } opSetPersPresence = ( OperationSetPersistentPresenceJabberImpl ) jabberProvider . getOperationSet ( OperationSetPersistentPresence . class ) ; FileTransferManager . getInstanceFor ( jabberProvider . getConnection ( ) ) . addFileTransferListener ( new FileTransferRequestListener ( ) ) ; }
The method is called by a ProtocolProvider implementation whenever
 a change in the registration state of the corresponding provider had
 occurred.
The method is called by a ProtocolProvider implementation whenever a change in the registration state of the corresponding provider had occurred .
// Create the Jabber FileTransferManager