src/net/java/sip/communicator/impl/protocol/jabber/OperationSetFileTransferJabberImpl.java
/**
     * Parses the given Jabber status to a <tt>FileTransfer</tt> interface
     * status.
     *
     * @param jabberStatus the Jabber status to parse
     * @return the parsed status
     */
Parses the given Jabber status to a FileTransfer interface
status.

@param jabberStatus the Jabber status to parse
@return the parsed status
Parses the given Jabber status to a FileTransfer interface status . @param jabberStatus the Jabber status to parse @return the parsed status
private static int parseJabberStatus(Status jabberStatus)
    {
        if (jabberStatus.equals(Status.complete))
            return FileTransferStatusChangeEvent.COMPLETED;
        else if (jabberStatus.equals(Status.cancelled))
            return FileTransferStatusChangeEvent.CANCELED;
        else if (jabberStatus.equals(Status.in_progress)
                || jabberStatus.equals(Status.negotiated))
            return FileTransferStatusChangeEvent.IN_PROGRESS;
        else if (jabberStatus.equals(Status.error))
            return FileTransferStatusChangeEvent.FAILED;
        else if (jabberStatus.equals(Status.refused))
            return FileTransferStatusChangeEvent.REFUSED;
        else if (jabberStatus.equals(Status.negotiating_transfer)
                || jabberStatus.equals(Status.negotiating_stream))
            return FileTransferStatusChangeEvent.PREPARING;
        else
            return FileTransferStatusChangeEvent.WAITING;
    }
private static int parseJabberStatus ( Status jabberStatus ) { if ( jabberStatus . equals ( Status . complete ) ) return FileTransferStatusChangeEvent . COMPLETED ; else if ( jabberStatus . equals ( Status . cancelled ) ) return FileTransferStatusChangeEvent . CANCELED ; else if ( jabberStatus . equals ( Status . in_progress ) || jabberStatus . equals ( Status . negotiated ) ) return FileTransferStatusChangeEvent . IN_PROGRESS ; else if ( jabberStatus . equals ( Status . error ) ) return FileTransferStatusChangeEvent . FAILED ; else if ( jabberStatus . equals ( Status . refused ) ) return FileTransferStatusChangeEvent . REFUSED ; else if ( jabberStatus . equals ( Status . negotiating_transfer ) || jabberStatus . equals ( Status . negotiating_stream ) ) return FileTransferStatusChangeEvent . PREPARING ; else return FileTransferStatusChangeEvent . WAITING ; }
Parses the given Jabber status to a <tt>FileTransfer</tt> interface
 status.
Parses the given Jabber status to a <tt > FileTransfer< / tt > interface status .
// FileTransfer.Status.initial