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

#include <mythbinaryplist.h>

Public Member Functions

 MythBinaryPList (const QByteArray &Data)
 
QVariant GetValue (const QString &Key)
 
QString ToString ()
 
bool ToXML (QIODevice *Device)
 

Private Member Functions

void ParseBinaryPList (const QByteArray &Data)
 
QVariant ParseBinaryNode (uint64_t Num)
 
QVariantMap ParseBinaryDict (uint8_t *Data)
 
QList< QVariant > ParseBinaryArray (uint8_t *Data)
 
uint8_t * GetBinaryObject (uint64_t Num)
 
bool ToXML (const QVariant &Data, QXmlStreamWriter &Xml)
 
void DictToXML (const QVariant &Data, QXmlStreamWriter &Xml)
 
void ArrayToXML (const QVariant &Data, QXmlStreamWriter &Xml)
 

Static Private Member Functions

static QVariant ParseBinaryString (uint8_t *Data)
 
static QVariant ParseBinaryReal (uint8_t *Data)
 
static QVariant ParseBinaryDate (uint8_t *Data)
 
static QVariant ParseBinaryData (uint8_t *Data)
 
static QVariant ParseBinaryUnicode (uint8_t *Data)
 
static QVariant ParseBinaryUInt (uint8_t **Data)
 
static uint64_t GetBinaryCount (uint8_t **Data)
 
static uint64_t GetBinaryUInt (uint8_t *Data, uint64_t Size)
 

Private Attributes

QVariant m_result
 
uint8_t * m_data { nullptr }
 
uint8_t * m_offsetTable { nullptr }
 
uint64_t m_rootObj { 0 }
 
uint64_t m_numObjs { 0 }
 
uint8_t m_offsetSize { 0 }
 
uint8_t m_parmSize { 0 }
 

Detailed Description

Definition at line 11 of file mythbinaryplist.h.

Constructor & Destructor Documentation

◆ MythBinaryPList()

MythBinaryPList::MythBinaryPList ( const QByteArray &  Data)
explicit

Definition at line 123 of file mythbinaryplist.cpp.

Member Function Documentation

◆ GetValue()

QVariant MythBinaryPList::GetValue ( const QString &  Key)

Definition at line 128 of file mythbinaryplist.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ ToString()

QString MythBinaryPList::ToString ( )

Definition at line 146 of file mythbinaryplist.cpp.

Referenced by MythAirplayServer::HandleResponse().

◆ ToXML() [1/2]

bool MythBinaryPList::ToXML ( QIODevice *  Device)

Definition at line 156 of file mythbinaryplist.cpp.

Referenced by ArrayToXML(), DictToXML(), and ToString().

◆ ParseBinaryPList()

void MythBinaryPList::ParseBinaryPList ( const QByteArray &  Data)
private

Definition at line 239 of file mythbinaryplist.cpp.

Referenced by MythBinaryPList().

◆ ParseBinaryNode()

QVariant MythBinaryPList::ParseBinaryNode ( uint64_t  Num)
private

Definition at line 287 of file mythbinaryplist.cpp.

Referenced by ParseBinaryArray(), ParseBinaryDict(), and ParseBinaryPList().

◆ ParseBinaryDict()

QVariantMap MythBinaryPList::ParseBinaryDict ( uint8_t *  Data)
private

Definition at line 354 of file mythbinaryplist.cpp.

Referenced by ParseBinaryNode().

◆ ParseBinaryArray()

QList< QVariant > MythBinaryPList::ParseBinaryArray ( uint8_t *  Data)
private

Definition at line 382 of file mythbinaryplist.cpp.

Referenced by ParseBinaryNode().

◆ ParseBinaryString()

QVariant MythBinaryPList::ParseBinaryString ( uint8_t *  Data)
staticprivate

Definition at line 417 of file mythbinaryplist.cpp.

Referenced by ParseBinaryNode().

◆ ParseBinaryReal()

QVariant MythBinaryPList::ParseBinaryReal ( uint8_t *  Data)
staticprivate

Definition at line 432 of file mythbinaryplist.cpp.

Referenced by ParseBinaryNode().

◆ ParseBinaryDate()

QVariant MythBinaryPList::ParseBinaryDate ( uint8_t *  Data)
staticprivate

Definition at line 456 of file mythbinaryplist.cpp.

Referenced by ParseBinaryNode().

◆ ParseBinaryData()

QVariant MythBinaryPList::ParseBinaryData ( uint8_t *  Data)
staticprivate

Definition at line 473 of file mythbinaryplist.cpp.

Referenced by ParseBinaryNode().

◆ ParseBinaryUnicode()

QVariant MythBinaryPList::ParseBinaryUnicode ( uint8_t *  Data)
staticprivate

Definition at line 489 of file mythbinaryplist.cpp.

Referenced by ParseBinaryNode().

◆ ParseBinaryUInt()

QVariant MythBinaryPList::ParseBinaryUInt ( uint8_t **  Data)
staticprivate

Definition at line 402 of file mythbinaryplist.cpp.

Referenced by GetBinaryCount(), and ParseBinaryNode().

◆ GetBinaryCount()

uint64_t MythBinaryPList::GetBinaryCount ( uint8_t **  Data)
staticprivate

◆ GetBinaryUInt()

uint64_t MythBinaryPList::GetBinaryUInt ( uint8_t *  Data,
uint64_t  Size 
)
staticprivate

◆ GetBinaryObject()

uint8_t * MythBinaryPList::GetBinaryObject ( uint64_t  Num)
private

Definition at line 342 of file mythbinaryplist.cpp.

Referenced by ParseBinaryNode().

◆ ToXML() [2/2]

bool MythBinaryPList::ToXML ( const QVariant &  Data,
QXmlStreamWriter &  Xml 
)
private

Definition at line 173 of file mythbinaryplist.cpp.

◆ DictToXML()

void MythBinaryPList::DictToXML ( const QVariant &  Data,
QXmlStreamWriter &  Xml 
)
private

Definition at line 216 of file mythbinaryplist.cpp.

Referenced by ToXML().

◆ ArrayToXML()

void MythBinaryPList::ArrayToXML ( const QVariant &  Data,
QXmlStreamWriter &  Xml 
)
private

Definition at line 230 of file mythbinaryplist.cpp.

Referenced by ToXML().

Member Data Documentation

◆ m_result

QVariant MythBinaryPList::m_result
private

Definition at line 37 of file mythbinaryplist.h.

Referenced by GetValue(), ParseBinaryPList(), and ToXML().

◆ m_data

uint8_t* MythBinaryPList::m_data { nullptr }
private

Definition at line 38 of file mythbinaryplist.h.

Referenced by GetBinaryObject(), and ParseBinaryPList().

◆ m_offsetTable

uint8_t* MythBinaryPList::m_offsetTable { nullptr }
private

Definition at line 39 of file mythbinaryplist.h.

Referenced by GetBinaryObject(), and ParseBinaryPList().

◆ m_rootObj

uint64_t MythBinaryPList::m_rootObj { 0 }
private

Definition at line 40 of file mythbinaryplist.h.

Referenced by ParseBinaryPList().

◆ m_numObjs

uint64_t MythBinaryPList::m_numObjs { 0 }
private

Definition at line 41 of file mythbinaryplist.h.

Referenced by GetBinaryObject(), and ParseBinaryPList().

◆ m_offsetSize

uint8_t MythBinaryPList::m_offsetSize { 0 }
private

Definition at line 42 of file mythbinaryplist.h.

Referenced by GetBinaryObject(), and ParseBinaryPList().

◆ m_parmSize

uint8_t MythBinaryPList::m_parmSize { 0 }
private

Definition at line 43 of file mythbinaryplist.h.

Referenced by ParseBinaryArray(), ParseBinaryDict(), and ParseBinaryPList().


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