diff options
author | megabigbug <megabigbug@yahoo.fr> | 2010-10-04 08:32:21 +0200 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-10-30 11:38:06 +0200 |
commit | 72af78494652e97cf2caaf05a4ac1613359400f6 (patch) | |
tree | a3968f159fd075a10c20ad2165ecef66b14b9eef /src/opensearch/opensearchengine.h | |
parent | Added CtestConfig.cmake (diff) | |
download | rekonq-72af78494652e97cf2caaf05a4ac1613359400f6.tar.xz |
add an xml parser to the opensearch engine.
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 |