com.vodafone360.people.engine.upgrade
Class UpgradeStatus

java.lang.Object
  extended by com.vodafone360.people.engine.upgrade.UpgradeStatus

public class UpgradeStatus
extends java.lang.Object

Represents a parsed remote upgrade status text file.


Field Summary
private static java.lang.String LATEST_VERSION
           
private  int mLatestVersion
           
private  java.lang.String mUpgradeText
           
private  java.lang.String mUpgradeUrl
           
private static java.util.Map<java.lang.String,java.lang.String> sMap
           
private static java.lang.String UPGRADE_TEXT
           
private static java.lang.String UPGRADE_URL
           
 
Constructor Summary
UpgradeStatus()
           
 
Method Summary
protected  void addSetting(java.lang.String input)
          Add a setting.
 int getLatestVersion()
          Get the latest version.
 java.lang.String getUpgradeText(Context context)
          Get the upgrade text.
 java.lang.String getUpgradeUrl()
          Gets the upgrade URL.
 void setLatestVersion(int latestVersion)
          Sets the latest version.
 void setUpgradeText(java.lang.String upgradeText)
          Set the upgrade text.
 void setUpgradeUrl(java.lang.String upgradeUrl)
          Sets the new upgrade URL.
 void setUpgradeVersion(Context context)
          Set the upgrade version.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LATEST_VERSION

private static final java.lang.String LATEST_VERSION
See Also:
Constant Field Values

UPGRADE_URL

private static final java.lang.String UPGRADE_URL
See Also:
Constant Field Values

UPGRADE_TEXT

private static final java.lang.String UPGRADE_TEXT
See Also:
Constant Field Values

mLatestVersion

private int mLatestVersion

mUpgradeUrl

private java.lang.String mUpgradeUrl

mUpgradeText

private java.lang.String mUpgradeText

sMap

private static java.util.Map<java.lang.String,java.lang.String> sMap
Constructor Detail

UpgradeStatus

public UpgradeStatus()
Method Detail

addSetting

protected void addSetting(java.lang.String input)
Add a setting.

Parameters:
input - Single line from the update descriptor file

getLatestVersion

public int getLatestVersion()
Get the latest version.

Returns:
the latest version

setLatestVersion

public void setLatestVersion(int latestVersion)
Sets the latest version.

Parameters:
latestVersion - - the latest version

getUpgradeUrl

public java.lang.String getUpgradeUrl()
Gets the upgrade URL.

Returns:
the upgrade URL

setUpgradeUrl

public void setUpgradeUrl(java.lang.String upgradeUrl)
Sets the new upgrade URL.

Parameters:
upgradeUrl - - the URL to use

getUpgradeText

public java.lang.String getUpgradeText(Context context)
Get the upgrade text.

Returns:
the updgrade text

setUpgradeText

public void setUpgradeText(java.lang.String upgradeText)
Set the upgrade text.

Parameters:
upgradeText - - the new text

setUpgradeVersion

public void setUpgradeVersion(Context context)
Set the upgrade version.

Parameters:
context - Android context.


JavaDoc