vdr-plugin-tvguide/recmanager.h

65 lines
2.6 KiB
C
Raw Normal View History

2013-07-09 00:17:42 +02:00
#ifndef __TVGUIDE_RECMMANAGER_H
#define __TVGUIDE_RECMMANAGER_H
2013-12-07 15:51:50 +01:00
#include <string>
#include <vector>
#include <vdr/plugin.h>
#include "services/epgsearch.h"
2013-12-07 15:51:50 +01:00
#include "detailview.h"
#include "recmenu.h"
#include "searchtimer.h"
#include "switchtimer.h"
#include "timerconflict.h"
2013-07-09 00:17:42 +02:00
struct TVGuideEPGSearchTemplate {
public:
std::string name;
std::string templValue;
};
// --- cRecManager -------------------------------------------------------------
class cRecManager {
private:
cPlugin *epgSearchPlugin;
bool epgSearchAvailable;
public:
cRecManager(void);
2013-07-09 00:17:42 +02:00
void SetEPGSearchPlugin(void);
bool EpgSearchAvailable(void) {return epgSearchAvailable;};
2013-07-20 13:46:26 +02:00
bool RefreshRemoteTimers(void);
bool CheckEventForTimer(const cEvent *event);
2018-03-08 13:02:38 +01:00
const cTimer *GetTimerForEvent(const cEvent *event);
cTimer *createTimer(const cEvent *event, std::string path = "");
2013-07-20 13:46:26 +02:00
cTimer *createLocalTimer(const cEvent *event, std::string path);
cTimer *createRemoteTimer(const cEvent *event, std::string path);
void SetTimerPath(cTimer *timer, const cEvent *event, std::string path);
2019-03-30 18:06:47 +01:00
void DeleteTimer(const cTimer *timer);
2013-07-09 00:17:42 +02:00
void DeleteTimer(int timerID);
2013-07-20 13:46:26 +02:00
void DeleteTimer(const cEvent *event);
void DeleteLocalTimer(const cEvent *event);
void DeleteRemoteTimer(const cEvent *event);
2018-03-08 13:02:38 +01:00
void SaveTimer(const cTimer *timer, cTimer newTimerSettings);
2013-07-09 00:17:42 +02:00
bool IsRecorded(const cEvent *event);
cTVGuideTimerConflicts *CheckTimerConflict(void);
void CreateSeriesTimer(cTimer *seriesTimer);
2013-07-09 00:17:42 +02:00
const cEvent **PerformSearchTimerSearch(std::string epgSearchString, int &numResults);
const cEvent **PerformSearch(Epgsearch_searchresults_v1_0 data, int &numResults);
void ReadEPGSearchTemplates(std::vector<TVGuideEPGSearchTemplate> *epgTemplates);
void GetSearchTimers(std::vector<cTVGuideSearchTimer> *timers);
void GetChannelGroups(std::vector<std::string> *channelGroups);
2013-07-09 00:17:42 +02:00
int CreateSearchTimer(std::string epgSearchString);
bool SaveSearchTimer(cTVGuideSearchTimer *searchTimer);
void DeleteSearchTimer(cTVGuideSearchTimer *searchTimer, bool delTimers);
2013-07-09 00:17:42 +02:00
void UpdateSearchTimers(void);
bool CreateSwitchTimer(const cEvent *event, cSwitchTimer switchTimer);
2013-07-09 00:17:42 +02:00
void DeleteSwitchTimer(const cEvent *event);
2018-03-08 13:02:38 +01:00
const cRecording **SearchForRecordings(std::string searchString, int &numResults);
const cEvent **LoadReruns(const cEvent *event, int &numResults);
void GetFavorites(std::vector<cTVGuideSearchTimer> *favorites);
const cEvent **WhatsOnNow(bool nowOrNext, int &numResults);
const cEvent **UserDefinedTime(int userTime, int &numResults);
2013-07-09 00:17:42 +02:00
virtual ~cRecManager (void);
};
2018-04-01 15:53:09 +02:00
#endif //__TVGUIDE_RECMMANAGER_H