MythTV
master
mythplugins
mytharchive
mytharchive
recordingselector.h
Go to the documentation of this file.
1
/*
2
recordingselector.h
3
4
header for the recording selector interface screen
5
*/
6
7
#ifndef RECORDINGSELECTOR_H_
8
#define RECORDINGSELECTOR_H_
9
10
// c++
11
#include <vector>
12
13
// qt
14
#include <QList>
15
#include <QStringList>
16
17
// mythtv
18
#include <
libmythui/mythscreentype.h
>
19
20
// mytharchive
21
#include "
archiveutil.h
"
22
23
class
ProgramInfo
;
24
class
MythUIText
;
25
class
MythUIButton
;
26
class
MythUIButtonList
;
27
class
MythUIButtonListItem
;
28
29
class
RecordingSelector
:
public
MythScreenType
30
{
31
32
Q_OBJECT
33
34
public
:
35
RecordingSelector
(
MythScreenStack
*parent, QList<ArchiveItem *> *archiveList)
36
:
MythScreenType
(parent,
"RecordingSelector"
),
37
m_archiveList
(archiveList) {}
38
~RecordingSelector
(
void
)
override
;
39
40
bool
Create
()
override
;
// MythScreenType
41
bool
keyPressEvent
(QKeyEvent *e)
override
;
// MythScreenType
42
43
signals:
44
void
haveResult
(
bool
ok);
45
46
public
slots:
47
void
OKPressed
(
void
);
48
void
cancelPressed
(
void
);
49
50
void
ShowMenu
(
void
)
override
;
// MythScreenType
51
void
selectAll
(
void
);
52
void
clearAll
(
void
);
53
54
void
setCategory
(
MythUIButtonListItem
*item);
55
void
titleChanged
(
MythUIButtonListItem
*item);
56
void
toggleSelected
(
MythUIButtonListItem
*item);
57
58
protected
:
59
void
Init
(
void
)
override
;
// MythScreenType
60
61
private
:
62
void
updateRecordingList
(
void
);
63
void
updateSelectedList
(
void
);
64
void
updateCategorySelector
(
void
);
65
void
getRecordingList
(
void
);
66
67
QList<ArchiveItem *> *
m_archiveList
{
nullptr
};
68
std::vector<ProgramInfo *> *
m_recordingList
{
nullptr
};
69
QList<ProgramInfo *>
m_selectedList
;
70
QStringList
m_categories
;
71
72
MythUIButtonList
*
m_recordingButtonList
{
nullptr
};
73
MythUIButton
*
m_okButton
{
nullptr
};
74
MythUIButton
*
m_cancelButton
{
nullptr
};
75
MythUIButtonList
*
m_categorySelector
{
nullptr
};
76
MythUIText
*
m_titleText
{
nullptr
};
77
MythUIText
*
m_datetimeText
{
nullptr
};
78
MythUIText
*
m_filesizeText
{
nullptr
};
79
MythUIText
*
m_descriptionText
{
nullptr
};
80
MythUIImage
*
m_previewImage
{
nullptr
};
81
MythUIImage
*
m_cutlistImage
{
nullptr
};
82
83
friend
class
GetRecordingListThread
;
84
};
85
86
#endif
archiveutil.h
GetRecordingListThread
Definition:
recordingselector.cpp:34
MythScreenStack
Definition:
mythscreenstack.h:17
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition:
mythscreentype.h:46
MythUIButtonListItem
Definition:
mythuibuttonlist.h:43
MythUIButtonList
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
Definition:
mythuibuttonlist.h:195
MythUIButton
A single button widget.
Definition:
mythuibutton.h:22
MythUIImage
Image widget, displays a single image or multiple images in sequence.
Definition:
mythuiimage.h:98
MythUIText
All purpose text widget, displays a text string.
Definition:
mythuitext.h:29
ProgramInfo
Holds information on recordings and videos.
Definition:
programinfo.h:74
RecordingSelector
Definition:
recordingselector.h:30
RecordingSelector::m_descriptionText
MythUIText * m_descriptionText
Definition:
recordingselector.h:79
RecordingSelector::cancelPressed
void cancelPressed(void)
Definition:
recordingselector.cpp:360
RecordingSelector::updateSelectedList
void updateSelectedList(void)
Definition:
recordingselector.cpp:498
RecordingSelector::OKPressed
void OKPressed(void)
Definition:
recordingselector.cpp:287
RecordingSelector::keyPressEvent
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
Definition:
recordingselector.cpp:153
RecordingSelector::toggleSelected
void toggleSelected(MythUIButtonListItem *item)
Definition:
recordingselector.cpp:218
RecordingSelector::m_selectedList
QList< ProgramInfo * > m_selectedList
Definition:
recordingselector.h:69
RecordingSelector::Create
bool Create() override
Definition:
recordingselector.cpp:60
RecordingSelector::haveResult
void haveResult(bool ok)
RecordingSelector::updateCategorySelector
void updateCategorySelector(void)
Definition:
recordingselector.cpp:476
RecordingSelector::m_datetimeText
MythUIText * m_datetimeText
Definition:
recordingselector.h:77
RecordingSelector::RecordingSelector
RecordingSelector(MythScreenStack *parent, QList< ArchiveItem * > *archiveList)
Definition:
recordingselector.h:35
RecordingSelector::getRecordingList
void getRecordingList(void)
Definition:
recordingselector.cpp:450
RecordingSelector::titleChanged
void titleChanged(MythUIButtonListItem *item)
Definition:
recordingselector.cpp:237
RecordingSelector::selectAll
void selectAll(void)
Definition:
recordingselector.cpp:197
RecordingSelector::setCategory
void setCategory(MythUIButtonListItem *item)
Definition:
recordingselector.cpp:493
RecordingSelector::m_cutlistImage
MythUIImage * m_cutlistImage
Definition:
recordingselector.h:81
RecordingSelector::m_categorySelector
MythUIButtonList * m_categorySelector
Definition:
recordingselector.h:75
RecordingSelector::m_recordingList
std::vector< ProgramInfo * > * m_recordingList
Definition:
recordingselector.h:68
RecordingSelector::clearAll
void clearAll(void)
Definition:
recordingselector.cpp:209
RecordingSelector::m_cancelButton
MythUIButton * m_cancelButton
Definition:
recordingselector.h:74
RecordingSelector::~RecordingSelector
~RecordingSelector(void) override
Definition:
recordingselector.cpp:53
RecordingSelector::m_categories
QStringList m_categories
Definition:
recordingselector.h:70
RecordingSelector::m_archiveList
QList< ArchiveItem * > * m_archiveList
Definition:
recordingselector.h:67
RecordingSelector::updateRecordingList
void updateRecordingList(void)
Definition:
recordingselector.cpp:366
RecordingSelector::m_previewImage
MythUIImage * m_previewImage
Definition:
recordingselector.h:80
RecordingSelector::m_okButton
MythUIButton * m_okButton
Definition:
recordingselector.h:73
RecordingSelector::m_recordingButtonList
MythUIButtonList * m_recordingButtonList
Definition:
recordingselector.h:72
RecordingSelector::Init
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
Definition:
recordingselector.cpp:108
RecordingSelector::m_filesizeText
MythUIText * m_filesizeText
Definition:
recordingselector.h:78
RecordingSelector::ShowMenu
void ShowMenu(void) override
Definition:
recordingselector.cpp:182
RecordingSelector::m_titleText
MythUIText * m_titleText
Definition:
recordingselector.h:76
mythscreentype.h
Generated on Tue Jul 28 2026 03:18:31 for MythTV by
1.9.4