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"
12 #include "teletextreader.h"
13 
14 QString decode_teletext(int codePage, const uint8_t data[40]);
15 
17 {
18  public:
19  QSet<QPair<int, int> > GetUpdatedPages(void) const
20  {
21  return m_updated_pages;
22  }
23 
24  void ClearUpdatedPages(void)
25  {
26  m_updated_pages.clear();
27  }
28 
29  protected:
30  void PageUpdated(int page, int subpage) override; // TeletextReader
31  void HeaderUpdated(int page, int subpage, uint8_t *page_ptr, int lang) override; // TeletextReader
32 
33  private:
34  QSet<QPair<int, int> > m_updated_pages;
35 };
36 
37 #endif // TELETEXTEXTRACTORREADER_H
38 
39 /* vim: set expandtab tabstop=4 shiftwidth=4: */
QSet< QPair< int, int > > m_updated_pages
QSet< QPair< int, int > > GetUpdatedPages(void) const
virtual void HeaderUpdated(int page, int subpage, uint8_t *page_ptr, int lang)
#define MTV_PUBLIC
Definition: mythtvexp.h:15
QString decode_teletext(int codePage, const uint8_t data[40])
Get decoded ttx as a string.
virtual void PageUpdated(int page, int subpage)