MythTV
master
mythtv
programs
mythfrontend
prevreclist.h
Go to the documentation of this file.
1
/*
2
* Copyright (c) 2017 Peter G Bennett <pbennett@mythtv.org>
3
*
4
* This file is part of MythTV.
5
*
6
* MythTV is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Public License as
8
* published by the Free Software Foundation; either
9
* version 2 of the License, or (at your option) any later version.
10
*
11
* MythTV is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
* GNU General Public License for more details.
15
*
16
* You should have received a copy of the GNU General Public License
17
* along with MythTV. If not, see <http://www.gnu.org/licenses/>.
18
*/
19
20
#ifndef PREVRECLIST_H_
21
#define PREVRECLIST_H_
22
23
// MythTV
24
#include "
libmythtv/programinfo.h
"
25
26
// mythfrontend
27
#include "
schedulecommon.h
"
28
29
class
MythMenu
;
30
31
class
PrevRecordedList
:
public
ScheduleCommon
32
{
33
Q_OBJECT
34
public
:
35
explicit
PrevRecordedList
(
MythScreenStack
*parent,
uint
recid = 0,
36
QString title = QString());
37
~PrevRecordedList
()
override
;
38
bool
Create
(
void
)
override
;
// MythScreenType
39
void
ShowMenu
(
void
)
override
;
// MythScreenType
40
bool
keyPressEvent
(QKeyEvent *e)
override
;
// MythScreenType
41
42
protected
:
43
void
customEvent
(QEvent *event)
override
;
// ScheduleCommon
44
45
protected
slots:
46
void
ShowItemMenu
(
void
);
47
void
updateInfo
(
void
);
48
void
showListLoseFocus
(
void
);
49
void
showListTakeFocus
(
void
);
50
void
DeleteOldEpisode
(
bool
ok);
51
void
AllowRecord
(
void
);
52
void
PreventRecord
(
void
);
53
void
DeleteOldSeries
(
bool
ok);
54
void
ShowDeleteOldSeriesMenu
(
void
);
55
void
ShowDeleteOldEpisodeMenu
(
void
);
56
57
protected
:
58
void
Init
(
void
)
override
;
// MythScreenType
59
void
Load
(
void
)
override
;
// MythScreenType
60
61
bool
LoadTitles
(
void
);
62
bool
LoadDates
(
void
);
63
void
UpdateTitleList
(
void
);
64
void
UpdateShowList
(
void
);
65
void
UpdateList
(
MythUIButtonList
*bnList,
66
ProgramList
*progData,
bool
isShows)
const
;
67
void
LoadShowsByTitle
(
void
);
68
void
LoadShowsByDate
(
void
);
69
70
ProgramInfo
*
GetCurrentProgram
(
void
)
const override
;
// ScheduleCommon
71
72
// Left hand list - titles or dates
73
ProgramList
m_titleData
;
74
MythUIButtonList
*
m_titleList
{
nullptr
};
75
// Right hand list - show details
76
ProgramList
m_showData
;
77
MythUIButtonList
*
m_showList
{
nullptr
};
78
// MythUIStateType *m_groupByState {nullptr};
79
80
MythUIText
*
m_curviewText
{
nullptr
};
81
MythUIText
*
m_help1Text
{
nullptr
};
82
MythUIText
*
m_help2Text
{
nullptr
};
83
84
InfoMap
m_infoMap
;
85
86
bool
m_titleGroup
{
true
};
87
bool
m_reverseSort
{
false
};
88
bool
m_allowEvents
{
true
};
89
uint
m_recid
{0};
90
QString
m_title
;
91
QString
m_where
;
92
bool
m_loadShows
{
false
};
93
};
94
95
#endif
AutoDeleteDeque< ProgramInfo * >
MythMenu
Definition:
mythdialogbox.h:98
MythScreenStack
Definition:
mythscreenstack.h:17
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:195
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:29
PrevRecordedList
Definition:
prevreclist.h:32
PrevRecordedList::Load
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
Definition:
prevreclist.cpp:150
PrevRecordedList::UpdateShowList
void UpdateShowList(void)
Definition:
prevreclist.cpp:285
PrevRecordedList::m_showList
MythUIButtonList * m_showList
Definition:
prevreclist.h:77
PrevRecordedList::customEvent
void customEvent(QEvent *event) override
Definition:
prevreclist.cpp:591
PrevRecordedList::LoadShowsByTitle
void LoadShowsByTitle(void)
Definition:
prevreclist.cpp:398
PrevRecordedList::UpdateList
void UpdateList(MythUIButtonList *bnList, ProgramList *progData, bool isShows) const
Definition:
prevreclist.cpp:290
PrevRecordedList::PreventRecord
void PreventRecord(void)
Definition:
prevreclist.cpp:684
PrevRecordedList::LoadTitles
bool LoadTitles(void)
Definition:
prevreclist.cpp:194
PrevRecordedList::~PrevRecordedList
~PrevRecordedList() override
Definition:
prevreclist.cpp:86
PrevRecordedList::updateInfo
void updateInfo(void)
Definition:
prevreclist.cpp:322
PrevRecordedList::m_titleGroup
bool m_titleGroup
Definition:
prevreclist.h:86
PrevRecordedList::m_loadShows
bool m_loadShows
Definition:
prevreclist.h:92
PrevRecordedList::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition:
prevreclist.cpp:132
PrevRecordedList::Create
bool Create(void) override
Definition:
prevreclist.cpp:103
PrevRecordedList::m_help2Text
MythUIText * m_help2Text
Definition:
prevreclist.h:82
PrevRecordedList::UpdateTitleList
void UpdateTitleList(void)
Definition:
prevreclist.cpp:280
PrevRecordedList::ShowDeleteOldSeriesMenu
void ShowDeleteOldSeriesMenu(void)
Definition:
prevreclist.cpp:745
PrevRecordedList::PrevRecordedList
PrevRecordedList(MythScreenStack *parent, uint recid=0, QString title=QString())
Definition:
prevreclist.cpp:56
PrevRecordedList::LoadDates
bool LoadDates(void)
Definition:
prevreclist.cpp:227
PrevRecordedList::GetCurrentProgram
ProgramInfo * GetCurrentProgram(void) const override
Definition:
prevreclist.cpp:699
PrevRecordedList::ShowDeleteOldEpisodeMenu
void ShowDeleteOldEpisodeMenu(void)
Definition:
prevreclist.cpp:707
PrevRecordedList::m_titleList
MythUIButtonList * m_titleList
Definition:
prevreclist.h:74
PrevRecordedList::showListTakeFocus
void showListTakeFocus(void)
Definition:
prevreclist.cpp:392
PrevRecordedList::m_allowEvents
bool m_allowEvents
Definition:
prevreclist.h:88
PrevRecordedList::m_curviewText
MythUIText * m_curviewText
Definition:
prevreclist.h:80
PrevRecordedList::showListLoseFocus
void showListLoseFocus(void)
Definition:
prevreclist.cpp:385
PrevRecordedList::AllowRecord
void AllowRecord(void)
Definition:
prevreclist.cpp:670
PrevRecordedList::ShowItemMenu
void ShowItemMenu(void)
Definition:
prevreclist.cpp:563
PrevRecordedList::m_recid
uint m_recid
Definition:
prevreclist.h:89
PrevRecordedList::m_infoMap
InfoMap m_infoMap
Definition:
prevreclist.h:84
PrevRecordedList::keyPressEvent
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
Definition:
prevreclist.cpp:454
PrevRecordedList::m_showData
ProgramList m_showData
Definition:
prevreclist.h:76
PrevRecordedList::m_title
QString m_title
Definition:
prevreclist.h:90
PrevRecordedList::DeleteOldSeries
void DeleteOldSeries(bool ok)
Definition:
prevreclist.cpp:757
PrevRecordedList::m_titleData
ProgramList m_titleData
Definition:
prevreclist.h:73
PrevRecordedList::m_help1Text
MythUIText * m_help1Text
Definition:
prevreclist.h:81
PrevRecordedList::LoadShowsByDate
void LoadShowsByDate(void)
Definition:
prevreclist.cpp:413
PrevRecordedList::m_where
QString m_where
Definition:
prevreclist.h:91
PrevRecordedList::m_reverseSort
bool m_reverseSort
Definition:
prevreclist.h:87
PrevRecordedList::ShowMenu
void ShowMenu(void) override
Definition:
prevreclist.cpp:530
PrevRecordedList::DeleteOldEpisode
void DeleteOldEpisode(bool ok)
Definition:
prevreclist.cpp:719
ProgramInfo
Holds information on recordings and videos.
Definition:
programinfo.h:74
ScheduleCommon
Definition:
schedulecommon.h:17
uint
unsigned int uint
Definition:
compat.h:60
InfoMap
QHash< QString, QString > InfoMap
Definition:
mythtypes.h:15
programinfo.h
schedulecommon.h
Generated on Sat Aug 1 2026 03:17:08 for MythTV by
1.9.4