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>
|
2014-01-10 12:44:01 +01:00
|
|
|
#include "services/epgsearch.h"
|
2013-12-07 15:51:50 +01:00
|
|
|
#include "detailview.h"
|
|
|
|
#include "recmenu.h"
|
2014-01-10 12:44:01 +01:00
|
|
|
#include "searchtimer.h"
|
|
|
|
#include "switchtimer.h"
|
2013-12-29 18:13:45 +01:00
|
|
|
#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:
|
2014-01-10 12:44:01 +01:00
|
|
|
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);
|
2014-01-10 12:44:01 +01:00
|
|
|
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);
|
2013-12-24 11:30:47 +01:00
|
|
|
void SetTimerPath(cTimer *timer, const cEvent *event, std::string path);
|
2020-08-04 15:08:37 +02:00
|
|
|
void OnOffTimer(const cEvent *event);
|
2019-03-30 18:06:47 +01:00
|
|
|
void DeleteTimer(const cTimer *timer);
|
2013-07-20 13:46:26 +02:00
|
|
|
void DeleteTimer(const cEvent *event);
|
|
|
|
void DeleteLocalTimer(const cEvent *event);
|
|
|
|
void DeleteRemoteTimer(const cEvent *event);
|
2020-08-04 15:08:37 +02:00
|
|
|
void SaveTimer(const cTimer *timer, cTimer *newTimerSettings = NULL);
|
2013-07-09 00:17:42 +02:00
|
|
|
bool IsRecorded(const cEvent *event);
|
2013-12-29 18:13:45 +01:00
|
|
|
cTVGuideTimerConflicts *CheckTimerConflict(void);
|
2014-01-10 12:44:01 +01:00
|
|
|
void CreateSeriesTimer(cTimer *seriesTimer);
|
2013-07-09 00:17:42 +02:00
|
|
|
const cEvent **PerformSearchTimerSearch(std::string epgSearchString, int &numResults);
|
2014-01-10 12:44:01 +01:00
|
|
|
const cEvent **PerformSearch(Epgsearch_searchresults_v1_0 data, int &numResults);
|
|
|
|
void ReadEPGSearchTemplates(std::vector<TVGuideEPGSearchTemplate> *epgTemplates);
|
|
|
|
void GetSearchTimers(std::vector<cTVGuideSearchTimer> *timers);
|
2019-06-16 13:45:47 +02:00
|
|
|
void GetSearchExtCats(std::vector<std::string> *searchExtCats);
|
2019-04-09 18:25:58 +02:00
|
|
|
void GetChannelGroups(std::vector<std::string> *channelGroups);
|
2019-06-16 13:45:47 +02:00
|
|
|
void GetBlacklists(std::vector<std::string> *blacklists);
|
2013-07-09 00:17:42 +02:00
|
|
|
int CreateSearchTimer(std::string epgSearchString);
|
2014-01-10 12:44:01 +01:00
|
|
|
bool SaveSearchTimer(cTVGuideSearchTimer *searchTimer);
|
|
|
|
void DeleteSearchTimer(cTVGuideSearchTimer *searchTimer, bool delTimers);
|
2013-07-09 00:17:42 +02:00
|
|
|
void UpdateSearchTimers(void);
|
2014-01-10 12:44:01 +01:00
|
|
|
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);
|
2013-12-29 18:13:45 +01:00
|
|
|
const cEvent **LoadReruns(const cEvent *event, int &numResults);
|
2014-01-14 18:00:32 +01:00
|
|
|
void GetFavorites(std::vector<cTVGuideSearchTimer> *favorites);
|
2014-01-19 13:52:05 +01:00
|
|
|
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
|