2010-08-17 00:36:24 +02:00
|
|
|
package net.osmand;
|
2010-05-08 00:26:50 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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);
|
|
|
|
|
2010-06-10 21:36:21 +02:00
|
|
|
public void setGeneralProgress(String genProgress);
|
|
|
|
|
2010-05-08 00:26:50 +02:00
|
|
|
public void finishTask();
|
|
|
|
|
|
|
|
public boolean isIndeterminate();
|
|
|
|
|
2010-05-18 15:36:42 +02:00
|
|
|
public boolean isInterrupted();
|
2010-05-08 00:26:50 +02:00
|
|
|
|
|
|
|
}
|