public class UpdateChecker
extends java.lang.Object
checkForUpdates()
method, only after it
has finished the other methods will give you correct answer about updates
availability.Modifier and Type | Field and Description |
---|---|
static int |
ACTION_CHECK_FAILED
could not check updates - network error?
|
static int |
ACTION_GATEWAY_UPDATE_AVAILABLE
new or updated gateway script is available
|
static int |
ACTION_NO_UPDATE_AVAILABLE
no updates found
|
static int |
ACTION_PROGRAM_AND_GATEWAY_UPDATE_AVAILABLE
new program version and gateway script is available
|
static int |
ACTION_PROGRAM_UPDATE_AVAILABLE
new program version is available
|
static int |
AUTO_CHECK_INTERVAL
The interval in seconds how often to check for updates automatically
|
Modifier and Type | Method and Description |
---|---|
void |
addActionListener(java.awt.event.ActionListener actionListener) |
void |
checkForUpdates()
Checks for updates asynchronously and notify all added listeners after being finished.
|
java.util.Set<GatewayUpdateInfo> |
getGatewayUpdates(boolean includeHidden)
Get info about gateway updates
|
static UpdateChecker |
getInstance()
Get program instance
|
java.lang.String |
getLatestProgramVersion()
Get latest program version available online
|
boolean |
isGatewayUpdateAvailable(boolean includeHidden)
Whether an gateway update is available
|
boolean |
isProgramUpdateAvailable()
Whether a new program update is available.
|
boolean |
isRunning()
Whether checking for updates is (still) running
|
void |
removeActionListener(java.awt.event.ActionListener actionListener) |
public static final int ACTION_PROGRAM_UPDATE_AVAILABLE
public static final int ACTION_GATEWAY_UPDATE_AVAILABLE
public static final int ACTION_PROGRAM_AND_GATEWAY_UPDATE_AVAILABLE
public static final int ACTION_NO_UPDATE_AVAILABLE
public static final int ACTION_CHECK_FAILED
public static final int AUTO_CHECK_INTERVAL
public void addActionListener(java.awt.event.ActionListener actionListener)
public void removeActionListener(java.awt.event.ActionListener actionListener)
public static UpdateChecker getInstance()
public void checkForUpdates()
public boolean isRunning()
public boolean isProgramUpdateAvailable()
public java.lang.String getLatestProgramVersion()
public boolean isGatewayUpdateAvailable(boolean includeHidden)
public java.util.Set<GatewayUpdateInfo> getGatewayUpdates(boolean includeHidden)