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 <QMutex>
6 
7 // MythTV headers
8 #include <mythscreentype.h>
9 
10 class MythNewsConfigPriv;
11 class MythUIButtonList;
13 class MythUIText;
14 
16 {
17  Q_OBJECT
18 
19  public:
21  const QString &name);
23 
24  bool Create(void) override; // MythScreenType
25  bool keyPressEvent(QKeyEvent *) override; // MythScreenType
26 
27  private:
28  void loadData(void);
29  void populateSites(void);
30 
31  mutable QMutex m_lock {QMutex::Recursive};
33 
36 
37  MythUIText *m_helpText {nullptr};
39  int m_updateFreq {30};
40 
41  private slots:
43  void toggleItem(MythUIButtonListItem *item);
44 };
45 
46 #endif /* MYTHNEWSCONFIG_H */
MythNewsConfig(MythScreenStack *parent, const QString &name)
unsigned int slots[4]
Definition: element.c:38
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
MythUIButtonList * m_categoriesList
MythUIButtonList * m_siteList
MythNewsConfigPriv * m_priv
const char * name
Definition: ParseText.cpp:328
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
MythUIText * m_helpText
void populateSites(void)
void toggleItem(MythUIButtonListItem *item)
bool Create(void) override
Screen in which all other widgets are contained and rendered.
bool keyPressEvent(QKeyEvent *) override
Key event handler.
void loadData(void)
void slotCategoryChanged(MythUIButtonListItem *item)
MythUIText * m_contextText