C# Class ZeroInstall.Services.Feeds.CatalogManager

Provides access to remote and local Catalogs. Handles downloading, signature verification and caching.
Inheritance: ICatalogManager
Show file Open project: 0install/0install-win Class Usage Examples

Public Properties

Property Type Description
DefaultSource FeedUri

Public Methods

Method Description
AddSource ( FeedUri uri ) : bool
CatalogManager ( [ trustManager, [ handler ) : System

Creates a new catalog manager.

DownloadCatalog ( FeedUri source ) : Catalog
RemoveSource ( FeedUri uri ) : bool
SetSources ( [ uris ) : void

Sets the list of catalog sources in a configuration file.

Private Methods

Method Description
GetCached ( ) : Catalog
GetOnline ( ) : Catalog
GetSources ( ) : FeedUri[]
SaveCache ( [ catalog ) : void

Saves a merged Catalog to the cache file for later retrieval by GetCached.

Method Details

AddSource() public method

public AddSource ( FeedUri uri ) : bool
uri FeedUri
return bool

CatalogManager() public method

Creates a new catalog manager.
public CatalogManager ( [ trustManager, [ handler ) : System
trustManager [ Methods for verifying signatures and user trust.
handler [ A callback object used when the the user needs to be informed about progress.
return System

DownloadCatalog() public method

public DownloadCatalog ( FeedUri source ) : Catalog
source FeedUri
return Catalog

RemoveSource() public method

public RemoveSource ( FeedUri uri ) : bool
uri FeedUri
return bool

SetSources() public static method

Sets the list of catalog sources in a configuration file.
There was a problem writing a configuration file. Access to a configuration file was not permitted.
public static SetSources ( [ uris ) : void
uris [ The list of catalog sources to use from now on.
return void

Property Details

DefaultSource public static property

The default Catalog source used if no other is specified.
public static FeedUri DefaultSource
return FeedUri