Module implementing the open search engine.
None |
OpenSearchEngine | Class implementing the open search engine. |
None |
Class implementing the open search engine.
None |
parseTemplate | Class method to parse a search template. |
OpenSearchEngine | Constructor |
__eq__ | Special method implementing the == operator. |
__imageObtained | Private slot to receive the image of the engine. |
__lt__ | Special method implementing the < operator. |
__suggestionsObtained | Private slot to receive the suggestions. |
description | Public method to get the description of the engine. |
image | Public method to get the image of the engine. |
imageUrl | Public method to get the image URL of the engine. |
isValid | Public method to check, if the engine is valid. |
loadImage | Public method to load the image of the engine. |
name | Public method to get the name of the engine. |
networkAccessManager | Public method to get a reference to the network access manager object. |
providesSuggestions | Public method to check, if the engine provides suggestions. |
requestSuggestions | Public method to request suggestions. |
searchMethod | Public method to get the HTTP request method used to perform search requests. |
searchParameters | Public method to get the search parameters of the engine. |
searchUrl | Public method to get a URL ready for searching. |
searchUrlTemplate | Public method to get the search URL template of the engine. |
setDescription | Public method to set the engine description. |
setImage | Public method to set the image of the engine. |
setImageUrl | Public method to set the engine image URL. |
setImageUrlAndLoad | Public method to set the engine image URL. |
setName | Public method to set the engine name. |
setNetworkAccessManager | Public method to set the reference to the network access manager. |
setSearchMethod | Public method to set the HTTP request method used to perform search requests. |
setSearchParameters | Public method to set the engine search parameters. |
setSearchUrlTemplate | Public method to set the engine search URL template. |
setSuggestionsMethod | Public method to set the HTTP request method used to perform suggestions requests. |
setSuggestionsParameters | Public method to set the engine suggestions parameters. |
setSuggestionsUrlTemplate | Public method to set the engine suggestions URL template. |
suggestionsMethod | Public method to get the HTTP request method used to perform suggestions requests. |
suggestionsParameters | Public method to get the suggestions parameters of the engine. |
suggestionsUrl | Public method to get a URL ready for suggestions. |
suggestionsUrlTemplate | Public method to get the search URL template of the engine. |
None |
Class method to parse a search template.
Constructor
Special method implementing the == operator.
Private slot to receive the image of the engine.
Special method implementing the < operator.
Private slot to receive the suggestions.
Public method to get the description of the engine.
Public method to get the image of the engine.
Public method to get the image URL of the engine.
Public method to check, if the engine is valid.
Public method to load the image of the engine.
Public method to get the name of the engine.
Public method to get a reference to the network access manager object.
Public method to check, if the engine provides suggestions.
Public method to request suggestions.
Public method to get the HTTP request method used to perform search requests.
Public method to get the search parameters of the engine.
Public method to get a URL ready for searching.
Public method to get the search URL template of the engine.
Public method to set the engine description.
Public method to set the image of the engine.
Public method to set the engine image URL.
Public method to set the engine image URL.
Public method to set the engine name.
Public method to set the reference to the network access manager.
Public method to set the HTTP request method used to perform search requests.
Public method to set the engine search parameters.
Public method to set the engine search URL template.
The URL template is processed according to the specification: http://www.opensearch.org/Specifications/OpenSearch/1.1#OpenSearch_URL_template_syntax
A list of template parameters currently supported and what they are replaced with:
Parameter | Value |
{count} | 20 |
{startIndex} | 0 |
{startPage} | 0 |
{language} | the default language code (RFC 3066) |
{country} | the default country code (first part of language) |
{inputEncoding} | UTF-8 |
{outputEncoding} | UTF-8 |
{searchTerms} | the string supplied by the user |
{*:source} | application name, QCoreApplication::applicationName() |
Public method to set the HTTP request method used to perform suggestions requests.
Public method to set the engine suggestions parameters.
Public method to set the engine suggestions URL template.
Public method to get the HTTP request method used to perform suggestions requests.
Public method to get the suggestions parameters of the engine.
Public method to get a URL ready for suggestions.
Public method to get the search URL template of the engine.