diff options
| author | Brian Munro <brian.alexander.munro@gmail.com> | 2018-02-23 06:38:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-02-23 06:38:12 +0200 |
| commit | 0a4fa10ca402c636b40124e0d1115c7b92a3d66d (patch) | |
| tree | 312024abbd7c3c100274f3a8031d49096480b654 /src/json.h | |
| parent | 28714f0eb800f2170acbf29dddce1582d20d6b8b (diff) | |
| parent | ea6292168a6acd4c263913f0ccd7dd64daf4f5cf (diff) | |
Merge pull request #237 from SuperSandro2000/new_vfs_library
Revert "Applied clang-format on source"
Diffstat (limited to 'src/json.h')
| -rw-r--r-- | src/json.h | 105 |
1 files changed, 53 insertions, 52 deletions
@@ -23,8 +23,9 @@ #ifndef JSON_H
#define JSON_H
-#include <QString>
#include <QVariant>
+#include <QString>
+
/**
* \namespace QtJson
@@ -33,61 +34,61 @@ * Json parses a JSON data into a QVariant hierarchy.
*/
namespace QtJson {
-typedef QVariantMap JsonObject;
-typedef QVariantList JsonArray;
+ typedef QVariantMap JsonObject;
+ typedef QVariantList JsonArray;
-/**
- * Parse a JSON string
- *
- * \param json The JSON data
- */
-QVariant parse(const QString& json);
+ /**
+ * Parse a JSON string
+ *
+ * \param json The JSON data
+ */
+ QVariant parse(const QString &json);
-/**
- * Parse a JSON string
- *
- * \param json The JSON data
- * \param success The success of the parsing
- */
-QVariant parse(const QString& json, bool& success);
+ /**
+ * Parse a JSON string
+ *
+ * \param json The JSON data
+ * \param success The success of the parsing
+ */
+ QVariant parse(const QString &json, bool &success);
-/**
- * This method generates a textual JSON representation
- *
- * \param data The JSON data generated by the parser.
- *
- * \return QByteArray Textual JSON representation in UTF-8
- */
-QByteArray serialize(const QVariant& data);
+ /**
+ * This method generates a textual JSON representation
+ *
+ * \param data The JSON data generated by the parser.
+ *
+ * \return QByteArray Textual JSON representation in UTF-8
+ */
+ QByteArray serialize(const QVariant &data);
-/**
- * This method generates a textual JSON representation
- *
- * \param data The JSON data generated by the parser.
- * \param success The success of the serialization
- *
- * \return QByteArray Textual JSON representation in UTF-8
- */
-QByteArray serialize(const QVariant& data, bool& success);
+ /**
+ * This method generates a textual JSON representation
+ *
+ * \param data The JSON data generated by the parser.
+ * \param success The success of the serialization
+ *
+ * \return QByteArray Textual JSON representation in UTF-8
+ */
+ QByteArray serialize(const QVariant &data, bool &success);
-/**
- * This method generates a textual JSON representation
- *
- * \param data The JSON data generated by the parser.
- *
- * \return QString Textual JSON representation
- */
-QString serializeStr(const QVariant& data);
+ /**
+ * This method generates a textual JSON representation
+ *
+ * \param data The JSON data generated by the parser.
+ *
+ * \return QString Textual JSON representation
+ */
+ QString serializeStr(const QVariant &data);
-/**
- * This method generates a textual JSON representation
- *
- * \param data The JSON data generated by the parser.
- * \param success The success of the serialization
- *
- * \return QString Textual JSON representation
- */
-QString serializeStr(const QVariant& data, bool& success);
-} // namespace QtJson
+ /**
+ * This method generates a textual JSON representation
+ *
+ * \param data The JSON data generated by the parser.
+ * \param success The success of the serialization
+ *
+ * \return QString Textual JSON representation
+ */
+ QString serializeStr(const QVariant &data, bool &success);
+}
-#endif // JSON_H
+#endif //JSON_H
|
