001/*
002 * Version 0.70 01/04/2002
003 *
004 * Visit my url for update: http://www.geocities.com/beapetrovicova/
005 * 
006 * jFtp was developed by Bea Petrovicova <beapetrovicova@yahoo.com>.
007 * The design and implementation of jFtp are available for royalty-free 
008 * adoption and use. This software is provided 'as is' without any 
009 * guarantees. Copyright is retained by Bea Petrovicova. Redistribution 
010 * of any part of jFtp or any derivative works must include this notice.
011 * 
012 */
013
014package cz.dhl.ui;
015
016import cz.dhl.io.CoFile;
017
018/**
019 * Defines interface to display progress.
020 * 
021 * @Version 0.70 01/04/2002
022 * @author Bea Petrovicova <beapetrovicova@yahoo.com>  
023 */
024public interface CoProgress
025{
026   /** Sets file. 
027    * @param file Source file */
028   abstract public void setFile(CoFile file);
029   /** Sets to and file.
030    * @param to Destination file 
031    * @param file Source file */
032   abstract public void setFile(CoFile to, CoFile file);
033   /** Sets progress. 
034    * @param increment Bytes transfered  */
035   abstract public void setProgress(int increment);
036   /** Handles transfer delay. */
037   abstract public void setDelay(long increment);
038   /** Chcecks for user abort request. */
039   abstract public boolean isAborted();
040}