nsIInternetSearchService

IID:6bd1d803-1c67-11d3-9820-ed1b357eb3c4
Inherits From:nsISupports

This interface is intended to be used as a service. To create an object implementing this interface:

var obj = Components.classes["@mozilla.org/browser/internetsearch-service;1"].
            getService(Components.interfaces.nsIInternetSearchService);

Constants

PRUint16 kHaveNext = 1
PRUint16 kHavePrev = 2

Methods

void AddSearchEngine ( char* engineURL , char* iconURL , PRUnichar* suggestedTitle , PRUnichar* suggestedCategory ) void ClearResults ( PRBool flushLastSearchRef ) void ClearResultSearchSites ( ) PRBool FindInternetSearchResults ( char* url ) nsIRDFDataSource GetCategoryDataSource ( ) char* GetInternetSearchURL ( char* searchEngineURI , PRUnichar* searchStr , PRInt16 direction , PRUint16 pageNumber , out PRUint16 whichButtons ) void RememberLastSearchText ( PRUnichar* escapedSearchStr ) void Stop ( )

void AddSearchEngine ( char* engineURL , char* iconURL , PRUnichar* suggestedTitle , PRUnichar* suggestedCategory )

Arguments:
engineURL
iconURL
suggestedTitle
suggestedCategory

void ClearResults ( PRBool flushLastSearchRef )

Arguments:
flushLastSearchRef

void ClearResultSearchSites ( )


PRBool FindInternetSearchResults ( char* url )

Arguments:
url

nsIRDFDataSource GetCategoryDataSource ( )


char* GetInternetSearchURL ( char* searchEngineURI , PRUnichar* searchStr , PRInt16 direction , PRUint16 pageNumber , out PRUint16 whichButtons )

Arguments:
searchEngineURI
searchStr
direction
pageNumber
whichButtons

void RememberLastSearchText ( PRUnichar* escapedSearchStr )

Arguments:
escapedSearchStr

void Stop ( )

Reference documentation is generated from Mozilla's source.

Add a note User Contributed Notes
No comments available

Copyright © 1999 - 2005 XULPlanet.com