MythTV  master
teletextextractorreader.h
Go to the documentation of this file.
1 // -*- Mode: c++ -*-
2 
3 #ifndef TELETEXTEXTRACTORREADER_H
4 #define TELETEXTEXTRACTORREADER_H
5 
6 #include <QString>
7 #include <QMutex>
8 #include <QPair>
9 #include <QSet>
10 
11 #include "mythtvexp.h"
13 
14 QString decode_teletext(int codePage, const tt_line_array& data);
15 
17 {
18  public:
19  QSet<QPair<int, int> > GetUpdatedPages(void) const
20  {
21  return m_updatedPages;
22  }
23 
24  void ClearUpdatedPages(void)
25  {
26  m_updatedPages.clear();
27  }
28 
29  protected:
30  void PageUpdated(int page, int subpage) override; // TeletextReader
31  void HeaderUpdated(int page, int subpage, tt_line_array& page_ptr, int lang) override; // TeletextReader
32 
33  private:
34  QSet<QPair<int, int> > m_updatedPages;
35 };
36 
37 #endif // TELETEXTEXTRACTORREADER_H
38 
39 /* vim: set expandtab tabstop=4 shiftwidth=4: */
mythtvexp.h
teletextreader.h
TeletextReader::PageUpdated
virtual void PageUpdated(int page, int subpage)
Definition: teletextreader.cpp:508
TeletextExtractorReader::ClearUpdatedPages
void ClearUpdatedPages(void)
Definition: teletextextractorreader.h:24
TeletextReader
Definition: teletextreader.h:75
TeletextExtractorReader::GetUpdatedPages
QSet< QPair< int, int > > GetUpdatedPages(void) const
Definition: teletextextractorreader.h:19
TeletextReader::HeaderUpdated
virtual void HeaderUpdated(int page, int subpage, tt_line_array &page_ptr, int lang)
Definition: teletextreader.cpp:517
tt_line_array
std::array< uint8_t, 40 > tt_line_array
Definition: teletextreader.h:36
TeletextExtractorReader
Definition: teletextextractorreader.h:16
decode_teletext
QString decode_teletext(int codePage, const tt_line_array &data)
Get decoded ttx as a string.
Definition: teletextextractorreader.cpp:132
MTV_PUBLIC
#define MTV_PUBLIC
Definition: mythtvexp.h:15
TeletextExtractorReader::m_updatedPages
QSet< QPair< int, int > > m_updatedPages
Definition: teletextextractorreader.h:34