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 // MythTV
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() override = default;
23 
24  static void ShowUpcoming(const QString &title, const QString &seriesid) ;
25  static void EditScheduled(ProgramInfo *pginfo);
26  static void EditScheduled(RecordingInfo *recinfo);
27  static void MakeOverride(RecordingInfo *recinfo);
28 
29  void customEvent(QEvent *event) 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 EditRecording(MythUIButtonListItem* /*item*/);
38  virtual void QuickRecord(void);
39  virtual void ShowPrevious(void) const;
40  virtual void ShowPrevious(uint ruleid, const QString &title) const;
41  virtual void ShowUpcoming(void) const;
42  virtual void ShowUpcomingScheduled(void) const;
43  virtual void ShowChannelSearch(void) const;
44  virtual void ShowGuide(void) const;
45  virtual void EditScheduled(void);
46  virtual void EditCustom(void);
47 
48  private:
49  static bool IsFindApplicable(const RecordingInfo &recInfo) ;
50 
51 };
52 
53 #endif
ScheduleCommon::customEvent
void customEvent(QEvent *event) override
Definition: schedulecommon.cpp:483
RecordingInfo
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:35
ScheduleCommon::ScheduleCommon
ScheduleCommon(MythScreenStack *parent, const QString &name)
Definition: schedulecommon.h:20
ScheduleCommon::ShowUpcomingScheduled
virtual void ShowUpcomingScheduled(void) const
Show the upcoming recordings for this recording rule.
Definition: schedulecommon.cpp:88
MythScreenStack
Definition: mythscreenstack.h:16
ScheduleCommon::ShowGuide
virtual void ShowGuide(void) const
Show the program guide.
Definition: schedulecommon.cpp:134
MythScreenType
Screen in which all other widgets are contained and rendered.
Definition: mythscreentype.h:45
ScheduleCommon::ShowDetails
virtual void ShowDetails(void) const
Show the Program Details screen.
Definition: schedulecommon.cpp:27
ScheduleCommon::EditRecording
virtual void EditRecording(bool may_watch_now=false)
Creates a dialog for editing the recording status, blocking until user leaves dialog.
Definition: schedulecommon.cpp:276
ScheduleCommon::EditScheduled
virtual void EditScheduled(void)
Creates a dialog for editing the recording schedule.
Definition: schedulecommon.cpp:168
MythUIButtonListItem
Definition: mythuibuttonlist.h:41
ScheduleCommon::ShowPrevious
virtual void ShowPrevious(void) const
Show the previous recordings for this recording rule.
Definition: schedulecommon.cpp:250
ScheduleCommon::EditCustom
virtual void EditCustom(void)
Creates a dialog for creating a custom recording rule.
Definition: schedulecommon.cpp:204
ScheduleCommon::IsFindApplicable
static bool IsFindApplicable(const RecordingInfo &recInfo)
Returns true if a search should be employed to find a matching program.
Definition: schedulecommon.cpp:575
ScheduleCommon::GetCurrentProgram
virtual ProgramInfo * GetCurrentProgram(void) const
Definition: schedulecommon.h:30
ScheduleCommon
Definition: schedulecommon.h:15
uint
unsigned int uint
Definition: compat.h:81
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
ScheduleCommon::~ScheduleCommon
~ScheduleCommon() override=default
ScheduleCommon::ShowUpcoming
virtual void ShowUpcoming(void) const
Show the upcoming recordings for this title.
Definition: schedulecommon.cpp:69
ScheduleCommon::QuickRecord
virtual void QuickRecord(void)
Create a kSingleRecord or bring up recording dialog.
Definition: schedulecommon.cpp:149
ScheduleCommon::MakeOverride
static void MakeOverride(RecordingInfo *recinfo)
Creates a dialog for editing an override recording schedule.
Definition: schedulecommon.cpp:221
ScheduleCommon::ShowChannelSearch
virtual void ShowChannelSearch(void) const
Show the channel search.
Definition: schedulecommon.cpp:115
mythmainwindow.h
mythscreentype.h