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 )
Cancels the search in progress. If there is no search in progress this does nothing.
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.
