Package com.biglybt.ui.swt.updater2
Class SWTVersionGetter
- java.lang.Object
-
- com.biglybt.ui.swt.updater2.SWTVersionGetter
-
public class SWTVersionGetter extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private UpdateChecker
checker
private int
currentRevision
private int
currentVersion
private java.lang.String
infoURL
private int
latestRevision
private int
latestVersion
private static LogIDs
LOGID
private java.lang.String[]
mirrors
private java.lang.String
platform
-
Constructor Summary
Constructors Constructor Description SWTVersionGetter(UpdateChecker _checker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
downloadLatestVersion()
int
getCurrentRevision()
int
getCurrentVersion()
java.lang.String
getCurrentVersionAndRevision()
java.lang.String
getInfoURL()
java.lang.String
getLatestVersionAndRevision()
java.lang.String[]
getMirrors()
java.lang.String
getPlatform()
boolean
needsUpdate()
-
-
-
Field Detail
-
LOGID
private static final LogIDs LOGID
-
platform
private java.lang.String platform
-
currentVersion
private int currentVersion
-
currentRevision
private int currentRevision
-
latestVersion
private int latestVersion
-
latestRevision
private int latestRevision
-
checker
private UpdateChecker checker
-
mirrors
private java.lang.String[] mirrors
-
infoURL
private java.lang.String infoURL
-
-
Constructor Detail
-
SWTVersionGetter
public SWTVersionGetter(UpdateChecker _checker)
-
-
Method Detail
-
needsUpdate
public boolean needsUpdate()
-
downloadLatestVersion
private void downloadLatestVersion()
-
getLatestVersionAndRevision
public java.lang.String getLatestVersionAndRevision()
-
getCurrentVersion
public int getCurrentVersion()
-
getCurrentRevision
public int getCurrentRevision()
-
getCurrentVersionAndRevision
public java.lang.String getCurrentVersionAndRevision()
-
getPlatform
public java.lang.String getPlatform()
- Returns:
- Returns the platform.
-
getMirrors
public java.lang.String[] getMirrors()
- Returns:
- Returns the mirrors.
-
getInfoURL
public java.lang.String getInfoURL()
-
-