MythTV
master
programs
mythfrontend
idlescreen.h
Go to the documentation of this file.
1
#ifndef IDLESCREEN_H
2
#define IDLESCREEN_H
3
4
// MythTV
5
#include "
libmythbase/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
void
customEvent
(QEvent *e)
override
;
// MythUIType
23
24
25
public
slots:
26
void
UpdateStatus
(
void
);
27
void
UpdateScreen
(
void
);
28
bool
UpdateScheduledList
();
29
30
protected
:
31
void
Load
(
void
)
override
;
// MythScreenType
32
void
Init
(
void
)
override
;
// MythScreenType
33
34
private
:
35
bool
CheckConnectionToServer
(
void
);
36
bool
PendingSchedUpdate
()
const
{
return
m_pendingSchedUpdate
; }
37
void
SetPendingSchedUpdate
(
bool
newState) {
m_pendingSchedUpdate
= newState; }
38
39
QTimer *
m_updateScreenTimer
{
nullptr
};
40
41
MythUIStateType
*
m_statusState
{
nullptr
};
42
MythUIButtonList
*
m_currentRecordings
{
nullptr
};
43
MythUIButtonList
*
m_nextRecordings
{
nullptr
};
44
MythUIButtonList
*
m_conflictingRecordings
{
nullptr
};
45
MythUIText
*
m_conflictWarning
{
nullptr
};
46
47
std::chrono::seconds
m_secondsToShutdown
{-1s};
48
49
QMutex
m_schedUpdateMutex
;
50
bool
m_pendingSchedUpdate
{
false
};
51
ProgramList
m_scheduledList
;
52
bool
m_hasConflicts
{
false
};
53
};
54
55
#endif // IDLESCREEN_H
IdleScreen::UpdateScreen
void UpdateScreen(void)
Definition:
idlescreen.cpp:141
IdleScreen::m_hasConflicts
bool m_hasConflicts
Definition:
idlescreen.h:52
IdleScreen::SetPendingSchedUpdate
void SetPendingSchedUpdate(bool newState)
Definition:
idlescreen.h:37
IdleScreen::Create
bool Create(void) override
Definition:
idlescreen.cpp:43
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:70
IdleScreen::m_currentRecordings
MythUIButtonList * m_currentRecordings
Definition:
idlescreen.h:42
IdleScreen::m_pendingSchedUpdate
bool m_pendingSchedUpdate
Definition:
idlescreen.h:50
MythScreenStack
Definition:
mythscreenstack.h:16
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:45
IdleScreen::m_conflictWarning
MythUIText * m_conflictWarning
Definition:
idlescreen.h:45
IdleScreen::m_conflictingRecordings
MythUIButtonList * m_conflictingRecordings
Definition:
idlescreen.h:44
IdleScreen::m_updateScreenTimer
QTimer * m_updateScreenTimer
Definition:
idlescreen.h:39
IdleScreen
Definition:
idlescreen.h:12
IdleScreen::customEvent
void customEvent(QEvent *e) override
Definition:
idlescreen.cpp:245
programinfo.h
IdleScreen::keyPressEvent
bool keyPressEvent(QKeyEvent *event) override
Key event handler.
Definition:
idlescreen.cpp:240
IdleScreen::PendingSchedUpdate
bool PendingSchedUpdate() const
Definition:
idlescreen.h:36
IdleScreen::IdleScreen
IdleScreen(MythScreenStack *parent)
Definition:
idlescreen.cpp:22
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:75
IdleScreen::CheckConnectionToServer
bool CheckConnectionToServer(void)
Definition:
idlescreen.cpp:80
AutoDeleteDeque< ProgramInfo * >
IdleScreen::m_scheduledList
ProgramList m_scheduledList
Definition:
idlescreen.h:51
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:28
IdleScreen::m_statusState
MythUIStateType * m_statusState
Definition:
idlescreen.h:41
IdleScreen::UpdateScheduledList
bool UpdateScheduledList()
Definition:
idlescreen.cpp:216
IdleScreen::m_nextRecordings
MythUIButtonList * m_nextRecordings
Definition:
idlescreen.h:43
IdleScreen::~IdleScreen
~IdleScreen() override
Definition:
idlescreen.cpp:34
IdleScreen::UpdateStatus
void UpdateStatus(void)
Definition:
idlescreen.cpp:102
IdleScreen::m_schedUpdateMutex
QMutex m_schedUpdateMutex
Definition:
idlescreen.h:49
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:191
MythUIStateType
This widget is used for grouping other widgets for display when a particular named state is called....
Definition:
mythuistatetype.h:22
mythscreentype.h
IdleScreen::m_secondsToShutdown
std::chrono::seconds m_secondsToShutdown
Definition:
idlescreen.h:47
Generated on Mon Apr 22 2024 03:20:11 for MythTV by
1.8.17