Torc
0.1
|
A parser for binary property lists. More...
#include <torcplist.h>
Public Types | |
enum | { BPLIST_NULL = 0x00, BPLIST_FALSE = 0x08, BPLIST_TRUE = 0x09, BPLIST_FILL = 0x0F, BPLIST_UINT = 0x10, BPLIST_REAL = 0x20, BPLIST_DATE = 0x30, BPLIST_DATA = 0x40, BPLIST_STRING = 0x50, BPLIST_UNICODE = 0x60, BPLIST_UID = 0x70, BPLIST_ARRAY = 0xA0, BPLIST_SET = 0xC0, BPLIST_DICT = 0xD0 } |
Public Member Functions | |
TorcPList (const QByteArray &Data) | |
QVariant | GetValue (const QString &Key) |
brief Return the value for the given Key. More... | |
QString | ToString (void) |
brief Return the complete plist in formatted XML. More... | |
bool | ToXML (QIODevice *Device) |
brief Convert the parsed plist to XML. More... | |
A parser for binary property lists.
TorcPList uses QVariant for internal storage. Values can be queried using GetValue and the structure can be exported to Xml with ToXml().
Definition at line 12 of file torcplist.h.
anonymous enum |
Enumerator | |
---|---|
BPLIST_NULL | |
BPLIST_FALSE | |
BPLIST_TRUE | |
BPLIST_FILL | |
BPLIST_UINT | |
BPLIST_REAL | |
BPLIST_DATE | |
BPLIST_DATA | |
BPLIST_STRING | |
BPLIST_UNICODE | |
BPLIST_UID | |
BPLIST_ARRAY | |
BPLIST_SET | |
BPLIST_DICT |
Definition at line 15 of file torcplist.h.
|
explicit |
Definition at line 66 of file torcplist.cpp.
QVariant TorcPList::GetValue | ( | const QString & | Key | ) |
brief Return the value for the given Key.
Definition at line 80 of file torcplist.cpp.
QString TorcPList::ToString | ( | void | ) |
brief Return the complete plist in formatted XML.
Definition at line 97 of file torcplist.cpp.
bool TorcPList::ToXML | ( | QIODevice * | Device | ) |
brief Convert the parsed plist to XML.
Definition at line 108 of file torcplist.cpp.