WARNING: USE THIS SOFTWARE AT YOUR OWN RISK! THIS IS EXPERIMENTAL SOFTWARE NOT INTENDED FOR PRODUCTION USE! Zuble is currently an early stage prototype. As such Zuble is minimally tested and inherently unstable. It is provided for experimental, development, and demonstration purposes only. | Zuble QML Types | Zuble C++ Classes | Zuble Overview |
Zuble
0.1
Zuble Framework C++/QML extension API
|
Converts objects between JSON and QJSValue domains for a specific QJSEngine instance. More...
#include <ZblJsonHelper.h>
Public Member Functions | |
ZblJsonHelper (QJSEngine *engine) | |
QJSValue | JsonTextToValue (QString jsonText) |
QJSValue | JsonValueToValue (QJsonValue &jsonVal) |
QJSValue | JsonArrayToValue (QJsonValue &jsonArrayValue) |
QJSValue | JsonArrayToValue (QJsonArray &array) |
QJSValue | JsonObjectToValue (QJsonValue &jsonObjectValue) |
QJSValue | JsonObjectToValue (QJsonObject &obj) |
QString | ValueToJson (QJSValue &value) |
Protected Attributes | |
QJSEngine * | m_engine |
Converts objects between JSON and QJSValue domains for a specific QJSEngine instance.
Definition at line 17 of file ZblJsonHelper.h.
Zbl::ZblJsonHelper::ZblJsonHelper | ( | QJSEngine * | engine | ) |
Definition at line 12 of file ZblJsonHelper.cpp.
QJSValue Zbl::ZblJsonHelper::JsonArrayToValue | ( | QJsonValue & | jsonArrayValue | ) |
Definition at line 40 of file ZblJsonHelper.cpp.
Referenced by JsonTextToValue(), and JsonValueToValue().
QJSValue Zbl::ZblJsonHelper::JsonArrayToValue | ( | QJsonArray & | array | ) |
Definition at line 46 of file ZblJsonHelper.cpp.
QJSValue Zbl::ZblJsonHelper::JsonObjectToValue | ( | QJsonValue & | jsonObjectValue | ) |
Definition at line 65 of file ZblJsonHelper.cpp.
Referenced by JsonTextToValue(), and JsonValueToValue().
QJSValue Zbl::ZblJsonHelper::JsonObjectToValue | ( | QJsonObject & | obj | ) |
Definition at line 71 of file ZblJsonHelper.cpp.
QJSValue Zbl::ZblJsonHelper::JsonTextToValue | ( | QString | jsonText | ) |
Definition at line 17 of file ZblJsonHelper.cpp.
Referenced by Zbl::ZScriptWorker::execScript().
QJSValue Zbl::ZblJsonHelper::JsonValueToValue | ( | QJsonValue & | jsonVal | ) |
Definition at line 91 of file ZblJsonHelper.cpp.
Referenced by JsonArrayToValue(), and JsonObjectToValue().
QString Zbl::ZblJsonHelper::ValueToJson | ( | QJSValue & | value | ) |
Definition at line 125 of file ZblJsonHelper.cpp.
Referenced by Zbl::ZScriptWorker::execScript().
|
protected |
Definition at line 38 of file ZblJsonHelper.h.
Referenced by JsonArrayToValue(), and JsonObjectToValue().
Zuble documentation copyright © 2019 Bob Dinitto. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Zuble is a derivative work of Qt version 5. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.