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

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

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

Public Member Functions

 MythXMLSerialiser (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)
 
void AddQObject (const QObject *Object)
 
void AddStringList (const QVariant &Values)
 
void AddList (const QString &Name, const QVariant &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
 
bool m_first { true }
 

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 mythxmlserialiser.h.

Constructor & Destructor Documentation

◆ MythXMLSerialiser()

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

Definition at line 10 of file mythxmlserialiser.cpp.

Member Function Documentation

◆ AddObject()

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

Definition at line 21 of file mythxmlserialiser.cpp.

Referenced by MythXMLSerialiser().

◆ AddValue()

void MythXMLSerialiser::AddValue ( const QString &  Name,
const QVariant &  Value 
)
protected

Definition at line 35 of file mythxmlserialiser.cpp.

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

◆ AddQObject()

void MythXMLSerialiser::AddQObject ( const QObject *  Object)
protected

Definition at line 84 of file mythxmlserialiser.cpp.

Referenced by AddValue().

◆ AddStringList()

void MythXMLSerialiser::AddStringList ( const QVariant &  Values)
protected

Definition at line 134 of file mythxmlserialiser.cpp.

Referenced by AddValue().

◆ AddList()

void MythXMLSerialiser::AddList ( const QString &  Name,
const QVariant &  Values 
)
protected

Definition at line 145 of file mythxmlserialiser.cpp.

Referenced by AddValue().

◆ AddMap()

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

Definition at line 156 of file mythxmlserialiser.cpp.

Referenced by AddValue().

◆ AddProperty()

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

Definition at line 117 of file mythxmlserialiser.cpp.

Referenced by AddQObject().

◆ GetItemName()

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

Definition at line 172 of file mythxmlserialiser.cpp.

Referenced by AddMap(), and GetContentName().

◆ GetContentName()

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

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

Definition at line 182 of file mythxmlserialiser.cpp.

Referenced by AddObject(), and AddProperty().

Member Data Documentation

◆ m_writer

QXmlStreamWriter MythXMLSerialiser::m_writer
private

◆ m_first

bool MythXMLSerialiser::m_first { true }
private

Definition at line 32 of file mythxmlserialiser.h.

Referenced by AddObject().


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