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

Data Model for the Update Manager Dialog
Inheritance: INotifyPropertyChanged
Afficher le fichier Open project: blackberry/VSPlugin Class Usage Examples

Méthodes publiques

Свойство Type Description
bbndkPathConst string
installProcessID List
installed bool
isConfiguring bool

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
OnPropertyChanged ( string propName ) : void

Fire the PropertyChnaged event handler on change of property

Private Methods

Méthode 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 méthode

Function to filter the sublist of simulators
public FilterSubList ( string apiLevel ) : void
apiLevel string
Résultat void

GetAPILevel() public méthode

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

GetDefaultLevel() public méthode

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

InstallAPI() public méthode

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

IsRuntimeInstalled() public méthode

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

OnPropertyChanged() protected méthode

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

RefreshScreen() public méthode

Refresh all the lists
public RefreshScreen ( ) : void
Résultat void

RefreshSimulatorScreen() public méthode

Refresh all the lists
public RefreshSimulatorScreen ( ) : void
Résultat void

SetRuntime() public méthode

Given the version set the selected API version
public SetRuntime ( string version ) : void
version string
Résultat void

SetSelectedAPI() public méthode

Given the version set the selected API version
public SetSelectedAPI ( string version ) : void
version string
Résultat void

UninstallAPI() public méthode

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

UpdateAPI() public méthode

Update API Level from Server
public UpdateAPI ( string oldversion, string newversion ) : bool
oldversion string
newversion string
Résultat bool

UpdateManagerData() public méthode

Constructor
public UpdateManagerData ( ) : System
Résultat System

UpdateManagerData() public méthode

Constructor
public UpdateManagerData ( string outputPath ) : System
outputPath string
Résultat System

cancelInstallation() public méthode

Cancel the API installation.
public cancelInstallation ( ) : void
Résultat void

getCurrentAPIVersion() public méthode

Return the Current API Version from the registry
public getCurrentAPIVersion ( ) : string
Résultat string

getDeviceInfo() public méthode

Get the device Info of the connected device
public getDeviceInfo ( ) : bool
Résultat bool

getDeviceSimInfo() public méthode

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

validateDeviceVersion() public méthode

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

waitTerminateInstallation() public méthode

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
Résultat void

Property Details

bbndkPathConst public_oe property

public string bbndkPathConst
Résultat string

installProcessID public_oe property

public List installProcessID
Résultat List

installed public_oe property

public bool installed
Résultat bool

isConfiguring public_oe property

public bool isConfiguring
Résultat bool