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

#include <teletextreader.h>

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

Public Member Functions

 TeletextReader ()
 
virtual ~TeletextReader ()=default
 
void Reset (void)
 
bool KeyPress (const QString &key)
 
QString GetPage (void)
 
void SetPage (int page, int subpage)
 
void SetSubPage (int subpage)
 
bool PageChanged (void) const
 
void SetPageChanged (bool changed)
 
void SetShowHeader (bool show)
 
void SetHeaderChanged (bool changed)
 
bool IsSubtitle (void) const
 
void SetIsSubtitle (bool sub)
 
bool IsTransparent (void) const
 
bool RevealHidden (void) const
 
int GetPageInput (uint num) const
 
TeletextSubPageFindSubPage (void)
 
uint8_t * GetHeader (void)
 
void AddPageHeader (int page, int subpage, const uint8_t *buf, int vbimode, int lang, int flags)
 
void AddTeletextData (int magazine, int row, const uint8_t *buf, int vbimode)
 

Protected Member Functions

void NewsFlash (void)
 
virtual void PageUpdated (int page, int subpage)
 
virtual void HeaderUpdated (int page, int subpage, uint8_t *page_ptr, int lang)
 
const TeletextSubPageFindSubPage (int page, int subpage, int dir=0) const
 
TeletextSubPageFindSubPage (int page, int subpage, int dir=0)
 
const TeletextPageFindPage (int page, int dir=0) const
 
TeletextPageFindPage (int page, int dir=0)
 
const TeletextSubPageFindSubPageInternal (int, int, int) const
 
const TeletextPageFindPageInternal (int, int) const
 

Protected Attributes

int m_curpage {0x100}
 
int m_cursubpage {-1}
 
bool m_curpage_showheader {true}
 
bool m_curpage_issubtitle {false}
 
int m_pageinput [3]
 
bool m_transparent {false}
 
bool m_revealHidden {false}
 
uint8_t m_header [40]
 
bool m_header_changed {false}
 
bool m_page_changed {false}
 
TeletextMagazine m_magazines [8]
 
unsigned char m_bitswap [256]
 
int m_fetchpage {0}
 
int m_fetchsubpage {0}
 

Detailed Description

Definition at line 71 of file teletextreader.h.

Constructor & Destructor Documentation

◆ TeletextReader()

TeletextReader::TeletextReader ( )

Definition at line 13 of file teletextreader.cpp.

◆ ~TeletextReader()

virtual TeletextReader::~TeletextReader ( )
virtualdefault

Member Function Documentation

◆ Reset()

void TeletextReader::Reset ( void  )

Definition at line 262 of file teletextreader.cpp.

Referenced by TeletextScreen::Reset(), and TeletextReader().

◆ KeyPress()

bool TeletextReader::KeyPress ( const QString &  key)

Definition at line 27 of file teletextreader.cpp.

Referenced by TeletextScreen::KeyPress().

◆ GetPage()

QString TeletextReader::GetPage ( void  )

Definition at line 190 of file teletextreader.cpp.

Referenced by TeletextScreen::DrawStatus().

◆ SetPage()

void TeletextReader::SetPage ( int  page,
int  subpage 
)

Definition at line 248 of file teletextreader.cpp.

Referenced by TeletextScreen::SetPage().

◆ SetSubPage()

void TeletextReader::SetSubPage ( int  subpage)
inline

Definition at line 82 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ PageChanged()

bool TeletextReader::PageChanged ( void  ) const
inline

Definition at line 83 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ SetPageChanged()

void TeletextReader::SetPageChanged ( bool  changed)
inline

Definition at line 84 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ SetShowHeader()

void TeletextReader::SetShowHeader ( bool  show)
inline

Definition at line 85 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ SetHeaderChanged()

void TeletextReader::SetHeaderChanged ( bool  changed)
inline

Definition at line 86 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ IsSubtitle()

bool TeletextReader::IsSubtitle ( void  ) const
inline

Definition at line 87 of file teletextreader.h.

Referenced by TeletextScreen::DrawLine().

◆ SetIsSubtitle()

void TeletextReader::SetIsSubtitle ( bool  sub)
inline

Definition at line 88 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ IsTransparent()

bool TeletextReader::IsTransparent ( void  ) const
inline

Definition at line 89 of file teletextreader.h.

Referenced by TeletextScreen::DrawLine(), and TeletextScreen::DrawStatus().

◆ RevealHidden()

bool TeletextReader::RevealHidden ( void  ) const
inline

Definition at line 90 of file teletextreader.h.

Referenced by TeletextScreen::DrawLine().

◆ GetPageInput()

int TeletextReader::GetPageInput ( uint  num) const
inline

Definition at line 91 of file teletextreader.h.

Referenced by TeletextScreen::DrawStatus().

◆ FindSubPage() [1/3]

TeletextSubPage* TeletextReader::FindSubPage ( void  )
inline

◆ GetHeader()

uint8_t* TeletextReader::GetHeader ( void  )
inline

Definition at line 94 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ AddPageHeader()

void TeletextReader::AddPageHeader ( int  page,
int  subpage,
const uint8_t *  buf,
int  vbimode,
int  lang,
int  flags 
)

Definition at line 295 of file teletextreader.cpp.

◆ AddTeletextData()

void TeletextReader::AddTeletextData ( int  magazine,
int  row,
const uint8_t *  buf,
int  vbimode 
)

Definition at line 395 of file teletextreader.cpp.

◆ NewsFlash()

void TeletextReader::NewsFlash ( void  )
inlineprotected

Definition at line 103 of file teletextreader.h.

◆ PageUpdated()

void TeletextReader::PageUpdated ( int  page,
int  subpage 
)
protectedvirtual

◆ HeaderUpdated()

void TeletextReader::HeaderUpdated ( int  page,
int  subpage,
uint8_t *  page_ptr,
int  lang 
)
protectedvirtual

Reimplemented in TeletextExtractorReader.

Definition at line 511 of file teletextreader.cpp.

Referenced by AddPageHeader(), and TeletextExtractorReader::HeaderUpdated().

◆ FindSubPage() [2/3]

const TeletextSubPage* TeletextReader::FindSubPage ( int  page,
int  subpage,
int  dir = 0 
) const
inlineprotected

Definition at line 108 of file teletextreader.h.

◆ FindSubPage() [3/3]

TeletextSubPage* TeletextReader::FindSubPage ( int  page,
int  subpage,
int  dir = 0 
)
inlineprotected

Definition at line 111 of file teletextreader.h.

◆ FindPage() [1/2]

const TeletextPage* TeletextReader::FindPage ( int  page,
int  dir = 0 
) const
inlineprotected

Definition at line 117 of file teletextreader.h.

Referenced by GetPage(), and KeyPress().

◆ FindPage() [2/2]

TeletextPage* TeletextReader::FindPage ( int  page,
int  dir = 0 
)
inlineprotected

Definition at line 120 of file teletextreader.h.

◆ FindSubPageInternal()

const TeletextSubPage * TeletextReader::FindSubPageInternal ( int  page,
int  subpage,
int  direction 
) const
protected

Definition at line 571 of file teletextreader.cpp.

◆ FindPageInternal()

const TeletextPage * TeletextReader::FindPageInternal ( int  page,
int  direction 
) const
protected

Definition at line 527 of file teletextreader.cpp.

Member Data Documentation

◆ m_curpage

int TeletextReader::m_curpage {0x100}
protected

Definition at line 126 of file teletextreader.h.

Referenced by GetPage(), KeyPress(), PageUpdated(), Reset(), and SetPage().

◆ m_cursubpage

int TeletextReader::m_cursubpage {-1}
protected

Definition at line 127 of file teletextreader.h.

Referenced by GetPage(), KeyPress(), PageUpdated(), Reset(), and SetPage().

◆ m_curpage_showheader

bool TeletextReader::m_curpage_showheader {true}
protected

Definition at line 128 of file teletextreader.h.

Referenced by HeaderUpdated(), KeyPress(), and Reset().

◆ m_curpage_issubtitle

bool TeletextReader::m_curpage_issubtitle {false}
protected

Definition at line 129 of file teletextreader.h.

◆ m_pageinput

int TeletextReader::m_pageinput[3]
protected

Definition at line 130 of file teletextreader.h.

Referenced by KeyPress(), Reset(), SetPage(), and TeletextReader().

◆ m_transparent

bool TeletextReader::m_transparent {false}
protected

Definition at line 131 of file teletextreader.h.

Referenced by KeyPress().

◆ m_revealHidden

bool TeletextReader::m_revealHidden {false}
protected

Definition at line 132 of file teletextreader.h.

Referenced by KeyPress().

◆ m_header

uint8_t TeletextReader::m_header[40]
protected

Definition at line 133 of file teletextreader.h.

Referenced by AddPageHeader(), Reset(), and TeletextReader().

◆ m_header_changed

bool TeletextReader::m_header_changed {false}
protected

Definition at line 134 of file teletextreader.h.

Referenced by HeaderUpdated().

◆ m_page_changed

bool TeletextReader::m_page_changed {false}
protected

Definition at line 135 of file teletextreader.h.

Referenced by PageUpdated().

◆ m_magazines

TeletextMagazine TeletextReader::m_magazines[8]
protected

◆ m_bitswap

unsigned char TeletextReader::m_bitswap[256]
protected

Definition at line 137 of file teletextreader.h.

Referenced by AddPageHeader(), AddTeletextData(), and TeletextReader().

◆ m_fetchpage

int TeletextReader::m_fetchpage {0}
protected

Definition at line 138 of file teletextreader.h.

Referenced by AddPageHeader().

◆ m_fetchsubpage

int TeletextReader::m_fetchsubpage {0}
protected

Definition at line 139 of file teletextreader.h.

Referenced by AddPageHeader().


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