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
9class ProgramInfo;
10class RecordingInfo;
11
12using RecList = std::deque<RecordingInfo*>;
13using RecConstIter = RecList::const_iterator;
14using 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
This is an generic interface to a program scheduler.
Definition: mythscheduler.h:18
MythScheduler()=default
virtual QMap< QString, ProgramInfo * > GetRecording(void) const =0
virtual ~MythScheduler()=default
virtual void GetAllPending(QStringList &strList) const =0
Holds information on recordings and videos.
Definition: programinfo.h:68
Holds information on a TV Program one might wish to record.
Definition: recordinginfo.h:36
RecList::const_iterator RecConstIter
Definition: mythscheduler.h:13
RecList::iterator RecIter
Definition: mythscheduler.h:14
std::deque< RecordingInfo * > RecList
Definition: mythscheduler.h:12