MythTV  master
Macros | Enumerations | Functions
plist.cpp File Reference
#include <QDateTime>
#include <QTextStream>
#include <QBuffer>
#include "mythlogging.h"
#include "plist.h"
Include dependency graph for plist.cpp:

Go to the source code of this file.

Macros

#define LOC   QString("PList: ")
 
#define MAGIC   QByteArray("bplist")
 
#define VERSION   QByteArray("00")
 
#define MAGIC_SIZE   6
 
#define VERSION_SIZE   2
 
#define TRAILER_SIZE   26
 
#define MIN_SIZE   (MAGIC_SIZE + VERSION_SIZE + TRAILER_SIZE)
 
#define TRAILER_OFFSIZE_INDEX   0
 
#define TRAILER_PARMSIZE_INDEX   1
 
#define TRAILER_NUMOBJ_INDEX   2
 
#define TRAILER_ROOTOBJ_INDEX   10
 
#define TRAILER_OFFTAB_INDEX   18
 

Enumerations

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
}
 

Functions

static void convert_float (quint8 *p, quint8 s)
 
static quint8 * convert_int (quint8 *p, quint8 s)
 

Macro Definition Documentation

◆ LOC

#define LOC   QString("PList: ")

Definition at line 39 of file plist.cpp.

◆ MAGIC

#define MAGIC   QByteArray("bplist")

Definition at line 41 of file plist.cpp.

◆ VERSION

#define VERSION   QByteArray("00")

Definition at line 42 of file plist.cpp.

◆ MAGIC_SIZE

#define MAGIC_SIZE   6

Definition at line 43 of file plist.cpp.

◆ VERSION_SIZE

#define VERSION_SIZE   2

Definition at line 44 of file plist.cpp.

◆ TRAILER_SIZE

#define TRAILER_SIZE   26

Definition at line 45 of file plist.cpp.

◆ MIN_SIZE

#define MIN_SIZE   (MAGIC_SIZE + VERSION_SIZE + TRAILER_SIZE)

Definition at line 46 of file plist.cpp.

◆ TRAILER_OFFSIZE_INDEX

#define TRAILER_OFFSIZE_INDEX   0

Definition at line 47 of file plist.cpp.

◆ TRAILER_PARMSIZE_INDEX

#define TRAILER_PARMSIZE_INDEX   1

Definition at line 48 of file plist.cpp.

◆ TRAILER_NUMOBJ_INDEX

#define TRAILER_NUMOBJ_INDEX   2

Definition at line 49 of file plist.cpp.

◆ TRAILER_ROOTOBJ_INDEX

#define TRAILER_ROOTOBJ_INDEX   10

Definition at line 50 of file plist.cpp.

◆ TRAILER_OFFTAB_INDEX

#define TRAILER_OFFTAB_INDEX   18

Definition at line 51 of file plist.cpp.

Enumeration Type Documentation

◆ anonymous enum

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 53 of file plist.cpp.

Function Documentation

◆ convert_float()

static void convert_float ( quint8 *  p,
quint8  s 
)
static

Definition at line 71 of file plist.cpp.

Referenced by PList::ParseBinaryDate(), and PList::ParseBinaryReal().

◆ convert_int()

static quint8* convert_int ( quint8 *  p,
quint8  s 
)
static