MythTV  master
mythscheduler.h
Go to the documentation of this file.
1 #ifndef MYTH_SCHEDULER_H
2 #define MYTH_SCHEDULER_H
3 
4 #include <deque>
5 
6 #include <QStringList>
7 #include <QMap>
8 
9 class ProgramInfo;
10 class RecordingInfo;
11 
12 using RecList = std::deque<RecordingInfo*>;
13 using RecConstIter = RecList::const_iterator;
14 using RecIter = RecList::iterator;
15 
18 {
19  public:
20  MythScheduler() = default;
21  virtual ~MythScheduler() = default;
22  // Returns a string list containing the a boolean
23  // value for whether there are conflicts, followed
24  // by the number of ProgramInfo's represented by
25  // the list, followed by ProgramInfo's serialized
26  // to string lists.
27  virtual void GetAllPending(QStringList &strList) const = 0;
28  // Returns all the pending recording with a RecStatus::Recording, RecStatus::Tuning
29  // or RecStatus::Failing status (i.e. currently attempting to record.)
30  virtual QMap<QString,ProgramInfo*> GetRecording(void) const = 0;
31 };
32 
33 #endif // MYTH_SCHEDULER_H
RecConstIter
RecList::const_iterator RecConstIter
Definition: mythscheduler.h:13
MythScheduler
This is an generic interface to a program scheduler.
Definition: mythscheduler.h:17
RecordingInfo
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:35
MythScheduler::GetAllPending
virtual void GetAllPending(QStringList &strList) const =0
MythScheduler::GetRecording
virtual QMap< QString, ProgramInfo * > GetRecording(void) const =0
RecIter
RecList::iterator RecIter
Definition: mythscheduler.h:14
MythScheduler::~MythScheduler
virtual ~MythScheduler()=default
ProgramInfo
Holds information on recordings and videos.
Definition: programinfo.h:67
RecList
std::deque< RecordingInfo * > RecList
Definition: mythscheduler.h:12
MythScheduler::MythScheduler
MythScheduler()=default