MythTV  master
Public Member Functions | Protected Member Functions | List of all members
XmlPListSerializer Class Reference

#include <xmlplistSerializer.h>

Inheritance diagram for XmlPListSerializer:
Inheritance graph
[legend]
Collaboration diagram for XmlPListSerializer:
Collaboration graph
[legend]

Public Member Functions

 XmlPListSerializer (QIODevice *pDevice)
 
virtual ~XmlPListSerializer ()=default
 
QString GetContentType () override
 
- Public Member Functions inherited from XmlSerializer
 XmlSerializer (QIODevice *pDevice, const QString &sRequestName)
 
virtual ~XmlSerializer ()
 
QString GetContentType () override
 
- Public Member Functions inherited from Serializer
virtual void Serialize (const QObject *pObject, const QString &_sName=QString())
 
virtual void Serialize (const QVariant &vValue, const QString &sName)
 
virtual void AddHeaders (QStringMap &headers)
 
 Serializer ()
 

Protected Member Functions

void BeginSerialize (QString &sName) override
 
void EndSerialize () override
 
void RenderValue (const QString &sName, const QVariant &vValue, bool needKey=true)
 
void RenderStringList (const QString &sName, const QStringList &list)
 
void RenderList (const QString &sName, const QVariantList &list)
 
void RenderMap (const QString &sName, const QVariantMap &map)
 
void BeginObject (const QString &sName, const QObject *pObject) override
 
void EndObject (const QString &sName, const QObject *pObject) override
 
void AddProperty (const QString &sName, const QVariant &vValue, const QMetaObject *pMetaParent, const QMetaProperty *pMetaProp) override
 
void SerializePListObjectProperties (const QString &sName, const QObject *pObject, bool needKey)
 
- Protected Member Functions inherited from XmlSerializer
void BeginSerialize (QString &sName) override
 
void EndSerialize () override
 
void BeginObject (const QString &sName, const QObject *pObject) override
 
void EndObject (const QString &sName, const QObject *pObject) override
 
void AddProperty (const QString &sName, const QVariant &vValue, const QMetaObject *pMetaParent, const QMetaProperty *pMetaProp) override
 
void RenderValue (const QString &sName, const QVariant &vValue)
 
void RenderEnum (const QString &sName, const QVariant &vValue, const QMetaProperty *pMetaProp)
 
void RenderStringList (const QString &sName, const QStringList &list)
 
void RenderList (const QString &sName, const QVariantList &list)
 
void RenderMap (const QString &sName, const QVariantMap &map)
 
QString GetItemName (const QString &sName)
 
QString GetContentName (const QString &sName, const QMetaObject *pMetaObject, const QMetaProperty *pMetaProp)
 
QString FindOptionValue (const QStringList &sOptions, const QString &sName)
 
- Protected Member Functions inherited from Serializer
void SerializeObject (const QObject *pObject, const QString &sName)
 
void SerializeObjectProperties (const QObject *pObject)
 
QString ReadPropertyMetadata (const QObject *pObject, const QString &sPropName, const QString &sKey)
 

Additional Inherited Members

- Public Attributes inherited from XmlSerializer
bool PropertiesAsAttributes {true}
 
- Protected Attributes inherited from XmlSerializer
QXmlStreamWriter * m_pXmlWriter {nullptr}
 
QString m_sRequestName
 
bool m_bIsRoot {true}
 
- Protected Attributes inherited from Serializer
QCryptographicHash m_hash
 

Detailed Description

Definition at line 12 of file xmlplistSerializer.h.

Constructor & Destructor Documentation

◆ XmlPListSerializer()

XmlPListSerializer::XmlPListSerializer ( QIODevice *  pDevice)
inlineexplicit

Definition at line 37 of file xmlplistSerializer.h.

◆ ~XmlPListSerializer()

virtual XmlPListSerializer::~XmlPListSerializer ( )
virtualdefault

Member Function Documentation

◆ BeginSerialize()

void XmlPListSerializer::BeginSerialize ( QString &  sName)
overrideprotectedvirtual

Reimplemented from Serializer.

Definition at line 27 of file xmlplistSerializer.cpp.

◆ EndSerialize()

void XmlPListSerializer::EndSerialize ( void  )
overrideprotectedvirtual

Reimplemented from Serializer.

Definition at line 38 of file xmlplistSerializer.cpp.

◆ RenderValue()

void XmlPListSerializer::RenderValue ( const QString &  sName,
const QVariant &  vValue,
bool  needKey = true 
)
protected

Definition at line 50 of file xmlplistSerializer.cpp.

Referenced by AddProperty(), RenderList(), and RenderMap().

◆ RenderStringList()

void XmlPListSerializer::RenderStringList ( const QString &  sName,
const QStringList &  list 
)
protected

Definition at line 176 of file xmlplistSerializer.cpp.

Referenced by RenderValue().

◆ RenderList()

void XmlPListSerializer::RenderList ( const QString &  sName,
const QVariantList &  list 
)
protected

Definition at line 147 of file xmlplistSerializer.cpp.

Referenced by RenderValue().

◆ RenderMap()

void XmlPListSerializer::RenderMap ( const QString &  sName,
const QVariantMap &  map 
)
protected

Definition at line 189 of file xmlplistSerializer.cpp.

Referenced by RenderValue().

◆ BeginObject()

void XmlPListSerializer::BeginObject ( const QString &  sName,
const QObject *  pObject 
)
overrideprotectedvirtual

Implements Serializer.

Definition at line 206 of file xmlplistSerializer.cpp.

◆ EndObject()

void XmlPListSerializer::EndObject ( const QString &  sName,
const QObject *  pObject 
)
overrideprotectedvirtual

Implements Serializer.

Definition at line 229 of file xmlplistSerializer.cpp.

◆ AddProperty()

void XmlPListSerializer::AddProperty ( const QString &  sName,
const QVariant &  vValue,
const QMetaObject *  pMetaParent,
const QMetaProperty *  pMetaProp 
)
overrideprotectedvirtual

Implements Serializer.

Definition at line 235 of file xmlplistSerializer.cpp.

Referenced by SerializePListObjectProperties().

◆ SerializePListObjectProperties()

void XmlPListSerializer::SerializePListObjectProperties ( const QString &  sName,
const QObject *  pObject,
bool  needKey 
)
protected

Definition at line 243 of file xmlplistSerializer.cpp.

Referenced by RenderValue().

◆ GetContentType()

QString XmlPListSerializer::GetContentType ( )
overridevirtual

Implements Serializer.

Definition at line 45 of file xmlplistSerializer.cpp.


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