MythTV
master
mythtv
programs
mythfrontend
idlescreen.h
Go to the documentation of this file.
1
#ifndef IDLESCREEN_H
2
#define IDLESCREEN_H
3
4
// MythTV
5
#include "
libmythtv/programinfo.h
"
6
#include "
libmythui/mythscreentype.h
"
7
8
class
MythUIStateType
;
9
class
MythUIButtonList
;
10
class
QTimer;
11
12
class
IdleScreen
:
public
MythScreenType
13
{
14
Q_OBJECT
15
16
public
:
17
explicit
IdleScreen
(
MythScreenStack
*parent);
18
~IdleScreen
()
override
;
19
20
bool
Create
(
void
)
override
;
// MythScreenType
21
bool
keyPressEvent
(QKeyEvent *event)
override
;
// MythScreenType
22
23
public
slots:
24
void
UpdateStatus
(
void
);
25
void
UpdateScreen
(
void
);
26
bool
UpdateScheduledList
();
27
28
protected
:
29
void
Load
(
void
)
override
;
// MythScreenType
30
void
Init
(
void
)
override
;
// MythScreenType
31
void
customEvent
(QEvent *e)
override
;
// MythUIType
32
33
private
:
34
bool
CheckConnectionToServer
(
void
);
35
bool
PendingSchedUpdate
()
const
{
return
m_pendingSchedUpdate
; }
36
void
SetPendingSchedUpdate
(
bool
newState) {
m_pendingSchedUpdate
= newState; }
37
38
QTimer *
m_updateScreenTimer
{
nullptr
};
39
40
MythUIStateType
*
m_statusState
{
nullptr
};
41
MythUIButtonList
*
m_currentRecordings
{
nullptr
};
42
MythUIButtonList
*
m_nextRecordings
{
nullptr
};
43
MythUIButtonList
*
m_conflictingRecordings
{
nullptr
};
44
MythUIText
*
m_conflictWarning
{
nullptr
};
45
46
std::chrono::seconds
m_secondsToShutdown
{-1s};
47
48
QMutex
m_schedUpdateMutex
;
49
bool
m_pendingSchedUpdate
{
false
};
50
ProgramList
m_scheduledList
;
51
bool
m_hasConflicts
{
false
};
52
};
53
54
#endif
// IDLESCREEN_H
AutoDeleteDeque< ProgramInfo * >
IdleScreen
Definition:
idlescreen.h:13
IdleScreen::m_pendingSchedUpdate
bool m_pendingSchedUpdate
Definition:
idlescreen.h:49
IdleScreen::~IdleScreen
~IdleScreen() override
Definition:
idlescreen.cpp:35
IdleScreen::UpdateScheduledList
bool UpdateScheduledList()
Definition:
idlescreen.cpp:221
IdleScreen::Load
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition:
idlescreen.cpp:71
IdleScreen::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition:
idlescreen.cpp:76
IdleScreen::m_conflictWarning
MythUIText * m_conflictWarning
Definition:
idlescreen.h:44
IdleScreen::CheckConnectionToServer
bool CheckConnectionToServer(void)
Definition:
idlescreen.cpp:81
IdleScreen::UpdateScreen
void UpdateScreen(void)
Definition:
idlescreen.cpp:146
IdleScreen::m_secondsToShutdown
std::chrono::seconds m_secondsToShutdown
Definition:
idlescreen.h:46
IdleScreen::Create
bool Create(void) override
Definition:
idlescreen.cpp:44
IdleScreen::UpdateStatus
void UpdateStatus(void)
Definition:
idlescreen.cpp:105
IdleScreen::m_statusState
MythUIStateType * m_statusState
Definition:
idlescreen.h:40
IdleScreen::m_conflictingRecordings
MythUIButtonList * m_conflictingRecordings
Definition:
idlescreen.h:43
IdleScreen::IdleScreen
IdleScreen(MythScreenStack *parent)
Definition:
idlescreen.cpp:23
IdleScreen::m_hasConflicts
bool m_hasConflicts
Definition:
idlescreen.h:51
IdleScreen::customEvent
void customEvent(QEvent *e) override
Definition:
idlescreen.cpp:250
IdleScreen::SetPendingSchedUpdate
void SetPendingSchedUpdate(bool newState)
Definition:
idlescreen.h:36
IdleScreen::m_currentRecordings
MythUIButtonList * m_currentRecordings
Definition:
idlescreen.h:41
IdleScreen::m_updateScreenTimer
QTimer * m_updateScreenTimer
Definition:
idlescreen.h:38
IdleScreen::m_scheduledList
ProgramList m_scheduledList
Definition:
idlescreen.h:50
IdleScreen::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
idlescreen.cpp:245
IdleScreen::m_nextRecordings
MythUIButtonList * m_nextRecordings
Definition:
idlescreen.h:42
IdleScreen::m_schedUpdateMutex
QMutex m_schedUpdateMutex
Definition:
idlescreen.h:48
IdleScreen::PendingSchedUpdate
bool PendingSchedUpdate() const
Definition:
idlescreen.h:35
MythScreenStack
Definition:
mythscreenstack.h:17
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:46
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:195
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called.
Definition:
mythuistatetype.h:23
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:29
mythscreentype.h
programinfo.h
Generated on Tue Jul 28 2026 03:18:43 for MythTV by
1.9.4