|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectesmska.update.UpdateChecker
public class UpdateChecker
Checks for newer program or gateway version on program's website
First of all you must run the checkForUpdates() method, only after it
has finished the other methods will give you correct answer about updates
availability.
| Field Summary | |
|---|---|
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 |
| Constructor Summary | |
|---|---|
UpdateChecker()
|
|
| Method Summary | |
|---|---|
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()
Get info about gateway updates |
java.lang.String |
getLatestProgramVersion()
Get latest program version available online |
boolean |
isGatewayUpdateAvailable()
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 |
refreshUpdatedGateways()
Go through all downloaded update information and only leave those gateways which are new or updated compared to current ones. |
void |
removeActionListener(java.awt.event.ActionListener actionListener)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public UpdateChecker()
| Method Detail |
|---|
public void addActionListener(java.awt.event.ActionListener actionListener)
public void removeActionListener(java.awt.event.ActionListener actionListener)
public void checkForUpdates()
public void refreshUpdatedGateways()
public boolean isRunning()
public boolean isProgramUpdateAvailable()
public java.lang.String getLatestProgramVersion()
public boolean isGatewayUpdateAvailable()
public java.util.Set<GatewayUpdateInfo> getGatewayUpdates()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||