BBOS/src/bing/blackberry/unifiedsearch/UnifiedSearch.java
/**
	 * Register a search provider that will be used to do a search. No management of already registered search providers is done except checking 
	 * if it's already registered. If the Search Provider's name or icon have changed and it states that it has been updated then it can be 
	 * reregistered with the new name and icon.
	 * @param options The search provider to register and that will be used for searching.
	 * @return <code>true</code> if the search provider was registered successfully, <code>false</code> if otherwise.
	 */
Register a search provider that will be used to do a search. No management of already registered search providers is done except checking
if it's already registered. If the Search Provider's name or icon have changed and it states that it has been updated then it can be
reregistered with the new name and icon.
@param options The search provider to register and that will be used for searching.
@return true if the search provider was registered successfully, false if otherwise.
Register a search provider that will be used to do a search . No management of already registered search providers is done except checking if it ' s already registered . If the Search Provider ' s name or icon have changed and it states that it has been updated then it can be reregistered with the new name and icon . @param options The search provider to register and that will be used for searching . @return true if the search provider was registered successfully false if otherwise .
public static boolean registerSearchProvider(SearchProviderOptions options)
	{
		if(unifiedSearchVersion > 0 && options != null)
		{
			if(options.register != null)
			{
				if(options.callback.updated())
				{
					if(!SearchRegistry.getInstance().deregister(options.register))
					{
						return false; 
					}
				}
				else
				{
					return true;
				}
			}
			options.register = SearchRegistry.getInstance().register(options.new ExternalSearch());
			return options.register.isValid();
		}
		return false;
	}
public static boolean registerSearchProvider ( SearchProviderOptions options ) { if ( unifiedSearchVersion > 0 && options != null ) { if ( options . register != null ) { if ( options . callback . updated ( ) ) { if ( ! SearchRegistry . getInstance ( ) . deregister ( options . register ) ) { return false ; } } else { return true ; } } options . register = SearchRegistry . getInstance ( ) . register ( options . new ExternalSearch ( ) ) ; return options . register . isValid ( ) ; } return false ; }
Register a search provider that will be used to do a search.
Register a search provider that will be used to do a search .
//#ifndef BlackBerrySDK4.5.0 | BlackBerrySDK4.6.0 | BlackBerrySDK4.6.1 | BlackBerrySDK4.7.0 | BlackBerrySDK5.0.0 | NO_SIGNING
 //Icon or name have been updated, need to reregister
 //Something went wrong
 //#endif
