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() 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:480
title
QString title
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:636
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:89
MythScreenStack
Definition: mythscreenstack.h:16
ScheduleCommon::ShowGuide
virtual void ShowGuide(void) const
Show the program guide.
Definition: schedulecommon.cpp:132
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:33
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:274
ScheduleCommon::EditScheduled
virtual void EditScheduled(void)
Creates a dialog for editing the recording schedule.
Definition: schedulecommon.cpp:166
MythUIButtonListItem
Definition: mythuibuttonlist.h:28
ScheduleCommon::ShowPrevious
virtual void ShowPrevious(void) const
Show the previous recordings for this recording rule.
Definition: schedulecommon.cpp:248
ScheduleCommon::EditCustom
virtual void EditCustom(void)
Creates a dialog for creating a custom recording rule.
Definition: schedulecommon.cpp:202
ScheduleCommon::IsFindApplicable
static bool IsFindApplicable(const RecordingInfo &recInfo)
Returns true if a search should be employed to find a matching program.
Definition: schedulecommon.cpp:560
ScheduleCommon::GetCurrentProgram
virtual ProgramInfo * GetCurrentProgram(void) const
Definition: schedulecommon.h:30
ScheduleCommon
Definition: schedulecommon.h:16
uint
unsigned int uint
Definition: compat.h:140
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:68
ScheduleCommon::~ScheduleCommon
~ScheduleCommon() override=default
ScheduleCommon::ShowUpcoming
virtual void ShowUpcoming(void) const
Show the upcoming recordings for this title.
Definition: schedulecommon.cpp:73
ScheduleCommon::QuickRecord
virtual void QuickRecord(void)
Create a kSingleRecord or bring up recording dialog.
Definition: schedulecommon.cpp:147
ScheduleCommon::MakeOverride
static void MakeOverride(RecordingInfo *recinfo)
Creates a dialog for editing an override recording schedule.
Definition: schedulecommon.cpp:219
ScheduleCommon::ShowChannelSearch
virtual void ShowChannelSearch(void) const
Show the channel search.
Definition: schedulecommon.cpp:113
mythmainwindow.h
mythscreentype.h