MythTV  master
Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
Serializer Class Referenceabstract

#include <serializer.h>

Inheritance diagram for Serializer:
Inheritance graph
[legend]

Public Member Functions

virtual void Serialize (const QObject *pObject, const QString &_sName=QString())
 
virtual void Serialize (const QVariant &vValue, const QString &sName)
 
virtual QString GetContentType ()=0
 
virtual void AddHeaders (QStringMap &headers)
 
 Serializer ()
 

Protected Member Functions

virtual void BeginSerialize (QString &)
 
virtual void EndSerialize ()
 
virtual void BeginObject (const QString &sName, const QObject *pObject)=0
 
virtual void EndObject (const QString &sName, const QObject *pObject)=0
 
virtual void AddProperty (const QString &sName, const QVariant &vValue, const QMetaObject *pMetaParent, const QMetaProperty *pMetaProp)=0
 
void SerializeObject (const QObject *pObject, const QString &sName)
 
void SerializeObjectProperties (const QObject *pObject)
 

Static Protected Member Functions

static QString ReadPropertyMetadata (const QObject *pObject, const QString &sPropName, const QString &sKey)
 

Protected Attributes

QCryptographicHash m_hash
 

Detailed Description

Definition at line 31 of file serializer.h.

Constructor & Destructor Documentation

◆ Serializer()

Serializer::Serializer ( )
inline

Definition at line 75 of file serializer.h.

Member Function Documentation

◆ BeginSerialize()

virtual void Serializer::BeginSerialize ( QString &  )
inlineprotectedvirtual

Reimplemented in SoapSerializer, XmlSerializer, JSONSerializer, and XmlPListSerializer.

Definition at line 37 of file serializer.h.

Referenced by Serialize().

◆ EndSerialize()

virtual void Serializer::EndSerialize ( void  )
inlineprotectedvirtual

Reimplemented in XmlSerializer, JSONSerializer, and XmlPListSerializer.

Definition at line 38 of file serializer.h.

Referenced by Serialize().

◆ BeginObject()

virtual void Serializer::BeginObject ( const QString &  sName,
const QObject *  pObject 
)
protectedpure virtual

Implemented in XmlSerializer, JSONSerializer, and XmlPListSerializer.

Referenced by SerializeObject().

◆ EndObject()

virtual void Serializer::EndObject ( const QString &  sName,
const QObject *  pObject 
)
protectedpure virtual

Implemented in XmlSerializer, JSONSerializer, and XmlPListSerializer.

Referenced by SerializeObject().

◆ AddProperty()

virtual void Serializer::AddProperty ( const QString &  sName,
const QVariant &  vValue,
const QMetaObject *  pMetaParent,
const QMetaProperty *  pMetaProp 
)
protectedpure virtual

◆ SerializeObject()

void Serializer::SerializeObject ( const QObject *  pObject,
const QString &  sName 
)
protected

Definition at line 88 of file serializer.cpp.

Referenced by Serialize().

◆ SerializeObjectProperties()

void Serializer::SerializeObjectProperties ( const QObject *  pObject)
protected

◆ ReadPropertyMetadata()

QString Serializer::ReadPropertyMetadata ( const QObject *  pObject,
const QString &  sPropName,
const QString &  sKey 
)
staticprotected

Definition at line 150 of file serializer.cpp.

Referenced by SerializeObjectProperties().

◆ Serialize() [1/2]

void Serializer::Serialize ( const QObject *  pObject,
const QString &  _sName = QString() 
)
virtual

Definition at line 34 of file serializer.cpp.

Referenced by ServiceHost::FormatResponse().

◆ Serialize() [2/2]

void Serializer::Serialize ( const QVariant &  vValue,
const QString &  sName 
)
virtual

Definition at line 67 of file serializer.cpp.

◆ GetContentType()

virtual QString Serializer::GetContentType ( )
pure virtual

◆ AddHeaders()

void Serializer::AddHeaders ( QStringMap headers)
virtual

Reimplemented in SoapSerializer.

Definition at line 22 of file serializer.cpp.

Referenced by SoapSerializer::AddHeaders(), and HTTPRequest::FormatActionResponse().

Member Data Documentation

◆ m_hash

QCryptographicHash Serializer::m_hash
protected

Definition at line 35 of file serializer.h.

Referenced by AddHeaders(), Serialize(), SerializeObject(), and SerializeObjectProperties().


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