mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 13:01:48 +00:00
Version 0.0.6
This commit is contained in:
53
recmanager.h
Normal file
53
recmanager.h
Normal file
@@ -0,0 +1,53 @@
|
||||
#ifndef __TVGUIDE_RECMMANAGER_H
|
||||
#define __TVGUIDE_RECMMANAGER_H
|
||||
|
||||
class TVGuideTimerConflict {
|
||||
public:
|
||||
time_t time;
|
||||
time_t timeStart;
|
||||
time_t timeStop;
|
||||
time_t overlapStart;
|
||||
time_t overlapStop;
|
||||
int percentPossible;
|
||||
int timerID;
|
||||
std::vector<int> timerIDs;
|
||||
bool timerInvolved(int involvedID);
|
||||
};
|
||||
|
||||
struct TVGuideEPGSearchTemplate {
|
||||
public:
|
||||
std::string name;
|
||||
std::string templValue;
|
||||
};
|
||||
|
||||
// --- cRecManager -------------------------------------------------------------
|
||||
class cRecManager {
|
||||
private:
|
||||
cPlugin *epgSearchPlugin;
|
||||
bool epgSearchAvailable;
|
||||
void DeleteTimer(cTimer *timer);
|
||||
public:
|
||||
cRecManager (void);
|
||||
void SetEPGSearchPlugin(void);
|
||||
bool EpgSearchAvailable(void) {return epgSearchAvailable;};
|
||||
cTimer *createTimer(const cEvent *event);
|
||||
void DeleteTimer(const cEvent *event);
|
||||
void DeleteTimer(int timerID);
|
||||
void SaveTimer(cTimer *timer, cRecMenu *menu);
|
||||
bool IsRecorded(const cEvent *event);
|
||||
std::vector<TVGuideTimerConflict> CheckTimerConflict(void);
|
||||
cTimer *CreateSeriesTimer(cRecMenu *menu);
|
||||
std::string BuildEPGSearchString(cString searchString, cRecMenu *menu);
|
||||
std::string BuildEPGSearchString(cString searchString, std::string templValue);
|
||||
const cEvent **PerformSearchTimerSearch(std::string epgSearchString, int &numResults);
|
||||
const cEvent **PerformSearch(cRecMenu *menu, bool withOptions, int &numResults);
|
||||
std::vector<TVGuideEPGSearchTemplate> ReadEPGSearchTemplates(void);
|
||||
int CreateSearchTimer(std::string epgSearchString);
|
||||
void UpdateSearchTimers(void);
|
||||
bool CreateSwitchTimer(const cEvent *event, cRecMenu *menu);
|
||||
void DeleteSwitchTimer(const cEvent *event);
|
||||
cRecording **SearchForRecordings(cString searchString, int &numResults);
|
||||
virtual ~cRecManager (void);
|
||||
};
|
||||
|
||||
#endif //__TVGUIDE_RECMMANAGER_H
|
Reference in New Issue
Block a user