Table of Contents

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 IIntegrationManager

The integration manager used to apply selected integration options.

appEntry AppEntry

The application being integrated.

feed Feed

The feed providing additional metadata, icons, etc. for the application.

Fields

Aliases

public readonly BindingList<AppAlias> Aliases

Field Value

BindingList<AppAlias>

AutoPlay

public readonly BindingList<AutoPlayModel> AutoPlay

Field Value

BindingList<AutoPlayModel>

AutoStarts

public readonly BindingList<AutoStart> AutoStarts

Field Value

BindingList<AutoStart>

ContextMenu

public readonly BindingList<ContextMenuModel> ContextMenu

Field Value

BindingList<ContextMenuModel>

DefaultProgram

public readonly BindingList<DefaultProgramModel> DefaultProgram

Field Value

BindingList<DefaultProgramModel>

DesktopIcons

public readonly BindingList<DesktopIcon> DesktopIcons

Field Value

BindingList<DesktopIcon>

FileTypes

public readonly BindingList<FileTypeModel> FileTypes

Field Value

BindingList<FileTypeModel>

MenuEntries

public readonly BindingList<MenuEntry> MenuEntries

Field Value

BindingList<MenuEntry>

SendTo

public readonly BindingList<SendTo> SendTo

Field Value

BindingList<SendTo>

UrlProtocols

public readonly BindingList<UrlProtocolModel> UrlProtocols

Field Value

BindingList<UrlProtocolModel>

Properties

AppEntry

The application being integrated.

public AppEntry AppEntry { get; }

Property Value

AppEntry

CapabilityRegistration

Controls whether CapabilityRegistration is used.

public bool CapabilityRegistration { get; set; }

Property Value

bool

Feed

The feed providing additional metadata, icons, etc. for the application.

public Feed Feed { get; }

Property Value

Feed

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.