WARNING: Most of this content (with the exception of the Mozilla 1.9 XPCOM reference) is very old, and can be expected to be out of date and possibly obsolete. For better XUL documentation, please visit the XUL hub at the Mozilla Developer Center.

nsIAddonRepository

IID:c4d2ac29-6edc-43cd-8dc8-e4cf213aa1be
Inherits From:nsISupports

This interface is implemented by the following components:


Properties

readonly AString homepageURL

The homepage for visiting this repository. This may be null or an empty string.

readonly PRBool isSearching

Returns whether this instance is currently performing a search. New searches will not be performed while this is the case.


Methods

void cancelSearch ( ) AString getRecommendedURL ( ) AString getSearchURL ( AString searchTerms ) void retrieveRecommendedAddons ( PRUint32 maxResults , nsIAddonSearchResultsCallback callback ) void searchAddons ( AString searchTerms , PRUint32 maxResults , nsIAddonSearchResultsCallback callback )

void cancelSearch ( )

Cancels the search in progress. If there is no search in progress this does nothing.


AString getRecommendedURL ( )

The url that can be visited to see recommended add-ons in this repository.


AString getSearchURL ( AString searchTerms )

Retrieves the url that can be visited to see search results for the given terms.

Arguments:
searchTerms: search terms used to search the repository

void retrieveRecommendedAddons ( PRUint32 maxResults , nsIAddonSearchResultsCallback callback )

Begins a search for recommended add-ons in this repository. Results will be passed to the given callback.

Arguments:
maxResults: the maximum number of results to return
callback: the callback to pass results to

void searchAddons ( AString searchTerms , PRUint32 maxResults , nsIAddonSearchResultsCallback callback )

Begins a search for add-ons in this repository. Results will be passed to the given callback.

Arguments:
searchTerms: the terms to search for
maxResults: the maximum number of results to return
callback: the callback to pass results to

Reference documentation is generated from Mozilla's source.

Copyright © 1999-2006 XULPlanet.com