Class IntegrationState
- Namespace
- ZeroInstall.DesktopIntegration.ViewModel
- Assembly
- ZeroInstall.DesktopIntegration.dll
A View-Model for modifying desktop integration. Provides data-binding lists and applies modifications in bulk.
public class IntegrationState
- Inheritance
-
IntegrationState
- Inherited Members
Constructors
IntegrationState(IIntegrationManager, AppEntry, Feed)
Creates a new integration state View-Model.
public IntegrationState(IIntegrationManager integrationManager, AppEntry appEntry, Feed feed)
Parameters
integrationManager
IIntegrationManagerThe integration manager used to apply selected integration options.
appEntry
AppEntryThe application being integrated.
feed
FeedThe feed providing additional metadata, icons, etc. for the application.
Fields
Aliases
public readonly BindingList<AppAlias> Aliases
Field Value
AutoPlay
public readonly BindingList<AutoPlayModel> AutoPlay
Field Value
AutoStarts
public readonly BindingList<AutoStart> AutoStarts
Field Value
ContextMenu
public readonly BindingList<ContextMenuModel> ContextMenu
Field Value
DefaultProgram
public readonly BindingList<DefaultProgramModel> DefaultProgram
Field Value
DesktopIcons
public readonly BindingList<DesktopIcon> DesktopIcons
Field Value
FileTypes
public readonly BindingList<FileTypeModel> FileTypes
Field Value
MenuEntries
public readonly BindingList<MenuEntry> MenuEntries
Field Value
SendTo
public readonly BindingList<SendTo> SendTo
Field Value
UrlProtocols
public readonly BindingList<UrlProtocolModel> UrlProtocols
Field Value
Properties
AppEntry
The application being integrated.
public AppEntry AppEntry { get; }
Property Value
CapabilityRegistration
Controls whether CapabilityRegistration is used.
public bool CapabilityRegistration { get; set; }
Property Value
Feed
The feed providing additional metadata, icons, etc. for the application.
public Feed Feed { get; }
Property Value
Methods
ApplyChanges()
Applies any changes made to the View-Model to the underlying system.
public void ApplyChanges()
Exceptions
- OperationCanceledException
The user canceled the task.
- ConflictException
One or more of the new AccessPoints would cause a conflict with the existing AccessPoints in AppList.
- WebException
A problem occurred while downloading additional data (such as icons).
- IOException
A problem occurred while writing to the filesystem or registry.
- UnauthorizedAccessException
Write access to the filesystem or registry is not permitted.