Package com.biglybt.pif.update
Interface Update
- All Known Implementing Classes:
UpdateImpl
public interface Update
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionvoid
void
cancel()
cancel this updatevoid
complete
(boolean success) mark the update as complete and inform any listenersgetDecision
(int decision_type, String decision_name, String decision_description, Object decision_data) String[]
getName()
int
boolean
boolean
boolean
void
void
setDescriptionURL
(String url) void
setRelativeURLBase
(String base) void
setRestartRequired
(int restart_required) void
setUserObject
(Object obj) verifyData
(InputStream is, boolean force) boolean
-
Field Details
-
RESTART_REQUIRED_NO
static final int RESTART_REQUIRED_NO- See Also:
-
RESTART_REQUIRED_YES
static final int RESTART_REQUIRED_YES- See Also:
-
RESTART_REQUIRED_MAYBE
static final int RESTART_REQUIRED_MAYBE- See Also:
-
-
Method Details
-
getName
String getName() -
getDescription
String[] getDescription() -
getRelativeURLBase
String getRelativeURLBase() -
setRelativeURLBase
-
setDescriptionURL
- Parameters:
url
- URL to load instead of showing the description text)- Since:
- 3.0.1.7
-
getDesciptionURL
String getDesciptionURL()- Returns:
- null if no description url
- Since:
- 3.0.1.7
-
getOldVersion
String getOldVersion() -
getNewVersion
String getNewVersion() -
getDownloaders
ResourceDownloader[] getDownloaders() -
isMandatory
boolean isMandatory() -
setRestartRequired
void setRestartRequired(int restart_required) -
getRestartRequired
int getRestartRequired() -
setUserObject
-
getUserObject
Object getUserObject() -
complete
void complete(boolean success) mark the update as complete and inform any listeners -
cancel
void cancel()cancel this update -
isCancelled
boolean isCancelled() -
isComplete
boolean isComplete() -
wasSuccessful
boolean wasSuccessful() -
getCheckInstance
UpdateCheckInstance getCheckInstance() -
getDecision
-
verifyData
- Throws:
UpdateException
-
addListener
-
removeListener
-