C# Class ZeroInstall.DesktopIntegration.Unix.UrlProtocol

Contains control logic for applying Store.Model.Capabilities.UrlProtocol and AccessPoints.UrlProtocol on GNOME systems.
Mostrar archivo Open project: 0install/0install-win

Public Methods

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

Registers a URL protocol in the current system.

Unregister ( Store urlProtocol, bool machineWide, bool accessPoint = false ) : void

Unregisters a URL protocol in the current system.

Method Details

Register() public static method

Registers a URL protocol in the current system.
The user canceled the task. A problem occurs while writing to the filesystem. A problem occured while downloading additional data (such as icons). Write access to the filesystem is not permitted. The data in is invalid.
public static Register ( FeedTarget target, [ urlProtocol, bool machineWide, [ handler, bool accessPoint = false ) : void
target ZeroInstall.Store.FeedTarget The application being integrated.
urlProtocol [ The URL protocol to register.
machineWide bool Register the URL protocol 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 handler shall become the default handler for the protocol.
return void

Unregister() public static method

Unregisters a URL protocol in the current system.
A problem occurs while writing to the filesystem. Write access to the filesystem is not permitted. The data in is invalid.
public static Unregister ( Store urlProtocol, bool machineWide, bool accessPoint = false ) : void
urlProtocol Store The URL protocol to remove.
machineWide bool Unregister the URL protocol machine-wide instead of just for the current user.
accessPoint bool Indicates that the handler was the default handler for the protocol.
return void