Version 1.2 (June 2013)
 All Classes Namespaces Files Functions Variables Pages
Static Public Member Functions | List of all members
soft_update.Check_Release_Status Class Reference

Checks if a new release of iDynomics is available. More...

Static Public Member Functions

static String getLatestVersion () throws Exception
 Gets the content of url.html - the latest released version number. More...
 
static String getWhatsNew () throws Exception
 Returns the text detailing what is new about this version, for display in the user info screen. More...
 
static void main (String[] args)
 Test stub for testing the methods that get the version number and new release details. More...
 

Detailed Description

Checks if a new release of iDynomics is available.

This class contains methods that check whether there is a new version of iDynomics available. This is done by checking the content of a file, version.html, that resides in the iDynomics repository. If there is an update available, a further file is downloaded, history.html, that contains a detailed description of the changes made in the update.

Author
Thomas Otero - Created the original code and made this available online. This has been modified from his code.
Kieran Alden - amended for our use

Member Function Documentation

static String soft_update.Check_Release_Status.getLatestVersion ( ) throws Exception
static

Gets the content of url.html - the latest released version number.

Returns the latest release version number by retrieving the content of the url.html file specified by the versionURL parameter. This is used to determine if an update is required

Returns
A text string containing the content of url.html
Exceptions
ExceptionException generated if this web address cannot be found
static String soft_update.Check_Release_Status.getWhatsNew ( ) throws Exception
static

Returns the text detailing what is new about this version, for display in the user info screen.

This method returns the content of the file history.html, specified by the parameter versionChanges. This is then displayed to the user when they are asked whether they wish to perform an update or not

Returns
A text string containing the content of history.html
Exceptions
ExceptionException generated if this web address cannot be found
static void soft_update.Check_Release_Status.main ( String[]  args)
static

Test stub for testing the methods that get the version number and new release details.

Test stub for testing the methods that get the version number and new release details

Parameters
argsArguments passed to the test stub - none required in this case

The documentation for this class was generated from the following file: