Added more variants of isUpdateInProgress to UpdateManager.

This commit is contained in:
dev
2015-06-09 03:44:34 +00:00
parent 1a40e57413
commit 226bee64ef

View File

@ -146,11 +146,28 @@ public interface UpdateManager {
public String checkAvailable(UpdateType type, String id, long maxWait); public String checkAvailable(UpdateType type, String id, long maxWait);
/** /**
* Is any download in progress? * Is a router update being downloaded?
* Does not include checks. * @return true iff router update is being downloaded
* @since 0.9.21
*/ */
public boolean isUpdateInProgress(); public boolean isUpdateInProgress();
/**
* Is a router update being downloaded?
* @param type the UpdateType of this request
* @return true iff router update is being downloaded
* @since 0.9.21
*/
public boolean isUpdateInProgress(UpdateType type);
/**
* Is a router update being downloaded?
* @param type the UpdateType of this request
* @param id of this request
* @return true iff router update is being downloaded
* @since 0.9.21
*/
public boolean isUpdateInProgress(UpdateType type, String id);
/** /**
* Non-blocking. Does not check. * Non-blocking. Does not check.
* Fails if check or update already in progress. * Fails if check or update already in progress.