MythTV master
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
19
20// mytharchive
21#include "archiveutil.h"
22
23class ProgramInfo;
24class MythUIText;
25class MythUIButton;
28
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
57
58 private:
59 void Init(void) override; // MythScreenType
60 void updateRecordingList(void);
61 void updateSelectedList(void);
62 void updateCategorySelector(void);
63 void getRecordingList(void);
64
65 QList<ArchiveItem *> *m_archiveList {nullptr};
66 std::vector<ProgramInfo *> *m_recordingList {nullptr};
67 QList<ProgramInfo *> m_selectedList;
68 QStringList m_categories;
69
80
82};
83
84#endif
Screen in which all other widgets are contained and rendered.
List widget, displays list items in a variety of themeable arrangements and can trigger signals when ...
A single button widget.
Definition: mythuibutton.h:22
Image widget, displays a single image or multiple images in sequence.
Definition: mythuiimage.h:98
All purpose text widget, displays a text string.
Definition: mythuitext.h:29
Holds information on recordings and videos.
Definition: programinfo.h:68
MythUIText * m_descriptionText
bool keyPressEvent(QKeyEvent *e) override
Key event handler.
void toggleSelected(MythUIButtonListItem *item)
QList< ProgramInfo * > m_selectedList
bool Create() override
void haveResult(bool ok)
void updateCategorySelector(void)
MythUIText * m_datetimeText
RecordingSelector(MythScreenStack *parent, QList< ArchiveItem * > *archiveList)
void titleChanged(MythUIButtonListItem *item)
void setCategory(MythUIButtonListItem *item)
MythUIImage * m_cutlistImage
MythUIButtonList * m_categorySelector
std::vector< ProgramInfo * > * m_recordingList
MythUIButton * m_cancelButton
~RecordingSelector(void) override
QStringList m_categories
QList< ArchiveItem * > * m_archiveList
void updateRecordingList(void)
MythUIImage * m_previewImage
MythUIButton * m_okButton
MythUIButtonList * m_recordingButtonList
void Init(void) override
Used after calling Load() to assign data to widgets and other UI initilisation which is prohibited in...
MythUIText * m_filesizeText
void ShowMenu(void) override
MythUIText * m_titleText