Source code: dr/davmgr/protocol/cmd/StatusListener.java
1 package dr.davmgr.protocol.cmd;
2
3 import dr.davmgr.protocol.Urls;
4
5 /** The listener interface for recieving status information.
6 The class that is interested in recieving status information
7 implements this interface.
8
9 *@author Daniel Rohde
10 *@see Command#addStatusListener
11 */
12 public interface StatusListener
13 {
14 /** Called if an action starts.
15 *@param urls Urls object that will be processed.
16 */
17 public void beginAction(Urls urls);
18
19 /** Called if an action ends.
20 *@param urls Urls object that was processed.
21 *@param status true if action was successfull, false otherwise
22 */
23 public void endAction(Urls urls, int status);
24
25
26 /** Called if all actions done. */
27 public void allActionsDone();
28
29 /** Set a maximum value for a progess bar.
30 *@param maxcount maxmimum value for a progress bar.
31 *@see #setCount
32 */
33 public void setMaxCount(int maxcount);
34
35 /** Set a actual value for a progress bar.
36 *@param count actual value for a progress bar.
37 *@see #setMaxCount
38 */
39 public void setCount(int count);
40 }
41