MythTV
master
mythplugins
mythnews
mythnews
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
#include <QRecursiveMutex>
7
8
// MythTV headers
9
#include <
libmythui/mythscreentype.h
>
10
11
class
MythNewsConfigPriv
;
12
class
MythUIButtonList
;
13
class
MythUIButtonListItem
;
14
class
MythUIText
;
15
16
class
MythNewsConfig
:
public
MythScreenType
17
{
18
Q_OBJECT
19
20
public
:
21
MythNewsConfig
(
MythScreenStack
*parent,
22
const
QString &name);
23
~MythNewsConfig
()
override
;
24
25
bool
Create
(
void
)
override
;
// MythScreenType
26
bool
keyPressEvent
(QKeyEvent *event)
override
;
// MythScreenType
27
28
private
:
29
void
loadData
(
void
);
30
void
populateSites
(
void
);
31
32
mutable
QRecursiveMutex
m_lock
;
33
MythNewsConfigPriv
*
m_priv
{
nullptr
};
34
35
MythUIButtonList
*
m_categoriesList
{
nullptr
};
36
MythUIButtonList
*
m_siteList
{
nullptr
};
37
38
MythUIText
*
m_helpText
{
nullptr
};
39
MythUIText
*
m_contextText
{
nullptr
};
40
int
m_updateFreq
{30};
41
42
private
slots:
43
void
slotCategoryChanged
(
MythUIButtonListItem
*item);
44
void
toggleItem
(
MythUIButtonListItem
*item);
45
};
46
47
#endif
/* MYTHNEWSCONFIG_H */
MythNewsConfig::loadData
void loadData(void)
Definition:
mythnewsconfig.cpp:150
MythNewsConfig::m_updateFreq
int m_updateFreq
Definition:
mythnewsconfig.h:40
MythScreenStack
Definition:
mythscreenstack.h:16
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:45
MythUIButtonListItem
Definition:
mythuibuttonlist.h:41
MythNewsConfigPriv
Definition:
mythnewsconfig.cpp:24
MythNewsConfig::m_helpText
MythUIText * m_helpText
Definition:
mythnewsconfig.h:38
MythNewsConfig::m_contextText
MythUIText * m_contextText
Definition:
mythnewsconfig.h:39
MythNewsConfig::m_lock
QRecursiveMutex m_lock
Definition:
mythnewsconfig.h:32
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:33
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:35
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:191
MythNewsConfig::m_siteList
MythUIButtonList * m_siteList
Definition:
mythnewsconfig.h:36
MythNewsConfig
Definition:
mythnewsconfig.h:16
MythNewsConfig::slotCategoryChanged
void slotCategoryChanged(MythUIButtonListItem *item)
Definition:
mythnewsconfig.cpp:195
mythscreentype.h
MythNewsConfig::populateSites
void populateSites(void)
Definition:
mythnewsconfig.cpp:46
Generated on Wed Mar 27 2024 03:19:43 for MythTV by
1.8.17