|
MythTV
0.26-pre
|
#include <jsonSerializer.h>
Public Member Functions | |
| JSONSerializer (QIODevice *pDevice, const QString &sRequestName) | |
| virtual | ~JSONSerializer () |
| virtual QString | GetContentType () |
Protected Member Functions | |
| virtual void | BeginSerialize (QString &sName) |
| virtual void | EndSerialize () |
| virtual void | BeginObject (const QString &sName, const QObject *pObject) |
| virtual void | EndObject (const QString &sName, const QObject *pObject) |
| virtual void | AddProperty (const QString &sName, const QVariant &vValue, const QMetaObject *pMetaParent, const QMetaProperty *pMetaProp) |
| void | RenderValue (const QVariant &vValue) |
| void | RenderStringList (const QStringList &list) |
| void | RenderList (const QVariantList &list) |
| void | RenderMap (const QVariantMap &map) |
| QString | Encode (const QString &sIn) |
Protected Attributes | |
| QTextStream | m_Stream |
| bool | m_bCommaNeeded |
Definition at line 31 of file jsonSerializer.h.
| JSONSerializer::JSONSerializer | ( | QIODevice * | pDevice, |
| const QString & | sRequestName | ||
| ) |
Definition at line 23 of file jsonSerializer.cpp.
| JSONSerializer::~JSONSerializer | ( | ) | [virtual] |
Definition at line 32 of file jsonSerializer.cpp.
| void JSONSerializer::BeginSerialize | ( | QString & | sName | ) | [protected, virtual] |
Reimplemented from Serializer.
Definition at line 50 of file jsonSerializer.cpp.
| void JSONSerializer::EndSerialize | ( | void | ) | [protected, virtual] |
Reimplemented from Serializer.
Definition at line 61 of file jsonSerializer.cpp.
| void JSONSerializer::BeginObject | ( | const QString & | sName, |
| const QObject * | pObject | ||
| ) | [protected, virtual] |
Implements Serializer.
Definition at line 75 of file jsonSerializer.cpp.
| void JSONSerializer::EndObject | ( | const QString & | sName, |
| const QObject * | pObject | ||
| ) | [protected, virtual] |
Implements Serializer.
Definition at line 86 of file jsonSerializer.cpp.
| void JSONSerializer::AddProperty | ( | const QString & | sName, |
| const QVariant & | vValue, | ||
| const QMetaObject * | pMetaParent, | ||
| const QMetaProperty * | pMetaProp | ||
| ) | [protected, virtual] |
Implements Serializer.
Definition at line 97 of file jsonSerializer.cpp.
| void JSONSerializer::RenderValue | ( | const QVariant & | vValue | ) | [protected] |
Definition at line 116 of file jsonSerializer.cpp.
Referenced by AddProperty(), and RenderList().
| void JSONSerializer::RenderStringList | ( | const QStringList & | list | ) | [protected] |
Definition at line 191 of file jsonSerializer.cpp.
Referenced by RenderValue().
| void JSONSerializer::RenderList | ( | const QVariantList & | list | ) | [protected] |
Definition at line 166 of file jsonSerializer.cpp.
Referenced by RenderValue().
| void JSONSerializer::RenderMap | ( | const QVariantMap & | map | ) | [protected] |
Definition at line 216 of file jsonSerializer.cpp.
Referenced by RenderValue().
| QString JSONSerializer::Encode | ( | const QString & | sIn | ) | [protected] |
Definition at line 244 of file jsonSerializer.cpp.
Referenced by RenderMap(), RenderStringList(), and RenderValue().
| QString JSONSerializer::GetContentType | ( | ) | [virtual] |
Implements Serializer.
Definition at line 40 of file jsonSerializer.cpp.
QTextStream JSONSerializer::m_Stream [protected] |
Definition at line 36 of file jsonSerializer.h.
Referenced by AddProperty(), BeginObject(), BeginSerialize(), EndObject(), EndSerialize(), RenderList(), RenderMap(), RenderStringList(), and RenderValue().
bool JSONSerializer::m_bCommaNeeded [protected] |
Definition at line 37 of file jsonSerializer.h.
Referenced by AddProperty(), BeginObject(), BeginSerialize(), EndObject(), EndSerialize(), and RenderValue().
1.7.6.1