Source code: com/tuneology/avm/ProgressListener.java
1 /*
2 ProgressListener.java
3
4 Copyright (C) 2002 Fran Taylor
5
6 This file is part of java-avm.
7
8 java-avm is free software; you can redistribute it and/or modify it
9 under the terms of the GNU Lesser General Public License as
10 published by the Free Software Foundation; either version 2 of the
11 License, or (at your option) any later version.
12
13 java-avm is distributed in the hope that it will be useful, but
14 WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 Lesser General Public License for more details.
17
18 You should have received a copy of the GNU Lesser General Public
19 License along with java-avm; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
21 USA
22
23 $Id: ProgressListener.java,v 1.1 2002/09/23 05:03:11 xnarf Exp $
24
25 */
26
27 package com.tuneology.avm;
28
29 /**
30 * Implement this class to get status updates.
31 *
32 * @version $Id: ProgressListener.java,v 1.1 2002/09/23 05:03:11 xnarf Exp $
33 *
34 * @author Fran Taylor
35 */
36
37 public interface ProgressListener {
38 /**
39 *
40 * @param tsk
41 */
42 abstract public void setStatus(int tsk);
43 /**
44 *
45 * @param mb
46 */
47 abstract public void setTotal(int mb);
48 /**
49 *
50 * @param mb
51 * @param trk
52 * @param fifoPct
53 */
54 abstract public void setCurrent(int mb, int trk, int fifoPct);
55 /**
56 *
57 * @return true if the operation is to be canceled.
58 */
59 abstract public boolean isCanceled();
60 }
61
62
63 /*
64 Local Variables:
65 mode:java
66 indent-tabs-mode:nil
67 c-basic-offset:4
68 c-indent-level:4
69 c-continued-statement-offset:4
70 c-brace-offset:-4
71 c-brace-imaginary-offset:-4
72 c-argdecl-indent:0
73 c-label-offset:0
74 End:
75 */