01: /*
02: * Created on May 28, 2004
03: *
04: * This file is part of Thingamablog. ( http://thingamablog.sf.net )
05: *
06: * Copyright (c) 2004, Bob Tantlinger All Rights Reserved.
07: *
08: * This program is free software; you can redistribute it and/or
09: * modify it under the terms of the GNU General Public License
10: * as published by the Free Software Foundation; either version 2
11: * of the License, or (at your option) any later version.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: * You should have received a copy of the GNU General Public License
19: * along with this program; if not, write to the Free Software
20: * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,
21: * USA.
22: */
23: package net.sf.thingamablog.transport;
24:
25: /**
26: * Interface for monitoring the progress of a file publish
27: *
28: * @author Bob Tantlinger
29: *
30: */
31: public interface TransportProgress {
32: /**
33: * Invoked when bytes are transferred
34: *
35: * @param bytes The number of bytes transferred
36: */
37: public void bytesTransferred(long bytes);
38:
39: /**
40: * Indicates if the transport was aborted
41: *
42: * @return true if aborted, false otherwise
43: */
44: public boolean isAborted();
45:
46: public void logMessage(String msg);
47: }
|