C# Class ZeroInstall.Commands.CliCommands.IntegrationCommand

Common base class for commands that manage DesktopIntegration.
Inheritance: CliCommand
显示文件 Open project: 0install/0install-win

Protected Properties

Property Type Description
NoDownload bool

Public Methods

Method Description
Parse ( IEnumerable args ) : void

Protected Methods

Method Description
CheckInstallBase ( ) : void

Checks the current Locations.InstallBase to determine whether it is suitable for operations that persist it.

This should be called before performing any operations that persist Locations.InstallBase somewhere, e.g. in generated shortcuts or stubs. It is not required for operations that only remove things from the system.

GetAppEntry ( [ integrationManager, [ interfaceUri ) : AppEntry

Finds an existing AppEntry or creates a new one for a specific interface URI.

IntegrationCommand ( [ handler ) : System

Private Methods

Method Description
BackgroundDownload ( [ interfaceUri ) : void

Pre-download application in a background proccess for later use.

CreateAppEntry ( [ integrationManager, [ interfaceUri ) : AppEntry
DetectReplacement ( FeedTarget &target ) : void

Detects and handles Feed.ReplacedBy.

Method Details

CheckInstallBase() protected method

Checks the current Locations.InstallBase to determine whether it is suitable for operations that persist it.
This should be called before performing any operations that persist Locations.InstallBase somewhere, e.g. in generated shortcuts or stubs. It is not required for operations that only remove things from the system.
The current Zero Install instance is installed in a location unsuitable for the desired operation.
protected CheckInstallBase ( ) : void
return void

GetAppEntry() protected method

Finds an existing AppEntry or creates a new one for a specific interface URI.
protected GetAppEntry ( [ integrationManager, [ interfaceUri ) : AppEntry
integrationManager [ Manages desktop integration operations.
interfaceUri [ The interface URI to create an for. Will be updated if is set and accepted by the user.
return AppEntry

IntegrationCommand() protected method

protected IntegrationCommand ( [ handler ) : System
handler [
return System

Parse() public method

public Parse ( IEnumerable args ) : void
args IEnumerable
return void

Property Details

NoDownload protected_oe property

Do not download the application itself yet.
protected bool NoDownload
return bool