MythTV  master
mythnewsconfig.h
Go to the documentation of this file.
1 #ifndef MYTHNEWSCONFIG_H
2 #define MYTHNEWSCONFIG_H
3 
4 // Qt headers
5 #include <QtGlobal>
6 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
7 #include <QMutex>
8 #else
9 #include <QRecursiveMutex>
10 #endif
11 
12 // MythTV headers
13 #include <mythscreentype.h>
14 
15 class MythNewsConfigPriv;
16 class MythUIButtonList;
18 class MythUIText;
19 
21 {
22  Q_OBJECT
23 
24  public:
26  const QString &name);
27  ~MythNewsConfig() override;
28 
29  bool Create(void) override; // MythScreenType
30  bool keyPressEvent(QKeyEvent *event) override; // MythScreenType
31 
32  private:
33  void loadData(void);
34  void populateSites(void);
35 
36 #if QT_VERSION < QT_VERSION_CHECK(5,14,0)
37  mutable QMutex m_lock {QMutex::Recursive};
38 #else
39  mutable QRecursiveMutex m_lock;
40 #endif
42 
45 
46  MythUIText *m_helpText {nullptr};
48  int m_updateFreq {30};
49 
50  private slots:
52  void toggleItem(MythUIButtonListItem *item);
53 };
54 
55 #endif /* MYTHNEWSCONFIG_H */
MythNewsConfig::loadData
void loadData(void)
Definition: mythnewsconfig.cpp:150
MythNewsConfig::m_updateFreq
int m_updateFreq
Definition: mythnewsconfig.h:48
MythScreenStack
Definition: mythscreenstack.h:16
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
MythUIButtonListItem
Definition: mythuibuttonlist.h:27
MythNewsConfigPriv
Definition: mythnewsconfig.cpp:24
MythNewsConfig::m_helpText
MythUIText * m_helpText
Definition: mythnewsconfig.h:46
MythNewsConfig::m_contextText
MythUIText * m_contextText
Definition: mythnewsconfig.h:47
MythNewsConfig::m_lock
QRecursiveMutex m_lock
Definition: mythnewsconfig.h:39
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:30
MythNewsConfig::~MythNewsConfig
~MythNewsConfig() override
Definition: mythnewsconfig.cpp:41
MythNewsConfig::Create
bool Create(void) override
Definition: mythnewsconfig.cpp:115
MythNewsConfig::m_priv
MythNewsConfigPriv * m_priv
Definition: mythnewsconfig.h:41
MythNewsConfig::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition: mythnewsconfig.cpp:219
MythNewsConfig::toggleItem
void toggleItem(MythUIButtonListItem *item)
Definition: mythnewsconfig.cpp:164
MythNewsConfig::MythNewsConfig
MythNewsConfig(MythScreenStack *parent, const QString &name)
Definition: mythnewsconfig.cpp:33
MythNewsConfig::m_categoriesList
MythUIButtonList * m_categoriesList
Definition: mythnewsconfig.h:43
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:151
MythNewsConfig::m_siteList
MythUIButtonList * m_siteList
Definition: mythnewsconfig.h:44
MythNewsConfig
Definition: mythnewsconfig.h:20
MythNewsConfig::slotCategoryChanged
void slotCategoryChanged(MythUIButtonListItem *item)
Definition: mythnewsconfig.cpp:195
mythscreentype.h
MythNewsConfig::populateSites
void populateSites(void)
Definition: mythnewsconfig.cpp:46