| QJson project page | QJson home page |
Convenience class for converting JSON data to QVariant objects using a dedicated thread. More...
#include <serializerrunnable.h>
Signals | |
| void | parsingFinished (const QByteArray &serialized, bool ok, const QString &error_msg) |
Public Member Functions | |
| SerializerRunnable (QObject *parent=0) | |
| void | setJsonObject (const QVariant &json) |
Convenience class for converting JSON data to QVariant objects using a dedicated thread.
Definition at line 37 of file serializerrunnable.h.
| SerializerRunnable::SerializerRunnable | ( | QObject * | parent = 0 |
) | [explicit] |
This signal is emitted when the conversion process has been completed
| data | contains the JSON data that has to be converted | |
| parent | parent of the object |
Definition at line 38 of file serializerrunnable.cpp.
| void QJson::SerializerRunnable::parsingFinished | ( | const QByteArray & | serialized, | |
| bool | ok, | |||
| const QString & | error_msg | |||
| ) | [signal] |
This signal is emitted when the serialization process has been completed
| serialized | contains the result of the serialization | |
| ok | if a serialization error occurs ok is set to false, otherwise it's set to true. | |
| error_msg | contains a string explaining the failure reason |
| void SerializerRunnable::setJsonObject | ( | const QVariant & | json | ) |
Sets the json object to serialize.
| json | QVariant containing the json representation to be serialized |
Definition at line 51 of file serializerrunnable.cpp.
|
|
hosts this site. |
Send comments to: QJson Developers |