6 #include <QXmlStreamWriter> 8 #define BPLIST_HIGH 0xF0 9 #define BPLIST_LOW 0x0F 10 #define BPLIST_LOW_MAX BPLIST_LOW 34 explicit TorcPList (
const QByteArray &Data);
36 QVariant
GetValue (
const QString &Key);
38 bool ToXML (QIODevice *Device);
42 void ParseBinaryPList (const QByteArray &Data);
43 QVariant ParseBinaryNode (quint64 Num);
44 QVariantMap ParseBinaryDict (quint8 *Data);
45 QList<QVariant> ParseBinaryArray (quint8 *Data);
46 QVariant ParseBinaryString (quint8 *Data);
47 QVariant ParseBinaryReal (quint8 *Data);
48 QVariant ParseBinaryDate (quint8 *Data);
49 QVariant ParseBinaryData (quint8 *Data);
50 QVariant ParseBinaryUnicode (quint8 *Data);
51 static QVariant ParseBinaryUInt (quint8 **Data);
52 QVariant ParseBinaryUID (quint8 *Data);
53 quint64 GetBinaryCount (quint8 **Data);
54 static quint64 GetBinaryUInt (quint8 *Data, quint64 Size);
55 quint8* GetBinaryObject (quint64 Num);
57 bool ToXML (const QVariant &Data, QXmlStreamWriter &XML);
58 void DictToXML (const QVariant &Data, QXmlStreamWriter &XML);
59 void ArrayToXML (const QVariant &Data, QXmlStreamWriter &XML);
64 quint8 *m_offsetTable;
bool ToXML(QIODevice *Device)
brief Convert the parsed plist to XML.
QString ToString(void)
brief Return the complete plist in formatted XML.
TorcPList(const QByteArray &Data)
A parser for binary property lists.
QVariant GetValue(const QString &Key)
brief Return the value for the given Key.