diff options
Diffstat (limited to 'src/3rdparty/qjson/src/json.h')
-rw-r--r-- | src/3rdparty/qjson/src/json.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/src/3rdparty/qjson/src/json.h b/src/3rdparty/qjson/src/json.h deleted file mode 100644 index 62f33a4..0000000 --- a/src/3rdparty/qjson/src/json.h +++ /dev/null @@ -1,58 +0,0 @@ -/**************************************************************************** -** -** Copyright (c) 2010 Girish Ramakrishnan <[email protected]> -** -** Use, modification and distribution is allowed without limitation, -** warranty, liability or support of any kind. -** -****************************************************************************/ - -#ifndef JSON_H -#define JSON_H - -#include <QByteArray> -#include <QVariant> - -class JsonReader -{ -public: - JsonReader(); - ~JsonReader(); - - bool parse(const QByteArray &ba); - bool parse(const QString &str); - - QVariant result() const; - - QString errorString() const; - -private: - QVariant m_result; - QString m_errorString; - void *reserved; -}; - -class JsonWriter -{ -public: - JsonWriter(); - ~JsonWriter(); - - QString toString(const QVariant &variant); - QByteArray toByteArray(const QVariant &variant); - - void setAutoFormatting(bool autoFormat); - bool autoFormatting() const; - - void setAutoFormattingIndent(int spaceOrTabs); - int autoFormattingIndent() const; - -private: - QString stringify(const QVariant &variant, int depth = 0); - bool m_autoFormatting; - QString m_autoFormattingIndent; - void *reserved; -}; - -#endif // JSON_H - |