C# Class ZeroInstall.Commands.CliCommands.IntegrateApp

Add an application to the AppList (if missing) and integrate it into the desktop environment.
Inheritance: AppCommand
Show file Open project: 0install/0install-win

Public Methods

Method Description
IntegrateApp ( [ handler ) : System

Protected Methods

Method Description
ExecuteHelper ( ICategoryIntegrationManager integrationManager, FeedUri interfaceUri ) : ExitCode
GetAppEntry ( IIntegrationManager integrationManager, FeedUri &interfaceUri ) : AppEntry

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

Private Methods

Method Description
NoSpecifiedIntegrations ( ) : bool

Determines whether the user specified no integration changes. This means we need a GUI to ask what to do.

RemoveAndAdd ( ICategoryIntegrationManager integrationManager, Feed feed, AppEntry appEntry ) : void

Applies the _removeCategories and _addCategories specified by the user.

RemoveOnly ( ) : bool

Determines whether the user specified only removals. This means we do not need to fetch any feeds.

RemoveOnly ( ICategoryIntegrationManager integrationManager, FeedUri interfaceUri ) : void

Applies the _removeCategories specified by the user.

Method Details

ExecuteHelper() protected method

protected ExecuteHelper ( ICategoryIntegrationManager integrationManager, FeedUri interfaceUri ) : ExitCode
integrationManager ICategoryIntegrationManager
interfaceUri FeedUri
return ExitCode

GetAppEntry() protected method

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

IntegrateApp() public method

public IntegrateApp ( [ handler ) : System
handler [
return System