MythTV master
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
25
26// mythfrontend
27#include "schedulecommon.h"
28
29class MythMenu;
30
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 bool keyPressEvent(QKeyEvent *e) override; // MythScreenType
40 void customEvent(QEvent *event) override; // ScheduleCommon
41
42 protected slots:
43 void ShowMenu(void) override; // MythScreenType
44 void ShowItemMenu(void);
45 void updateInfo(void);
46 void showListLoseFocus(void);
47 void showListTakeFocus(void);
48 void DeleteOldEpisode(bool ok);
49 void AllowRecord(void);
50 void PreventRecord(void);
51 void DeleteOldSeries(bool ok);
52 void ShowDeleteOldSeriesMenu(void);
53 void ShowDeleteOldEpisodeMenu(void);
54
55 protected:
56 void Init(void) override; // MythScreenType
57 void Load(void) override; // MythScreenType
58
59 bool LoadTitles(void);
60 bool LoadDates(void);
61 void UpdateTitleList(void);
62 void UpdateShowList(void);
63 void UpdateList(MythUIButtonList *bnList,
64 ProgramList *progData, bool isShows) const;
65 void LoadShowsByTitle(void);
66 void LoadShowsByDate(void);
67
68 ProgramInfo *GetCurrentProgram(void) const override; // ScheduleCommon
69
70 // Left hand list - titles or dates
73 // Right hand list - show details
76 // MythUIStateType *m_groupByState {nullptr};
77
81
83
84 bool m_titleGroup {true};
85 bool m_reverseSort {false};
86 bool m_allowEvents {true};
88 QString m_title;
89 QString m_where;
90 bool m_loadShows {false};
91};
92
93#endif
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
void Load(void) override
Load data which will ultimately be displayed on-screen or used to determine what appears on-screen (S...
void UpdateShowList(void)
MythUIButtonList * m_showList
Definition: prevreclist.h:75
void customEvent(QEvent *event) override
void LoadShowsByTitle(void)
void UpdateList(MythUIButtonList *bnList, ProgramList *progData, bool isShows) const
void PreventRecord(void)
bool LoadTitles(void)
~PrevRecordedList() override
Definition: prevreclist.cpp:86
void updateInfo(void)
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
bool Create(void) override
MythUIText * m_help2Text
Definition: prevreclist.h:80
void UpdateTitleList(void)
void ShowDeleteOldSeriesMenu(void)
PrevRecordedList(MythScreenStack *parent, uint recid=0, QString title=QString())
Definition: prevreclist.cpp:56
bool LoadDates(void)
ProgramInfo * GetCurrentProgram(void) const override
void ShowDeleteOldEpisodeMenu(void)
MythUIButtonList * m_titleList
Definition: prevreclist.h:72
void showListTakeFocus(void)
MythUIText * m_curviewText
Definition: prevreclist.h:78
void showListLoseFocus(void)
void AllowRecord(void)
void ShowItemMenu(void)
InfoMap m_infoMap
Definition: prevreclist.h:82
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
ProgramList m_showData
Definition: prevreclist.h:74
void DeleteOldSeries(bool ok)
ProgramList m_titleData
Definition: prevreclist.h:71
MythUIText * m_help1Text
Definition: prevreclist.h:79
void LoadShowsByDate(void)
void ShowMenu(void) override
void DeleteOldEpisode(bool ok)
Holds information on recordings and videos.
Definition: programinfo.h:68
unsigned int uint
Definition: freesurround.h:24
QHash< QString, QString > InfoMap
Definition: mythtypes.h:15