diff options
Diffstat (limited to 'src/opensearch/opensearchengine.h')
-rw-r--r-- | src/opensearch/opensearchengine.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/opensearch/opensearchengine.h b/src/opensearch/opensearchengine.h index f2329624..d755fc95 100644 --- a/src/opensearch/opensearchengine.h +++ b/src/opensearch/opensearchengine.h @@ -33,6 +33,7 @@ // Rekonq Includes #include "rekonq_defines.h" +#include "suggestionparser.h" // KDE Includes #include <KUrl> @@ -41,11 +42,10 @@ #include <QtCore/QPair> #include <QtGui/QImage> + // Forward Declarations class QNetworkAccessManager; class QNetworkReply; -class QScriptEngine; - class OpenSearchEngine { @@ -77,6 +77,8 @@ public: QList<Parameter> suggestionsParameters() const; void setSuggestionsParameters(const QList<Parameter> &suggestionsParameters); + void setSuggestionParser(SuggestionParser *parser); + QString imageUrl() const; void setImageUrl(const QString &url); @@ -88,7 +90,7 @@ public: bool operator==(const OpenSearchEngine &other) const; bool operator<(const OpenSearchEngine &other) const; - QStringList parseSuggestion(const QByteArray &response); + ResponseList parseSuggestion(const QByteArray &response); static QString parseTemplate(const QString &searchTerm, const QString &searchTemplate); @@ -104,7 +106,7 @@ private: QList<Parameter> m_searchParameters; QList<Parameter> m_suggestionsParameters; - QScriptEngine *m_scriptEngine; + SuggestionParser *m_parser; }; #endif // OPENSEARCHENGINE_H |