00001 #ifndef _MYTH_SCHEDULER_H_
00002 #define _MYTH_SCHEDULER_H_
00003
00004 #include <algorithm>
00005 #include <deque>
00006 using namespace std;
00007
00008 #include <QStringList>
00009 #include <QMap>
00010
00011 class ProgramInfo;
00012 class RecordingInfo;
00013
00014 typedef deque<RecordingInfo*> RecList;
00015 #define SORT_RECLIST(LIST, ORDER) \
00016 do { stable_sort((LIST).begin(), (LIST).end(), ORDER); } while (0)
00017
00018 typedef RecList::const_iterator RecConstIter;
00019 typedef RecList::iterator RecIter;
00020
00022 class MythScheduler
00023 {
00024 public:
00025 MythScheduler() {}
00026 virtual ~MythScheduler() {}
00027
00028
00029
00030
00031
00032 virtual void GetAllPending(QStringList &strList) const = 0;
00033
00034
00035 virtual QMap<QString,ProgramInfo*> GetRecording(void) const = 0;
00036 };
00037
00038 #endif