C# Class ZeroInstall.DesktopIntegration.Windows.FileType

Contains control logic for applying Store.Model.Capabilities.FileType and AccessPoints.FileType on Windows systems.
显示文件 Open project: 0install/0install-win

Public Methods

Method Description
Register ( FeedTarget target, [ fileType, bool machineWide, [ handler, bool accessPoint = false ) : void

Registers a file type in the current system.

Unregister ( [ fileType, bool machineWide, bool accessPoint = false ) : void

Unregisters a file type in the current system.

Private Methods

Method Description
GetLaunchCommandLine ( FeedTarget target, Store verb, bool machineWide, ITaskHandler handler ) : string

Generates a command-line string for launching a Store.Model.Capabilities.Verb.

RegisterVerbCapability ( RegistryKey registryKey, FeedTarget target, Store capability, bool machineWide, ITaskHandler handler ) : void

Registers a Store.Model.Capabilities.VerbCapability in a registry key.

Method Details

Register() public static method

Registers a file type in the current system.
The user canceled the task. A problem occurs while writing to the filesystem or registry. A problem occured while downloading additional data (such as icons). Write access to the filesystem or registry is not permitted. The data in is invalid.
public static Register ( FeedTarget target, [ fileType, bool machineWide, [ handler, bool accessPoint = false ) : void
target ZeroInstall.Store.FeedTarget The application being integrated.
fileType [ The file type to register.
machineWide bool Register the file type machine-wide instead of just for the current user.
handler [ A callback object used when the the user is to be informed about the progress of long-running operations such as downloads.
accessPoint bool Indicates that the file associations shall become default handlers for their respective types.
return void

Unregister() public static method

Unregisters a file type in the current system.
A problem occurs while writing to the filesystem or registry. Write access to the filesystem or registry is not permitted. The data in is invalid.
public static Unregister ( [ fileType, bool machineWide, bool accessPoint = false ) : void
fileType [ The file type to remove.
machineWide bool Unregister the file type machine-wide instead of just for the current user.
accessPoint bool Indicates that the file associations were default handlers for their respective types.
return void