MythTV  master
Public Member Functions | Static Protected Member Functions | Static Protected Attributes | List of all members
ContentDescriptor Class Reference

#include <dvbdescriptors.h>

Inheritance diagram for ContentDescriptor:
Inheritance graph
[legend]
Collaboration diagram for ContentDescriptor:
Collaboration graph
[legend]

Public Member Functions

 ContentDescriptor (const unsigned char *data, int len=300)
 
uint Count (void) const
 
uint Nibble1 (uint i) const
 
uint Nibble2 (uint i) const
 
uint Nibble (uint i) const
 
uint UserNibble1 (uint i) const
 
uint UserNibble2 (uint i) const
 
uint UserNibble (uint i) const
 
ProgramInfo::CategoryType GetMythCategory (uint i) const
 
QString GetDescription (uint i) const
 
QString toString (void) const override
 
- Public Member Functions inherited from MPEGDescriptor
 operator const unsigned char * () const
 
 MPEGDescriptor (const unsigned char *data, int len=300)
 
 MPEGDescriptor (const unsigned char *data, int len, uint tag)
 
 MPEGDescriptor (const unsigned char *data, int len, uint tag, uint req_desc_len)
 
virtual ~MPEGDescriptor ()=default
 
bool IsValid (void) const
 
uint size (void) const
 
uint DescriptorTag (void) const
 
QString DescriptorTagString (void) const
 
uint DescriptorLength (void) const
 
virtual QString toStringPD (uint priv_dsid) const
 
virtual QString toStringXML (uint indent_level) const
 Returns XML representation of string the TS Reader XML format. More...
 
QString hexdump (void) const
 
QString descrDump (QString name) const
 

Static Protected Member Functions

static void Init (void)
 

Static Protected Attributes

static QMutex categoryLock
 
static QMap< uint, QString > categoryDesc
 
static volatile bool categoryDescExists = false
 

Additional Inherited Members

- Static Public Member Functions inherited from MPEGDescriptor
static desc_list_t Parse (const unsigned char *data, uint len)
 
static desc_list_t ParseAndExclude (const unsigned char *data, uint len, int excluded_descid)
 
static desc_list_t ParseOnlyInclude (const unsigned char *data, uint len, int excluded_descid)
 
static const unsigned char * Find (const desc_list_t &parsed, uint desc_tag)
 
static desc_list_t FindAll (const desc_list_t &parsed, uint desc_tag)
 
static const unsigned char * FindBestMatch (const desc_list_t &parsed, uint desc_tag, QMap< uint, uint > &langPref)
 
static desc_list_t FindBestMatches (const desc_list_t &parsed, uint desc_tag, QMap< uint, uint > &langPref)
 
- Protected Attributes inherited from MPEGDescriptor
const unsigned char * _data
 

Detailed Description

Definition at line 581 of file dvbdescriptors.h.

Constructor & Destructor Documentation

◆ ContentDescriptor()

ContentDescriptor::ContentDescriptor ( const unsigned char *  data,
int  len = 300 
)
inline

Definition at line 584 of file dvbdescriptors.h.

Member Function Documentation

◆ Count()

uint ContentDescriptor::Count ( void  ) const
inline

Definition at line 590 of file dvbdescriptors.h.

Referenced by toString().

◆ Nibble1()

uint ContentDescriptor::Nibble1 ( uint  i) const
inline

◆ Nibble2()

uint ContentDescriptor::Nibble2 ( uint  i) const
inline

Definition at line 596 of file dvbdescriptors.h.

Referenced by EITHelper::AddEIT(), and DishContentDescriptor::GetTheme().

◆ Nibble()

uint ContentDescriptor::Nibble ( uint  i) const
inline

Definition at line 598 of file dvbdescriptors.h.

Referenced by EITHelper::AddEIT(), and GetDescription().

◆ UserNibble1()

uint ContentDescriptor::UserNibble1 ( uint  i) const
inline

Definition at line 601 of file dvbdescriptors.h.

◆ UserNibble2()

uint ContentDescriptor::UserNibble2 ( uint  i) const
inline

Definition at line 603 of file dvbdescriptors.h.

◆ UserNibble()

uint ContentDescriptor::UserNibble ( uint  i) const
inline

Definition at line 604 of file dvbdescriptors.h.

Referenced by EITHelper::AddEIT(), and DishContentDescriptor::GetCategory().

◆ GetMythCategory()

ProgramInfo::CategoryType ContentDescriptor::GetMythCategory ( uint  i) const

Definition at line 219 of file dvbdescriptors.cpp.

Referenced by EITHelper::AddEIT(), and toString().

◆ GetDescription()

QString ContentDescriptor::GetDescription ( uint  i) const

Definition at line 267 of file dvbdescriptors.cpp.

Referenced by EITHelper::AddEIT(), and toString().

◆ toString()

QString ContentDescriptor::toString ( void  ) const
overridevirtual

Reimplemented from MPEGDescriptor.

Definition at line 288 of file dvbdescriptors.cpp.

◆ Init()

void ContentDescriptor::Init ( void  )
staticprotected

Definition at line 296 of file dvbdescriptors.cpp.

Referenced by GetDescription(), and DishContentDescriptor::Init().

Member Data Documentation

◆ categoryLock

QMutex ContentDescriptor::categoryLock
staticprotected

◆ categoryDesc

QMap< uint, QString > ContentDescriptor::categoryDesc
staticprotected

Definition at line 616 of file dvbdescriptors.h.

Referenced by GetDescription(), and Init().

◆ categoryDescExists

volatile bool ContentDescriptor::categoryDescExists = false
staticprotected

Definition at line 617 of file dvbdescriptors.h.

Referenced by GetDescription(), and Init().


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