MythTV  master
Public Member Functions | Protected Member Functions | Static Private Member Functions | Private Attributes | List of all members
MythXMLPListSerialiser Class Reference

#include <libmythbase/http/serialisers/mythxmlplistserialiser.h>

Inheritance diagram for MythXMLPListSerialiser:
[legend]
Collaboration diagram for MythXMLPListSerialiser:
[legend]

Public Member Functions

 MythXMLPListSerialiser (const QString &Name, const QVariant &Value)
 
- Public Member Functions inherited from MythSerialiser
 MythSerialiser ()
 
HTTPData Result ()
 

Protected Member Functions

void AddObject (const QString &Name, const QVariant &Value)
 
void AddValue (const QString &Name, const QVariant &Value, bool NeedKey=true)
 
void AddQObject (const QString &Name, const QObject *Object)
 
void AddStringList (const QString &Name, const QVariant &Values)
 
void AddList (const QString &Name, const QVariantList &Values)
 
void AddMap (const QString &Name, const QVariantMap &Map)
 
void AddProperty (const QString &Name, const QVariant &Value, const QMetaObject *MetaObject, const QMetaProperty *MetaProperty)
 

Static Private Member Functions

static QString GetItemName (const QString &Name)
 
static QString GetContentName (const QString &Name, const QMetaObject *MetaObject)
 FIXME We shouldn't be doing this on the fly. More...
 

Private Attributes

QXmlStreamWriter m_writer
 

Additional Inherited Members

- Static Public Member Functions inherited from MythSerialiser
static HTTPData Serialise (const QString &Name, const QVariant &Value, const QStringList &Accept)
 Serialise the given data with an encoding suggested by Accept. More...
 
- Protected Attributes inherited from MythSerialiser
QBuffer m_buffer
 
HTTPData m_result { nullptr }
 

Detailed Description

Definition at line 12 of file mythxmlplistserialiser.h.

Constructor & Destructor Documentation

◆ MythXMLPListSerialiser()

MythXMLPListSerialiser::MythXMLPListSerialiser ( const QString &  Name,
const QVariant &  Value 
)

Definition at line 10 of file mythxmlplistserialiser.cpp.

Member Function Documentation

◆ AddObject()

void MythXMLPListSerialiser::AddObject ( const QString &  Name,
const QVariant &  Value 
)
protected

Definition at line 31 of file mythxmlplistserialiser.cpp.

Referenced by MythXMLPListSerialiser().

◆ AddValue()

void MythXMLPListSerialiser::AddValue ( const QString &  Name,
const QVariant &  Value,
bool  NeedKey = true 
)
protected

Definition at line 37 of file mythxmlplistserialiser.cpp.

Referenced by AddList(), AddMap(), AddObject(), and AddProperty().

◆ AddQObject()

void MythXMLPListSerialiser::AddQObject ( const QString &  Name,
const QObject *  Object 
)
protected

Definition at line 118 of file mythxmlplistserialiser.cpp.

Referenced by AddValue().

◆ AddStringList()

void MythXMLPListSerialiser::AddStringList ( const QString &  Name,
const QVariant &  Values 
)
protected

Definition at line 170 of file mythxmlplistserialiser.cpp.

Referenced by AddValue().

◆ AddList()

void MythXMLPListSerialiser::AddList ( const QString &  Name,
const QVariantList &  Values 
)
protected

Definition at line 180 of file mythxmlplistserialiser.cpp.

Referenced by AddValue().

◆ AddMap()

void MythXMLPListSerialiser::AddMap ( const QString &  Name,
const QVariantMap &  Map 
)
protected

Definition at line 207 of file mythxmlplistserialiser.cpp.

Referenced by AddValue().

◆ AddProperty()

void MythXMLPListSerialiser::AddProperty ( const QString &  Name,
const QVariant &  Value,
const QMetaObject *  MetaObject,
const QMetaProperty *  MetaProperty 
)
protected

Definition at line 156 of file mythxmlplistserialiser.cpp.

Referenced by AddQObject().

◆ GetItemName()

QString MythXMLPListSerialiser::GetItemName ( const QString &  Name)
staticprivate

Definition at line 217 of file mythxmlplistserialiser.cpp.

Referenced by AddList(), AddMap(), and GetContentName().

◆ GetContentName()

QString MythXMLPListSerialiser::GetContentName ( const QString &  Name,
const QMetaObject *  MetaObject 
)
staticprivate

FIXME We shouldn't be doing this on the fly.

Definition at line 228 of file mythxmlplistserialiser.cpp.

Referenced by AddObject(), and AddProperty().

Member Data Documentation

◆ m_writer

QXmlStreamWriter MythXMLPListSerialiser::m_writer
private

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