Zero Install .NET API 2.20.0
ZeroInstall.DesktopIntegration.ViewModel.IntegrationState Class Reference

A View-Model for modifying desktop integration. Provides data-binding lists and applies modifications in bulk. More...

Public Member Functions

 IntegrationState (IIntegrationManager integrationManager, AppEntry appEntry, Feed feed)
 Creates a new integration state View-Model. More...
 
void ApplyChanges ()
 Applies any changes made to the View-Model to the underlying system. More...
 

Public Attributes

readonly BindingList< MenuEntryMenuEntries = new()
 
readonly BindingList< DesktopIconDesktopIcons = new()
 
readonly BindingList< SendToSendTo = new()
 
readonly BindingList< AppAliasAliases = new()
 
readonly BindingList< AutoStartAutoStarts = new()
 
readonly BindingList< FileTypeModelFileTypes = new()
 
readonly BindingList< UrlProtocolModelUrlProtocols = new()
 
readonly BindingList< AutoPlayModelAutoPlay = new()
 
readonly BindingList< ContextMenuModelContextMenu = new()
 
readonly BindingList< DefaultProgramModelDefaultProgram = new()
 

Properties

bool CapabilityRegistration [getset]
 Controls whether AccessPoints.CapabilityRegistration is used.
 
AppEntry AppEntry [get]
 The application being integrated.
 
Feed Feed [get]
 The feed providing additional metadata, icons, etc. for the application.
 

Detailed Description

A View-Model for modifying desktop integration. Provides data-binding lists and applies modifications in bulk.

Constructor & Destructor Documentation

◆ IntegrationState()

ZeroInstall.DesktopIntegration.ViewModel.IntegrationState.IntegrationState ( IIntegrationManager  integrationManager,
AppEntry  appEntry,
Feed  feed 
)
inline

Creates a new integration state View-Model.

Parameters
integrationManagerThe integration manager used to apply selected integration options.
appEntryThe application being integrated.
feedThe feed providing additional metadata, icons, etc. for the application.

Member Function Documentation

◆ ApplyChanges()

void ZeroInstall.DesktopIntegration.ViewModel.IntegrationState.ApplyChanges ( )
inline

Applies any changes made to the View-Model to the underlying system.

Exceptions
OperationCanceledExceptionThe user canceled the task.
ConflictExceptionOne or more of the new AccessPoints.AccessPoints would cause a conflict with the existing AccessPoints.AccessPoints in IIntegrationManager.AppList.
WebExceptionA problem occurred while downloading additional data (such as icons).
IOExceptionA problem occurred while writing to the filesystem or registry.
UnauthorizedAccessExceptionWrite access to the filesystem or registry is not permitted.

The documentation for this class was generated from the following files: