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)
 
tt_line_array 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

virtual void PageUpdated (int page, int subpage)
 
virtual void HeaderUpdated (int page, int subpage, tt_line_array &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 page, int subpage, int direction) const
 
const TeletextPageFindPageInternal (int page, int direction) const
 

Protected Attributes

int m_curpage {0x100}
 
int m_cursubpage {-1}
 
bool m_curpageShowHeader {true}
 
bool m_curpageIsSubtitle {false}
 
std::array< int, 3 > m_pageinput {0}
 
bool m_transparent {false}
 
bool m_revealHidden {false}
 
tt_line_array m_header {0}
 
bool m_headerChanged {false}
 
bool m_pageChanged {false}
 
std::array< TeletextMagazine, 8 > m_magazines {}
 
std::array< uint8_t, 256 > m_bitswap {}
 
int m_fetchpage {0}
 
int m_fetchsubpage {0}
 

Detailed Description

Definition at line 75 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 261 of file teletextreader.cpp.

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

◆ KeyPress()

bool TeletextReader::KeyPress ( const QString &  key)

Definition at line 25 of file teletextreader.cpp.

Referenced by TeletextScreen::KeyPress().

◆ GetPage()

QString TeletextReader::GetPage ( void  )

Definition at line 188 of file teletextreader.cpp.

Referenced by TeletextScreen::DrawStatus().

◆ SetPage()

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

Definition at line 247 of file teletextreader.cpp.

Referenced by TeletextScreen::SetPage().

◆ SetSubPage()

void TeletextReader::SetSubPage ( int  subpage)
inline

Definition at line 86 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ PageChanged()

bool TeletextReader::PageChanged ( void  ) const
inline

Definition at line 87 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ SetPageChanged()

void TeletextReader::SetPageChanged ( bool  changed)
inline

Definition at line 88 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ SetShowHeader()

void TeletextReader::SetShowHeader ( bool  show)
inline

Definition at line 89 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ SetHeaderChanged()

void TeletextReader::SetHeaderChanged ( bool  changed)
inline

Definition at line 90 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ IsSubtitle()

bool TeletextReader::IsSubtitle ( void  ) const
inline

Definition at line 91 of file teletextreader.h.

Referenced by TeletextScreen::DrawLine().

◆ SetIsSubtitle()

void TeletextReader::SetIsSubtitle ( bool  sub)
inline

Definition at line 92 of file teletextreader.h.

Referenced by TeletextScreen::Pulse().

◆ IsTransparent()

bool TeletextReader::IsTransparent ( void  ) const
inline

Definition at line 93 of file teletextreader.h.

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

◆ RevealHidden()

bool TeletextReader::RevealHidden ( void  ) const
inline

Definition at line 94 of file teletextreader.h.

Referenced by TeletextScreen::DrawLine().

◆ GetPageInput()

int TeletextReader::GetPageInput ( uint  num) const
inline

Definition at line 95 of file teletextreader.h.

Referenced by TeletextScreen::DrawStatus().

◆ FindSubPage() [1/3]

TeletextSubPage* TeletextReader::FindSubPage ( void  )
inline

◆ GetHeader()

tt_line_array TeletextReader::GetHeader ( void  )
inline

Definition at line 98 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 294 of file teletextreader.cpp.

Referenced by TeletextDecoder::Decode().

◆ AddTeletextData()

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

Definition at line 392 of file teletextreader.cpp.

Referenced by TeletextDecoder::Decode().

◆ PageUpdated()

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

◆ HeaderUpdated()

void TeletextReader::HeaderUpdated ( int  page,
int  subpage,
tt_line_array 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 111 of file teletextreader.h.

◆ FindSubPage() [3/3]

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

Definition at line 114 of file teletextreader.h.

◆ FindPage() [1/2]

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

Definition at line 120 of file teletextreader.h.

Referenced by GetPage(), and KeyPress().

◆ FindPage() [2/2]

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

Definition at line 123 of file teletextreader.h.

◆ FindSubPageInternal()

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

Definition at line 569 of file teletextreader.cpp.

Referenced by FindSubPage().

◆ FindPageInternal()

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

Definition at line 525 of file teletextreader.cpp.

Referenced by FindPage().

Member Data Documentation

◆ m_curpage

int TeletextReader::m_curpage {0x100}
protected

Definition at line 129 of file teletextreader.h.

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

◆ m_cursubpage

int TeletextReader::m_cursubpage {-1}
protected

Definition at line 130 of file teletextreader.h.

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

◆ m_curpageShowHeader

bool TeletextReader::m_curpageShowHeader {true}
protected

Definition at line 131 of file teletextreader.h.

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

◆ m_curpageIsSubtitle

bool TeletextReader::m_curpageIsSubtitle {false}
protected

Definition at line 132 of file teletextreader.h.

Referenced by IsSubtitle(), and SetIsSubtitle().

◆ m_pageinput

std::array<int,3> TeletextReader::m_pageinput {0}
protected

Definition at line 133 of file teletextreader.h.

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

◆ m_transparent

bool TeletextReader::m_transparent {false}
protected

Definition at line 134 of file teletextreader.h.

Referenced by IsTransparent(), and KeyPress().

◆ m_revealHidden

bool TeletextReader::m_revealHidden {false}
protected

Definition at line 135 of file teletextreader.h.

Referenced by KeyPress(), and RevealHidden().

◆ m_header

tt_line_array TeletextReader::m_header {0}
protected

Definition at line 136 of file teletextreader.h.

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

◆ m_headerChanged

bool TeletextReader::m_headerChanged {false}
protected

Definition at line 137 of file teletextreader.h.

Referenced by HeaderUpdated(), and SetHeaderChanged().

◆ m_pageChanged

bool TeletextReader::m_pageChanged {false}
protected

Definition at line 138 of file teletextreader.h.

Referenced by PageChanged(), PageUpdated(), and SetPageChanged().

◆ m_magazines

std::array<TeletextMagazine,8> TeletextReader::m_magazines {}
protected

◆ m_bitswap

std::array<uint8_t,256> TeletextReader::m_bitswap {}
protected

Definition at line 140 of file teletextreader.h.

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

◆ m_fetchpage

int TeletextReader::m_fetchpage {0}
protected

Definition at line 141 of file teletextreader.h.

Referenced by AddPageHeader().

◆ m_fetchsubpage

int TeletextReader::m_fetchsubpage {0}
protected

Definition at line 142 of file teletextreader.h.

Referenced by AddPageHeader().


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