summaryrefslogtreecommitdiff
path: root/src/opensearch/suggestionparser.h
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-02-25 00:19:27 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-02-25 00:19:27 +0100
commit9d20e99fffeebe67fd8ff27cb4f9e353892f5190 (patch)
tree23462fac2e862a2f408a26f94ab024c4174c3458 /src/opensearch/suggestionparser.h
parentrekonq 0.6.82 (diff)
downloadrekonq-9d20e99fffeebe67fd8ff27cb4f9e353892f5190.tar.xz
Coding style
Diffstat (limited to 'src/opensearch/suggestionparser.h')
-rw-r--r--src/opensearch/suggestionparser.h46
1 files changed, 26 insertions, 20 deletions
diff --git a/src/opensearch/suggestionparser.h b/src/opensearch/suggestionparser.h
index 902793d0..f96061c7 100644
--- a/src/opensearch/suggestionparser.h
+++ b/src/opensearch/suggestionparser.h
@@ -1,5 +1,5 @@
/* ============================================================
- *
+ *
* This file is a part of the rekonq project
*
* Copyright (C) 2010-2011 by Lionel Chauvin <megabigbug@yahoo.fr>
@@ -50,20 +50,20 @@ public:
int image_height;
Response(const Response &item) : title(item.title),
- description(item.description),
- url(item.url),
- image(item.image),
- image_width(item.image_width),
- image_height(item.image_height)
+ description(item.description),
+ url(item.url),
+ image(item.image),
+ image_width(item.image_width),
+ image_height(item.image_height)
{};
Response() : title(QString()),
- description(QString()),
- url(QString()),
- image(QString()),
- image_width(0),
- image_height(0)
+ description(QString()),
+ url(QString()),
+ image(QString()),
+ image_width(0),
+ image_height(0)
{};
@@ -73,11 +73,11 @@ public:
const QString &_image = QString(),
const int &_image_width = 0,
const int &_image_height = 0) : title(_title),
- description(_description),
- url(_url),
- image(_image),
- image_width(_image_width),
- image_height(_image_height)
+ description(_description),
+ url(_url),
+ image(_image),
+ image_width(_image_width),
+ image_height(_image_height)
{};
};
@@ -98,13 +98,16 @@ public:
class XMLParser : public SuggestionParser
-{
+{
protected:
QXmlStreamReader m_reader;
public:
ResponseList parse(const QByteArray &resp);
- inline QString type() { return QL1S("application/x-suggestions+xml"); }
+ inline QString type()
+ {
+ return QL1S("application/x-suggestions+xml");
+ }
};
@@ -112,10 +115,13 @@ class JSONParser : public SuggestionParser
{
private:
QScriptEngine m_reader;
-
+
public:
ResponseList parse(const QByteArray &resp);
- inline QString type() { return QL1S("application/x-suggestions+json"); }
+ inline QString type()
+ {
+ return QL1S("application/x-suggestions+json");
+ }
};
#endif //SUGGESTIONPARSER_H