50249440e2
git-svn-id: https://osmand.googlecode.com/svn/trunk@455 e29c36b1-1cfa-d876-8d93-3434fc2bb7b8
30 lines
673 B
Java
30 lines
673 B
Java
package net.osmand;
|
|
|
|
/**
|
|
* That common interface that could be used by background operations.
|
|
* Implementation of it depends on chosen UI platform
|
|
*/
|
|
public interface IProgress {
|
|
|
|
/**
|
|
* @param taskName
|
|
* @param work - -1 means that indeterminate task,
|
|
* otherwise number of could be specified
|
|
*/
|
|
public void startTask(String taskName, int work);
|
|
|
|
public void startWork(int work);
|
|
|
|
public void progress(int deltaWork);
|
|
|
|
public void remaining(int remainingWork);
|
|
|
|
public void setGeneralProgress(String genProgress);
|
|
|
|
public void finishTask();
|
|
|
|
public boolean isIndeterminate();
|
|
|
|
public boolean isInterrupted();
|
|
|
|
}
|