MythTV  master
schedulecommon.h
Go to the documentation of this file.
1 #ifndef SCHEDULE_COMMON_H
2 #define SCHEDULE_COMMON_H
3 
4 // QT
5 #include <QObject>
6 #include <QEvent>
7 
8 // libmythui
9 #include "mythscreentype.h"
10 #include "mythmainwindow.h"
11 
12 class ProgramInfo;
13 class RecordingInfo;
14 
16 {
17  Q_OBJECT
18 
19  protected:
20  ScheduleCommon(MythScreenStack *parent, const QString &name)
21  : MythScreenType(parent, name) {};
22  ~ScheduleCommon() = default;
23 
24  void ShowUpcoming(const QString &title, const QString &seriesid) const;
25  void EditScheduled(ProgramInfo *pginfo);
26  void EditScheduled(RecordingInfo *recinfo);
27  void MakeOverride(RecordingInfo *recinfo);
28 
29  void customEvent(QEvent*) override; // MythUIType
30  virtual ProgramInfo *GetCurrentProgram(void) const { return nullptr; };
31 
32  public slots:
33  virtual void ShowDetails(void) const;
34 
35  protected slots:
36  virtual void EditRecording(bool may_watch_now = false);
37  virtual void QuickRecord(void);
38  virtual void ShowPrevious(void) const;
39  virtual void ShowPrevious(uint ruleid, const QString &title) const;
40  virtual void ShowUpcoming(void) const;
41  virtual void ShowUpcomingScheduled(void) const;
42  virtual void ShowChannelSearch(void) const;
43  virtual void ShowGuide(void) const;
44  virtual void EditScheduled(void);
45  virtual void EditCustom(void);
46 
47  private:
48  bool IsFindApplicable(const RecordingInfo &recInfo) const;
49 
50 };
51 
52 #endif
unsigned int slots[4]
Definition: element.c:38
virtual void ShowUpcomingScheduled(void) const
Show the upcoming recordings for this recording rule.
virtual void ShowUpcoming(void) const
Show the upcoming recordings for this title.
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:34
unsigned int uint
Definition: compat.h:140
virtual void ShowDetails(void) const
Show the Program Details screen.
~ScheduleCommon()=default
Holds information on recordings and videos.
Definition: programinfo.h:66
virtual void ShowGuide(void) const
Show the program guide.
virtual void ShowPrevious(void) const
Show the previous recordings for this recording rule.
const char * name
Definition: ParseText.cpp:328
virtual void EditCustom(void)
Creates a dialog for creating a custom recording rule.
void customEvent(QEvent *) override
virtual void ShowChannelSearch(void) const
Show the channel search.
virtual void QuickRecord(void)
Create a kSingleRecord or bring up recording dialog.
virtual void EditScheduled(void)
Creates a dialog for editing the recording schedule.
void MakeOverride(RecordingInfo *recinfo)
Creates a dialog for editing an override recording schedule.
Screen in which all other widgets are contained and rendered.
bool IsFindApplicable(const RecordingInfo &recInfo) const
Returns true if a search should be employed to find a matching program.
ScheduleCommon(MythScreenStack *parent, const QString &name)
virtual ProgramInfo * GetCurrentProgram(void) const
virtual void EditRecording(bool may_watch_now=false)
Creates a dialog for editing the recording status, blocking until user leaves dialog.