summaryrefslogtreecommitdiff
path: root/src/opensearch/suggestionparser.h
diff options
context:
space:
mode:
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