C# Класс ZeroInstall.DesktopIntegration.Unix.DefaultProgram

Contains control logic for applying Store.Model.Capabilities.DefaultProgram and AccessPoints.DefaultProgram on GNOME or KDE systems.
Показать файл Открыть проект

Открытые методы

Метод Описание
Register ( FeedTarget target, [ defaultProgram, bool machineWide, [ handler, bool accessPoint = false ) : void

Registers an application as a candidate for a default program for some service in the current system.

Unregister ( [ defaultProgram, bool machineWide, 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.

Описание методов

Register() публичный статический Метод

Registers an application as a candidate for a default program for some service 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, [ defaultProgram, bool machineWide, [ handler, bool accessPoint = false ) : void
target ZeroInstall.Store.FeedTarget The application being integrated.
defaultProgram [ The default program information to be registered.
machineWide bool Apply the registration 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 program should be set as the current default for the service it provides.
Результат void

Unregister() публичный статический Метод

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. Write access to the filesystem is not permitted. The data in is invalid.
public static Unregister ( [ defaultProgram, bool machineWide, bool accessPoint = false ) : void
defaultProgram [ The default program information to be removed.
machineWide bool Apply the registration machine-wide instead of just for the current user.
accessPoint bool Indicates that the program was set as the current default for the service it provides.
Результат void