summaryrefslogtreecommitdiff
path: root/src/opensearch/suggestionparser.h
diff options
context:
space:
mode:
authormegabigbug <megabigbug@yahoo.fr>2010-10-17 16:23:39 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-10-30 11:43:22 +0200
commitee71d4a5cef8544bff1c57cc7b81870982d55c93 (patch)
tree286f4d0701fa1af6c2c3fd2e71ae9120197cd39e /src/opensearch/suggestionparser.h
parentremove warnings (diff)
downloadrekonq-ee71d4a5cef8544bff1c57cc7b81870982d55c93.tar.xz
adapt opensearch reader and writer for xml suggestions
Diffstat (limited to 'src/opensearch/suggestionparser.h')
-rw-r--r--src/opensearch/suggestionparser.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/opensearch/suggestionparser.h b/src/opensearch/suggestionparser.h
index 59c788b1..3b72c5d3 100644
--- a/src/opensearch/suggestionparser.h
+++ b/src/opensearch/suggestionparser.h
@@ -88,6 +88,7 @@ class SuggestionParser
public:
virtual ~SuggestionParser();
virtual ResponseList parse(const QByteArray &resp);
+ virtual QString type(){ return ""; }
};
@@ -98,6 +99,7 @@ protected:
public:
ResponseList parse(const QByteArray &resp);
+ QString type(){ return "application/x-suggestions+xml"; }
};
class JSONParser : public SuggestionParser
@@ -107,6 +109,7 @@ private:
public:
ResponseList parse(const QByteArray &resp);
+ QString type(){ return "application/x-suggestions+json"; }
};
#endif //SUGGESTIONPARSER_H