| 1 |
/* |
|---|
| 2 |
* LastPod is an application used to publish one's iPod play counts to Last.fm. |
|---|
| 3 |
* Copyright (C) 2007 Chris Tilden |
|---|
| 4 |
* |
|---|
| 5 |
* This program is free software; you can redistribute it and/or |
|---|
| 6 |
* modify it under the terms of the GNU General Public License |
|---|
| 7 |
* as published by the Free Software Foundation; either version 2 |
|---|
| 8 |
* of the License, or (at your option) any later version. |
|---|
| 9 |
* |
|---|
| 10 |
* This program is distributed in the hope that it will be useful, |
|---|
| 11 |
* but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 |
* GNU General Public License for more details. |
|---|
| 14 |
* |
|---|
| 15 |
* You should have received a copy of the GNU General Public License |
|---|
| 16 |
* along with this program; if not, write to the Free Software |
|---|
| 17 |
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|---|
| 18 |
*/ |
|---|
| 19 |
package org.lastpod; |
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
/** |
|---|
| 23 |
* An interface to track the Chunk's progress. |
|---|
| 24 |
* @author Chris Tilden |
|---|
| 25 |
*/ |
|---|
| 26 |
public interface ChunkProgress { |
|---|
| 27 |
/** |
|---|
| 28 |
* When the progress needs to be updated. |
|---|
| 29 |
* @param currentChunk The progress value. |
|---|
| 30 |
*/ |
|---|
| 31 |
void updateCurrentChunk(final int currentChunk); |
|---|
| 32 |
|
|---|
| 33 |
/** |
|---|
| 34 |
* Sets the number of chunks to be submitted. |
|---|
| 35 |
* @param numberOfChunks The number of chunks to be submitted. |
|---|
| 36 |
*/ |
|---|
| 37 |
void setNumberOfChunks(final int numberOfChunks); |
|---|
| 38 |
|
|---|
| 39 |
/** |
|---|
| 40 |
* Set to <code>true</code> if the submission was successful. |
|---|
| 41 |
* @param completionStatus <code>true</code> if the submission was |
|---|
| 42 |
* successful. |
|---|
| 43 |
*/ |
|---|
| 44 |
void setCompletionStatus(boolean completionStatus); |
|---|
| 45 |
|
|---|
| 46 |
/** |
|---|
| 47 |
* Sets the message for the submitStatus label. |
|---|
| 48 |
* @param submitStatusMessage The message for the submitStatus label. |
|---|
| 49 |
*/ |
|---|
| 50 |
void setSubmitStatusMessage(String submitStatusMessage); |
|---|
| 51 |
} |
|---|