QJson - a Qt based library for mapping JSON data to QVariant objects

QJson home page

- Main Page
- Related Pages
- Namespaces
- Classes
- Files

- Class List
- Class Members

Signals | Public Member Functions | List of all members
QJson::SerializerRunnable Class Reference

Convenience class for converting JSON data to QVariant objects using a dedicated thread. More...

`#include <serializerrunnable.h>`

Inherits QObject, and QRunnable.

## Signals
void | parsingFinished (const QByteArray &serialized, bool ok, const QString &error_msg)

## Public Member Functions
void | setJsonObject (const QVariant &json)

## Detailed Description

Convenience class for converting JSON data to QVariant objects using a dedicated thread.

Definition at line 37 of file serializerrunnable.h.

## Member Function Documentation

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

Parameters

  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

Definition at line 98 of file moc_serializerrunnable.cxx.

void SerializerRunnable::setJsonObject | ( | const QVariant & | json | ) |

Sets the json object to serialize.

Parameters

  json | QVariant containing the json representation to be serialized

Definition at line 51 of file serializerrunnable.cpp.

The documentation for this class was generated from the following files:

- /magus/work/usr/mports/devel/qjson/work/qjson-0.8.1/src/serializerrunnable.h
- /magus/work/usr/mports/devel/qjson/work/qjson-0.8.1/src/moc_serializerrunnable.cxx
- /magus/work/usr/mports/devel/qjson/work/qjson-0.8.1/src/serializerrunnable.cpp

| hosts this site. |  | Send comments to: QJson Developers