MythTV  0.26-pre
Public Member Functions | Private Attributes
DSMCCCacheModuleData Class Reference

DSMCCCacheModuleData contains information about a module and holds the blocks for a partly completed module. More...

#include <dsmccobjcarousel.h>

List of all members.

Public Member Functions

 DSMCCCacheModuleData (DsmccDii *dii, DsmccModuleInfo *info, unsigned short streamTag)
 ~DSMCCCacheModuleData ()
unsigned char * AddModuleData (DsmccDb *ddb, const unsigned char *Data)
 Add block to the module and create the module if it's now complete.
unsigned long CarouselId (void) const
unsigned short ModuleId (void) const
unsigned short StreamId (void) const
unsigned char Version (void) const
unsigned long ModuleSize (void) const
unsigned long DataSize (void) const
 Return the, possibly uncompressed, module size.

Private Attributes

unsigned long m_carousel_id
unsigned short m_module_id
unsigned short m_stream_id
unsigned char m_version
unsigned long m_moduleSize
 Total size.
unsigned long m_receivedData
 Size received so far.
vector< QByteArray * > m_blocks
 Block table. As blocks are received they are added to this table.
bool m_completed
 True if we have completed this module.
ModuleDescriptorData m_descriptorData

Detailed Description

DSMCCCacheModuleData contains information about a module and holds the blocks for a partly completed module.

Definition at line 25 of file dsmccobjcarousel.h.


Constructor & Destructor Documentation

DSMCCCacheModuleData::DSMCCCacheModuleData ( DsmccDii dii,
DsmccModuleInfo info,
unsigned short  streamTag 
)

Definition at line 17 of file dsmccobjcarousel.cpp.

Definition at line 33 of file dsmccobjcarousel.cpp.


Member Function Documentation

unsigned char * DSMCCCacheModuleData::AddModuleData ( DsmccDb ddb,
const unsigned char *  Data 
)

Add block to the module and create the module if it's now complete.

Returns:
data for the module if it is complete, NULL otherwise.

Definition at line 45 of file dsmccobjcarousel.cpp.

Referenced by ObjCarousel::AddModuleData().

unsigned long DSMCCCacheModuleData::CarouselId ( void  ) const [inline]
unsigned short DSMCCCacheModuleData::ModuleId ( void  ) const [inline]
unsigned short DSMCCCacheModuleData::StreamId ( void  ) const [inline]

Definition at line 36 of file dsmccobjcarousel.h.

Referenced by BiopMessage::ProcessDir(), and BiopMessage::ProcessFile().

unsigned char DSMCCCacheModuleData::Version ( void  ) const [inline]

Definition at line 37 of file dsmccobjcarousel.h.

Referenced by ObjCarousel::AddModuleInfo().

unsigned long DSMCCCacheModuleData::ModuleSize ( void  ) const [inline]

Definition at line 38 of file dsmccobjcarousel.h.

Referenced by ObjCarousel::AddModuleInfo().

unsigned long DSMCCCacheModuleData::DataSize ( void  ) const [inline]

Return the, possibly uncompressed, module size.

Definition at line 41 of file dsmccobjcarousel.h.

Referenced by ObjCarousel::AddModuleData(), and ObjCarousel::AddModuleInfo().


Member Data Documentation

unsigned long DSMCCCacheModuleData::m_carousel_id [private]

Definition at line 49 of file dsmccobjcarousel.h.

unsigned short DSMCCCacheModuleData::m_module_id [private]

Definition at line 50 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

unsigned short DSMCCCacheModuleData::m_stream_id [private]

Definition at line 51 of file dsmccobjcarousel.h.

unsigned char DSMCCCacheModuleData::m_version [private]

Definition at line 53 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

unsigned long DSMCCCacheModuleData::m_moduleSize [private]

Total size.

Definition at line 54 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), and DSMCCCacheModuleData().

unsigned long DSMCCCacheModuleData::m_receivedData [private]

Size received so far.

Definition at line 55 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

vector<QByteArray*> DSMCCCacheModuleData::m_blocks [private]

Block table. As blocks are received they are added to this table.

Definition at line 58 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), DSMCCCacheModuleData(), and ~DSMCCCacheModuleData().

True if we have completed this module.

Definition at line 60 of file dsmccobjcarousel.h.

Referenced by AddModuleData().

Definition at line 61 of file dsmccobjcarousel.h.

Referenced by AddModuleData(), and DSMCCCacheModuleData().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends