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);
22  ~MythNewsConfig() override;
23 
24  bool Create(void) override; // MythScreenType
25  bool keyPressEvent(QKeyEvent *event) 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::loadData
void loadData(void)
Definition: mythnewsconfig.cpp:150
MythNewsConfig::m_updateFreq
int m_updateFreq
Definition: mythnewsconfig.h:39
MythScreenStack
Definition: mythscreenstack.h:15
slots
unsigned int slots[4]
Definition: element.cpp:38
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:44
MythUIButtonListItem
Definition: mythuibuttonlist.h:27
MythNewsConfig::m_lock
QMutex m_lock
Definition: mythnewsconfig.h:31
MythNewsConfigPriv
Definition: mythnewsconfig.cpp:24
MythNewsConfig::m_helpText
MythUIText * m_helpText
Definition: mythnewsconfig.h:37
MythNewsConfig::m_contextText
MythUIText * m_contextText
Definition: mythnewsconfig.h:38
MythUIText
All purpose text widget, displays a text string.
Definition: mythuitext.h:28
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:32
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:34
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition: mythuibuttonlist.h:143
MythNewsConfig::m_siteList
MythUIButtonList * m_siteList
Definition: mythnewsconfig.h:35
MythNewsConfig
Definition: mythnewsconfig.h:15
MythNewsConfig::slotCategoryChanged
void slotCategoryChanged(MythUIButtonListItem *item)
Definition: mythnewsconfig.cpp:195
mythscreentype.h
MythNewsConfig::populateSites
void populateSites(void)
Definition: mythnewsconfig.cpp:46