MythTV  master
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
cLlCiHandler Class Reference

#include <dvbci.h>

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

Public Member Functions

virtual ~cLlCiHandler ()
 
int NumSlots (void) override
 
bool Process (void) override
 
bool HasUserIO (void) override
 
bool NeedCaPmt (void) override
 
bool EnterMenu (int Slot) override
 
cCiMenuGetMenu (void) override
 
cCiEnquiryGetEnquiry (void) override
 
bool SetCaPmt (cCiCaPmt &CaPmt)
 
const unsigned short * GetCaSystemIds (int Slot) override
 
bool SetCaPmt (cCiCaPmt &CaPmt, int Slot) override
 
void SetTimeOffset (double offset_in_seconds) override
 
bool Reset (int Slot)
 
- Public Member Functions inherited from cCiHandler
virtual ~cCiHandler ()=default
 

Static Public Member Functions

static bool connected ()
 
- Static Public Member Functions inherited from cCiHandler
static cCiHandlerCreateCiHandler (const char *FileName)
 

Private Member Functions

bool Send (uint8_t Tag, int SessionId, int ResourceId=0, int Status=-1)
 
cCiSessionGetSessionBySessionId (int SessionId)
 
cCiSessionGetSessionByResourceId (int ResourceId, int Slot)
 
cCiSessionCreateSession (int ResourceId)
 
bool OpenSession (int Length, const uint8_t *Data)
 
bool CloseSession (int SessionId)
 
int CloseAllSessions (int Slot)
 
 cLlCiHandler (int Fd, int NumSlots)
 
 cLlCiHandler (const cLlCiHandler &)=delete
 
cLlCiHandleroperator= (const cLlCiHandler &)=delete
 

Static Private Member Functions

static int ResourceIdToInt (const uint8_t *Data)
 

Private Attributes

cMutex m_mutex
 
int m_fdCa
 
int m_numSlots
 
bool m_newCaSupport {false}
 
bool m_hasUserIO {false}
 
bool m_needCaPmt {false}
 
cCiSessionm_sessions [MAX_CI_SESSION] {}
 
cCiTransportLayerm_tpl {nullptr}
 
cCiTransportConnectionm_tc {nullptr}
 

Friends

class cCiHandler
 

Detailed Description

Definition at line 159 of file dvbci.h.

Constructor & Destructor Documentation

◆ cLlCiHandler() [1/2]

cLlCiHandler::cLlCiHandler ( int  Fd,
int  NumSlots 
)
private

Definition at line 1539 of file dvbci.cpp.

◆ cLlCiHandler() [2/2]

cLlCiHandler::cLlCiHandler ( const cLlCiHandler )
privatedelete

◆ ~cLlCiHandler()

cLlCiHandler::~cLlCiHandler ( )
virtual

Definition at line 1546 of file dvbci.cpp.

Member Function Documentation

◆ ResourceIdToInt()

int cLlCiHandler::ResourceIdToInt ( const uint8_t *  Data)
staticprivate

Definition at line 1583 of file dvbci.cpp.

Referenced by OpenSession().

◆ Send()

bool cLlCiHandler::Send ( uint8_t  Tag,
int  SessionId,
int  ResourceId = 0,
int  Status = -1 
)
private

Definition at line 1588 of file dvbci.cpp.

Referenced by CloseSession(), and OpenSession().

◆ GetSessionBySessionId()

cCiSession * cLlCiHandler::GetSessionBySessionId ( int  SessionId)
private

Definition at line 1606 of file dvbci.cpp.

Referenced by CloseSession(), and Process().

◆ GetSessionByResourceId()

cCiSession * cLlCiHandler::GetSessionByResourceId ( int  ResourceId,
int  Slot 
)
private

◆ CreateSession()

cCiSession * cLlCiHandler::CreateSession ( int  ResourceId)
private

Definition at line 1624 of file dvbci.cpp.

Referenced by OpenSession().

◆ OpenSession()

bool cLlCiHandler::OpenSession ( int  Length,
const uint8_t *  Data 
)
private

Definition at line 1644 of file dvbci.cpp.

Referenced by Process().

◆ CloseSession()

bool cLlCiHandler::CloseSession ( int  SessionId)
private

Definition at line 1674 of file dvbci.cpp.

Referenced by CloseAllSessions(), and Process().

◆ CloseAllSessions()

int cLlCiHandler::CloseAllSessions ( int  Slot)
private

Definition at line 1690 of file dvbci.cpp.

Referenced by Process(), and Reset().

◆ operator=()

cLlCiHandler& cLlCiHandler::operator= ( const cLlCiHandler )
privatedelete

◆ NumSlots()

int cLlCiHandler::NumSlots ( void  )
inlineoverridevirtual

Implements cCiHandler.

Definition at line 184 of file dvbci.h.

Referenced by cLlCiHandler(), and SetTimeOffset().

◆ Process()

bool cLlCiHandler::Process ( void  )
overridevirtual

Implements cCiHandler.

Definition at line 1702 of file dvbci.cpp.

◆ HasUserIO()

bool cLlCiHandler::HasUserIO ( void  )
inlineoverridevirtual

Implements cCiHandler.

Definition at line 187 of file dvbci.h.

◆ NeedCaPmt()

bool cLlCiHandler::NeedCaPmt ( void  )
inlineoverridevirtual

Implements cCiHandler.

Definition at line 189 of file dvbci.h.

◆ EnterMenu()

bool cLlCiHandler::EnterMenu ( int  Slot)
overridevirtual

Implements cCiHandler.

Definition at line 1790 of file dvbci.cpp.

◆ GetMenu()

cCiMenu * cLlCiHandler::GetMenu ( void  )
overridevirtual

Implements cCiHandler.

Definition at line 1797 of file dvbci.cpp.

◆ GetEnquiry()

cCiEnquiry * cLlCiHandler::GetEnquiry ( void  )
overridevirtual

Implements cCiHandler.

Definition at line 1808 of file dvbci.cpp.

◆ SetCaPmt() [1/2]

bool cLlCiHandler::SetCaPmt ( cCiCaPmt CaPmt)

◆ GetCaSystemIds()

const unsigned short * cLlCiHandler::GetCaSystemIds ( int  Slot)
overridevirtual

Implements cCiHandler.

Definition at line 1819 of file dvbci.cpp.

◆ SetCaPmt() [2/2]

bool cLlCiHandler::SetCaPmt ( cCiCaPmt CaPmt,
int  Slot 
)
overridevirtual

Implements cCiHandler.

Definition at line 1826 of file dvbci.cpp.

◆ SetTimeOffset()

void cLlCiHandler::SetTimeOffset ( double  offset_in_seconds)
overridevirtual

Reimplemented from cCiHandler.

Definition at line 1833 of file dvbci.cpp.

◆ Reset()

bool cLlCiHandler::Reset ( int  Slot)

Definition at line 1846 of file dvbci.cpp.

◆ connected()

bool cLlCiHandler::connected ( )
static

Definition at line 1853 of file dvbci.cpp.

Friends And Related Function Documentation

◆ cCiHandler

friend class cCiHandler
friend

Definition at line 160 of file dvbci.h.

Member Data Documentation

◆ m_mutex

cMutex cLlCiHandler::m_mutex
private

◆ m_fdCa

int cLlCiHandler::m_fdCa
private

Definition at line 163 of file dvbci.h.

Referenced by cLlCiHandler(), and ~cLlCiHandler().

◆ m_numSlots

int cLlCiHandler::m_numSlots
private

Definition at line 164 of file dvbci.h.

Referenced by cLlCiHandler(), GetEnquiry(), GetMenu(), NumSlots(), and Process().

◆ m_newCaSupport

bool cLlCiHandler::m_newCaSupport {false}
private

Definition at line 165 of file dvbci.h.

Referenced by CreateSession(), and Process().

◆ m_hasUserIO

bool cLlCiHandler::m_hasUserIO {false}
private

Definition at line 166 of file dvbci.h.

Referenced by HasUserIO(), and Process().

◆ m_needCaPmt

bool cLlCiHandler::m_needCaPmt {false}
private

Definition at line 167 of file dvbci.h.

Referenced by NeedCaPmt(), and Process().

◆ m_sessions

cCiSession* cLlCiHandler::m_sessions[MAX_CI_SESSION] {}
private

◆ m_tpl

cCiTransportLayer* cLlCiHandler::m_tpl {nullptr}
private

Definition at line 169 of file dvbci.h.

Referenced by cLlCiHandler(), Process(), Reset(), and ~cLlCiHandler().

◆ m_tc

cCiTransportConnection* cLlCiHandler::m_tc {nullptr}
private

Definition at line 170 of file dvbci.h.

Referenced by CreateSession(), Process(), and Send().


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