Table of Contents

Class Exporter

Namespace
ZeroInstall.Commands.Basic.Exporters
Assembly
0install.dll

Exports feeds and implementations listed in a Selections document.

public class Exporter
Inheritance
Exporter
Inherited Members

Constructors

Exporter(Selections, Architecture, string)

Creates a new exporter.

public Exporter(Selections selections, Architecture architecture, string destination)

Parameters

selections Selections

A list of ImplementationSelections to check for referenced feeds.

architecture Architecture

The Architecture the Selections were generated for.

destination string

The path of the directory to export to.

Exceptions

IOException

The directory destination could not be created.

UnauthorizedAccessException

Creating the directory destination is not permitted.

Methods

DeployBootstrapIntegrate(ITaskHandler)

Deploys a bootstrap file for importing exported feeds and implementations.

public void DeployBootstrapIntegrate(ITaskHandler handler)

Parameters

handler ITaskHandler

A callback object used when the the user needs to be asked questions or informed about download and IO tasks.

DeployBootstrapRun(ITaskHandler)

Deploys a bootstrap file for importing exported feeds and implementations.

public void DeployBootstrapRun(ITaskHandler handler)

Parameters

handler ITaskHandler

A callback object used when the the user needs to be asked questions or informed about download and IO tasks.

Exceptions

OperationCanceledException

The user canceled the task.

IOException

A problem occurred while writing the bootstrapper.

UnauthorizedAccessException

Write access to the bootstrapper is not permitted.

WebException

A problem occurred while downloading the bootstrapper.

DeployImportScript()

Deploys a bootstrap file for importing exported feeds and implementations.

public void DeployImportScript()

Exceptions

IOException

A problem occurred while writing the script.

UnauthorizedAccessException

Write access to the script is not permitted.

ExportFeeds(IFeedCache, IOpenPgp)

Exports all feeds listed in a Selections document along with any OpenPGP public key files required for validation.

public void ExportFeeds(IFeedCache feedCache, IOpenPgp openPgp)

Parameters

feedCache IFeedCache

Used to get local feed files.

openPgp IOpenPgp

Used to get export keys feeds were signed with.

Exceptions

IOException

A feed or GnuPG could not be read from the cache.

UnauthorizedAccessException

Read or access to a file is not permitted.

ExportIcons(IEnumerable<Icon>, IIconStore)

Exports all specified icons.

public void ExportIcons(IEnumerable<Icon> icons, IIconStore iconStore)

Parameters

icons IEnumerable<Icon>

The icons to export.

iconStore IIconStore

The icon store to export the icons from.

Exceptions

OperationCanceledException

The user canceled the task.

IOException

A problem occurred while reading or writing a file.

UnauthorizedAccessException

Read or access to a file is not permitted.

WebException

A problem occurred while downloading icons.

ExportImplementations(IImplementationStore, ITaskHandler)

Exports all implementations listed in a Selections document as archives.

public void ExportImplementations(IImplementationStore implementationStore, ITaskHandler handler)

Parameters

implementationStore IImplementationStore

Used to get cached implementations.

handler ITaskHandler

A callback object used when the the user needs to be asked questions or informed about download and IO tasks.

Exceptions

OperationCanceledException

The user canceled the task.

IOException

An implementation archive could not be created.

UnauthorizedAccessException

Read or access to a file is not permitted.