C# Class RIM.VSNDK_Package.UpdateManager.Model.UpdateManagerData

Data Model for the Update Manager Dialog
Inheritance: INotifyPropertyChanged
Datei anzeigen Open project: blackberry/VSPlugin Class Usage Examples

Public Properties

Property Type Description
bbndkPathConst string
installProcessID List
installed bool
isConfiguring bool

Public Methods

Method Description
FilterSubList ( string apiLevel ) : void

Function to filter the sublist of simulators

GetAPILevel ( string version ) : string

Given a runtime version get the associated API Level version.

GetDefaultLevel ( ) : string

Given a runtime version get the associated API Level version.

InstallAPI ( string version, bool isRuntime, bool isSimulator ) : bool

Install Specified API

IsRuntimeInstalled ( string version ) : bool

Check to see if Runtime is installed

RefreshScreen ( ) : void

Refresh all the lists

RefreshSimulatorScreen ( ) : void

Refresh all the lists

SetRuntime ( string version ) : void

Given the version set the selected API version

SetSelectedAPI ( string version ) : void

Given the version set the selected API version

UninstallAPI ( string version, bool isSimulator ) : bool

Uninstall Specified API

UpdateAPI ( string oldversion, string newversion ) : bool

Update API Level from Server

UpdateManagerData ( ) : System

Constructor

UpdateManagerData ( string outputPath ) : System

Constructor

cancelInstallation ( ) : void

Cancel the API installation.

getCurrentAPIVersion ( ) : string

Return the Current API Version from the registry

getDeviceInfo ( ) : bool

Get the device Info of the connected device

getDeviceSimInfo ( bool isSim ) : void

Function to retrieve device info from the registry

validateDeviceVersion ( bool isSim ) : bool

Validate to make sure device matches the API Level chosen.

waitTerminateInstallation ( ) : void

Wait till the API installation ends. This method is called only when the installation process has finished downloading all the needed files and it is just finishing the configuration. This process is supposed to take less than one minute.

Protected Methods

Method Description
OnPropertyChanged ( string propName ) : void

Fire the PropertyChnaged event handler on change of property

Private Methods

Method Description
DeviceInfoDataReceived ( object sender, System e ) : void

On Data Received event handler

InstallDataReceived ( object sender, System e ) : void

On Data Received event handler

IsAPIInstalled ( string version, string name ) : int

Check to see if API is installed

IsAPIInstalled ( string version, string name, bool allowSubstringVersion ) : int

Check to see if API is installed

compareVersions ( string str1, string str2 ) : int
getBuildVersion ( ) : string
getInstalledRuntimeTargetList ( ) : bool

Retrieve a list of the installed runtimes on the PC.

p_ErrorDataReceived ( object sender, System e ) : void

On Error received event handler

p_Exited ( object sender, System e ) : void

Event that handles the return of a process.

p_OutputDataReceived ( object sender, System e ) : void

Method Details

FilterSubList() public method

Function to filter the sublist of simulators
public FilterSubList ( string apiLevel ) : void
apiLevel string
return void

GetAPILevel() public method

Given a runtime version get the associated API Level version.
public GetAPILevel ( string version ) : string
version string
return string

GetDefaultLevel() public method

Given a runtime version get the associated API Level version.
public GetDefaultLevel ( ) : string
return string

InstallAPI() public method

Install Specified API
public InstallAPI ( string version, bool isRuntime, bool isSimulator ) : bool
version string version of API to install
isRuntime bool
isSimulator bool
return bool

IsRuntimeInstalled() public method

Check to see if Runtime is installed
public IsRuntimeInstalled ( string version ) : bool
version string Check version number
return bool

OnPropertyChanged() protected method

Fire the PropertyChnaged event handler on change of property
protected OnPropertyChanged ( string propName ) : void
propName string
return void

RefreshScreen() public method

Refresh all the lists
public RefreshScreen ( ) : void
return void

RefreshSimulatorScreen() public method

Refresh all the lists
public RefreshSimulatorScreen ( ) : void
return void

SetRuntime() public method

Given the version set the selected API version
public SetRuntime ( string version ) : void
version string
return void

SetSelectedAPI() public method

Given the version set the selected API version
public SetSelectedAPI ( string version ) : void
version string
return void

UninstallAPI() public method

Uninstall Specified API
public UninstallAPI ( string version, bool isSimulator ) : bool
version string version of API to uninstall
isSimulator bool
return bool

UpdateAPI() public method

Update API Level from Server
public UpdateAPI ( string oldversion, string newversion ) : bool
oldversion string
newversion string
return bool

UpdateManagerData() public method

Constructor
public UpdateManagerData ( ) : System
return System

UpdateManagerData() public method

Constructor
public UpdateManagerData ( string outputPath ) : System
outputPath string
return System

cancelInstallation() public method

Cancel the API installation.
public cancelInstallation ( ) : void
return void

getCurrentAPIVersion() public method

Return the Current API Version from the registry
public getCurrentAPIVersion ( ) : string
return string

getDeviceInfo() public method

Get the device Info of the connected device
public getDeviceInfo ( ) : bool
return bool

getDeviceSimInfo() public method

Function to retrieve device info from the registry
public getDeviceSimInfo ( bool isSim ) : void
isSim bool
return void

validateDeviceVersion() public method

Validate to make sure device matches the API Level chosen.
public validateDeviceVersion ( bool isSim ) : bool
isSim bool
return bool

waitTerminateInstallation() public method

Wait till the API installation ends. This method is called only when the installation process has finished downloading all the needed files and it is just finishing the configuration. This process is supposed to take less than one minute.
public waitTerminateInstallation ( ) : void
return void

Property Details

bbndkPathConst public_oe property

public string bbndkPathConst
return string

installProcessID public_oe property

public List installProcessID
return List

installed public_oe property

public bool installed
return bool

isConfiguring public_oe property

public bool isConfiguring
return bool