C# Class ZeroInstall.DesktopIntegration.Windows.DefaultProgram

Contains control logic for applying Store.Model.Capabilities.DefaultProgram and AccessPoints.DefaultProgram on Windows systems.
Afficher le fichier Open project: 0install/0install-win

Méthodes publiques

Méthode Description
Register ( FeedTarget target, [ defaultProgram, [ handler, bool accessPoint = false ) : void

Registers an application as a candidate for a default program for some service in the current system. This can only be applied machine-wide, not per user.

Unregister ( [ defaultProgram, bool accessPoint = false ) : void

Unregisters an application as a candidate for a default program in the current system. This can only be applied machine-wide, not per user.

Private Methods

Méthode Description
ToggleIconsVisible ( Store defaultProgram, bool iconsVisible ) : void

Toggles the registry entry indicating whether icons for the application are currently visible.

Method Details

Register() public static méthode

Registers an application as a candidate for a default program for some service in the current system. This can only be applied machine-wide, not per user.
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, [ defaultProgram, [ handler, bool accessPoint = false ) : void
target ZeroInstall.Store.FeedTarget The application being integrated.
defaultProgram [ The default program information to be registered.
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 program should be set as the current default for the service it provides.
Résultat void

Unregister() public static méthode

Unregisters an application as a candidate for a default program in the current system. This can only be applied machine-wide, not per user.
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 ( [ defaultProgram, bool accessPoint = false ) : void
defaultProgram [ The default program information to be removed.
accessPoint bool Indicates that the program was set as the current default for the service it provides.
Résultat void