2013-12-07 15:51:50 +01:00
|
|
|
#ifndef __TVGUIDE_RECMENUS_H
|
|
|
|
#define __TVGUIDE_RECMENUS_H
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
#define TEXTINPUTLENGTH 256
|
2013-12-07 15:51:50 +01:00
|
|
|
|
|
|
|
#include <vector>
|
2014-01-10 12:44:01 +01:00
|
|
|
#include <functional>
|
2013-12-07 15:51:50 +01:00
|
|
|
#include <vdr/epg.h>
|
2014-01-10 12:44:01 +01:00
|
|
|
#include "services/epgsearch.h"
|
|
|
|
#include "switchtimer.h"
|
2013-12-07 15:51:50 +01:00
|
|
|
#include "recmanager.h"
|
|
|
|
|
2019-06-17 14:55:37 +02:00
|
|
|
typedef enum {
|
|
|
|
searchTimerActionRecord = 0,
|
|
|
|
searchTimerActionAnnounceViaOSD,
|
|
|
|
searchTimerActionSwitchOnly,
|
|
|
|
searchTimerActionAnnounceAndSwitch,
|
|
|
|
searchTimerActionAnnounceViaMail,
|
|
|
|
searchTimerActionInactiveRecord
|
|
|
|
} searchTimerAction;
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
// --- cRecMenuMain ---------------------------------------------------------
|
|
|
|
class cRecMenuMain : public cRecMenu {
|
|
|
|
public:
|
|
|
|
cRecMenuMain(bool epgSearchAvailable, bool timerActive, bool switchTimerActive);
|
|
|
|
virtual ~cRecMenuMain(void) {};
|
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
/******************************************************************************************
|
|
|
|
* Instant Timer Menus
|
|
|
|
******************************************************************************************/
|
|
|
|
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
// --- cRecMenuAskFolder ---------------------------------------------------------
|
|
|
|
class cRecMenuAskFolder: public cRecMenu {
|
|
|
|
private:
|
2014-02-06 17:38:55 +01:00
|
|
|
std::vector<std::string> folders;
|
2013-12-07 15:51:50 +01:00
|
|
|
eRecMenuState NextAction;
|
|
|
|
public:
|
|
|
|
cRecMenuAskFolder(const cEvent *event, eRecMenuState nextAction);
|
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
virtual ~cRecMenuAskFolder(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string GetFolder(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuConfirmTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuConfirmTimer: public cRecMenu {
|
|
|
|
public:
|
|
|
|
cRecMenuConfirmTimer(const cEvent *event);
|
|
|
|
virtual ~cRecMenuConfirmTimer(void) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuConfirmDeleteTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuConfirmDeleteTimer: public cRecMenu {
|
|
|
|
public:
|
|
|
|
cRecMenuConfirmDeleteTimer(const cEvent *event);
|
|
|
|
virtual ~cRecMenuConfirmDeleteTimer(void) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuAskDeleteTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuAskDeleteTimer: public cRecMenu {
|
|
|
|
public:
|
|
|
|
cRecMenuAskDeleteTimer(const cEvent *event);
|
|
|
|
virtual ~cRecMenuAskDeleteTimer(void) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuTimerConflicts ---------------------------------------------------------
|
|
|
|
class cRecMenuTimerConflicts: public cRecMenu {
|
|
|
|
public:
|
2013-12-29 18:13:45 +01:00
|
|
|
cRecMenuTimerConflicts(cTVGuideTimerConflicts *conflicts);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuTimerConflicts(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
int GetTimerConflict(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuTimerConflict ---------------------------------------------------------
|
|
|
|
class cRecMenuTimerConflict: public cRecMenu {
|
|
|
|
private:
|
2013-12-29 18:13:45 +01:00
|
|
|
cTVGuideTimerConflict *conflict;
|
2013-12-07 15:51:50 +01:00
|
|
|
public:
|
2013-12-29 18:13:45 +01:00
|
|
|
cRecMenuTimerConflict(cTVGuideTimerConflict *conflict);
|
2013-12-07 15:51:50 +01:00
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
virtual ~cRecMenuTimerConflict(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
int GetTimerConflictIndex(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuNoTimerConflict ---------------------------------------------------------
|
|
|
|
class cRecMenuNoTimerConflict: public cRecMenu {
|
|
|
|
public:
|
|
|
|
cRecMenuNoTimerConflict(void);
|
|
|
|
virtual ~cRecMenuNoTimerConflict(void) {};
|
|
|
|
};
|
|
|
|
|
2013-12-29 18:13:45 +01:00
|
|
|
// --- cRecMenuRerunResults ---------------------------------------------------------
|
|
|
|
class cRecMenuRerunResults: public cRecMenu {
|
|
|
|
private:
|
|
|
|
const cEvent **reruns;
|
|
|
|
int numReruns;
|
|
|
|
public:
|
|
|
|
cRecMenuRerunResults(const cEvent *original, const cEvent **reruns, int numReruns);
|
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
virtual ~cRecMenuRerunResults(void) {
|
|
|
|
delete[] reruns;
|
|
|
|
};
|
2014-01-10 12:44:01 +01:00
|
|
|
const cEvent *GetRerunEvent(void);
|
2013-12-29 18:13:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuNoRerunsFound ---------------------------------------------------------
|
|
|
|
class cRecMenuNoRerunsFound: public cRecMenu {
|
|
|
|
public:
|
|
|
|
cRecMenuNoRerunsFound(cString searchString);
|
|
|
|
virtual ~cRecMenuNoRerunsFound(void) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuConfirmRerunUsed ---------------------------------------------------------
|
|
|
|
class cRecMenuConfirmRerunUsed: public cRecMenu {
|
|
|
|
public:
|
|
|
|
cRecMenuConfirmRerunUsed(const cEvent *original, const cEvent *replace);
|
|
|
|
virtual ~cRecMenuConfirmRerunUsed(void) {};
|
|
|
|
};
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
// --- cRecMenuEditTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuEditTimer: public cRecMenu {
|
2014-01-10 12:44:01 +01:00
|
|
|
private:
|
2018-03-08 13:02:38 +01:00
|
|
|
const cTimer *originalTimer;
|
2014-01-10 12:44:01 +01:00
|
|
|
bool timerActive;
|
|
|
|
time_t day;
|
|
|
|
int start;
|
|
|
|
int stop;
|
|
|
|
int prio;
|
|
|
|
int lifetime;
|
2014-01-26 09:42:27 +01:00
|
|
|
char folder[TEXTINPUTLENGTH];
|
2014-01-10 12:44:01 +01:00
|
|
|
public:
|
2018-03-08 13:02:38 +01:00
|
|
|
cRecMenuEditTimer(const cTimer *timer, eRecMenuState nextState);
|
|
|
|
const cTimer *GetOriginalTimer(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuEditTimer(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
cTimer GetTimer(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
/******************************************************************************************
|
|
|
|
* Series Timer Menus
|
|
|
|
******************************************************************************************/
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
|
|
|
|
// --- cRecMenuSeriesTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuSeriesTimer: public cRecMenu {
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string folder;
|
|
|
|
bool timerActive;
|
|
|
|
int channel;
|
|
|
|
time_t tstart;
|
|
|
|
int start;
|
|
|
|
int stop;
|
|
|
|
int dayOfWeek;
|
|
|
|
int priority;
|
|
|
|
int lifetime;
|
|
|
|
void CalculateTimes(const cEvent *event);
|
|
|
|
public:
|
2018-03-08 13:02:38 +01:00
|
|
|
cRecMenuSeriesTimer(const cChannel *initialChannel, const cEvent *event, std::string folder);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuSeriesTimer(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
cTimer *GetTimer(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuConfirmSeriesTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuConfirmSeriesTimer: public cRecMenu {
|
|
|
|
public:
|
|
|
|
cRecMenuConfirmSeriesTimer(cTimer *seriesTimer);
|
|
|
|
virtual ~cRecMenuConfirmSeriesTimer(void) {};
|
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
/******************************************************************************************
|
|
|
|
* SearchTimer Menus
|
|
|
|
******************************************************************************************/
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
// --- cRecMenuSearchTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchTimer: public cRecMenu {
|
|
|
|
private:
|
2014-01-10 12:44:01 +01:00
|
|
|
char searchString[TEXTINPUTLENGTH];
|
2013-12-07 15:51:50 +01:00
|
|
|
public:
|
|
|
|
cRecMenuSearchTimer(const cEvent *event);
|
|
|
|
virtual ~cRecMenuSearchTimer(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string GetSearchString(void) { return searchString; };
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchTimerTemplates ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchTimerTemplates: public cRecMenu {
|
|
|
|
private:
|
|
|
|
int numTemplates;
|
2014-01-10 12:44:01 +01:00
|
|
|
cTVGuideSearchTimer searchTimer;
|
2013-12-07 15:51:50 +01:00
|
|
|
std::vector<TVGuideEPGSearchTemplate> templates;
|
|
|
|
public:
|
2014-01-10 12:44:01 +01:00
|
|
|
cRecMenuSearchTimerTemplates(cTVGuideSearchTimer searchTimer, std::vector<TVGuideEPGSearchTemplate> templates);
|
2013-12-07 15:51:50 +01:00
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
virtual ~cRecMenuSearchTimerTemplates(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
cTVGuideSearchTimer GetSearchTimer(void) { return searchTimer; };
|
|
|
|
TVGuideEPGSearchTemplate GetTemplate(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
|
|
|
|
// --- cRecMenuSearchTimers ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchTimers: public cRecMenu {
|
2013-12-07 15:51:50 +01:00
|
|
|
private:
|
2014-01-10 12:44:01 +01:00
|
|
|
int numSearchTimers;
|
|
|
|
std::vector<cTVGuideSearchTimer> searchTimers;
|
|
|
|
void SetMenuItems(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
public:
|
2014-01-10 12:44:01 +01:00
|
|
|
cRecMenuSearchTimers(std::vector<cTVGuideSearchTimer> searchTimers);
|
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
cTVGuideSearchTimer GetSearchTimer(void);
|
|
|
|
virtual ~cRecMenuSearchTimers(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
// --- cRecMenuSearchTimerEdit ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchTimerEdit: public cRecMenu {
|
2013-12-07 15:51:50 +01:00
|
|
|
private:
|
2014-01-10 12:44:01 +01:00
|
|
|
cTVGuideSearchTimer searchTimer;
|
2019-06-17 12:25:12 +02:00
|
|
|
cTVGuideSearchTimer sT;
|
|
|
|
std::vector<std::string> searchModes;
|
|
|
|
std::vector<std::string> useChannelModes;
|
2019-04-09 18:25:58 +02:00
|
|
|
std::vector<std::string> channelGroups;
|
2019-06-17 12:25:12 +02:00
|
|
|
std::vector<std::string> compareDateModes;
|
|
|
|
std::vector<std::string> searchTimerModes;
|
|
|
|
std::vector<std::string> delModes;
|
|
|
|
std::vector<std::string> channelgroups;
|
2014-01-10 12:44:01 +01:00
|
|
|
std::vector<cRecMenuItem*> mainMenuItems;
|
2019-06-17 13:06:07 +02:00
|
|
|
bool init;
|
2014-01-10 12:44:01 +01:00
|
|
|
int numMenuItems;
|
|
|
|
int useChannelPos;
|
|
|
|
int useTimePos;
|
|
|
|
int useDayOfWeekPos;
|
|
|
|
int avoidRepeatsPos;
|
|
|
|
char searchString[TEXTINPUTLENGTH];
|
|
|
|
bool timerActive;
|
|
|
|
int startChannel;
|
|
|
|
int stopChannel;
|
2019-04-09 18:25:58 +02:00
|
|
|
int channelgroupIndex;
|
2014-01-26 09:42:27 +01:00
|
|
|
char directory[TEXTINPUTLENGTH];
|
2019-04-09 18:25:58 +02:00
|
|
|
int SplitChannelGroups(std::vector<std::string> *channelGroups, std::vector<std::string> *channelgroups);
|
2014-01-10 12:44:01 +01:00
|
|
|
public:
|
2019-06-16 15:13:06 +02:00
|
|
|
cRecMenuSearchTimerEdit(cTVGuideSearchTimer searchTimer, std::vector<std::string> channelGroups);
|
2013-12-07 15:51:50 +01:00
|
|
|
void CreateMenuItems(void);
|
2014-01-10 12:44:01 +01:00
|
|
|
virtual ~cRecMenuSearchTimerEdit(void);
|
|
|
|
cTVGuideSearchTimer GetSearchTimer(void);
|
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchTimerDeleteConfirm ---------------------------------------------
|
|
|
|
class cRecMenuSearchTimerDeleteConfirm: public cRecMenu {
|
|
|
|
private:
|
|
|
|
cTVGuideSearchTimer searchTimer;
|
|
|
|
public:
|
|
|
|
cRecMenuSearchTimerDeleteConfirm(cTVGuideSearchTimer searchTimer);
|
|
|
|
virtual ~cRecMenuSearchTimerDeleteConfirm(void);
|
|
|
|
cTVGuideSearchTimer GetSearchTimer(void);
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchTimerCreateConfirm ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchTimerCreateConfirm: public cRecMenu {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cRecMenuSearchTimerCreateConfirm(bool success);
|
|
|
|
virtual ~cRecMenuSearchTimerCreateConfirm(void) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchTimerTemplatesCreate ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchTimerTemplatesCreate: public cRecMenu {
|
|
|
|
private:
|
|
|
|
TVGuideEPGSearchTemplate templ;
|
|
|
|
cTVGuideSearchTimer searchTimer;
|
|
|
|
public:
|
|
|
|
cRecMenuSearchTimerTemplatesCreate(TVGuideEPGSearchTemplate templ, cTVGuideSearchTimer searchTimer);
|
|
|
|
virtual ~cRecMenuSearchTimerTemplatesCreate(void) {};
|
|
|
|
cTVGuideSearchTimer GetSearchTimer(void) { return searchTimer; };
|
|
|
|
TVGuideEPGSearchTemplate GetTemplate(void) { return templ; };
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchTimerResults ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchTimerResults: public cRecMenu {
|
|
|
|
private:
|
|
|
|
const cEvent **searchResults;
|
|
|
|
int numResults;
|
2014-01-17 16:11:12 +01:00
|
|
|
eRecMenuState action2;
|
2013-12-07 15:51:50 +01:00
|
|
|
public:
|
2014-01-17 16:11:12 +01:00
|
|
|
cRecMenuSearchTimerResults(std::string searchString, const cEvent **searchResults, int numResults, std::string templateName = "", eRecMenuState action2 = rmsDisabled);
|
2013-12-07 15:51:50 +01:00
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
virtual ~cRecMenuSearchTimerResults(void) {
|
|
|
|
delete[] searchResults;
|
|
|
|
};
|
2014-01-10 12:44:01 +01:00
|
|
|
const cEvent *GetEvent(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchTimerNothingFound ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchTimerNothingFound: public cRecMenu {
|
|
|
|
public:
|
2014-01-10 12:44:01 +01:00
|
|
|
cRecMenuSearchTimerNothingFound(std::string searchString);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuSearchTimerNothingFound(void) {};
|
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
/******************************************************************************************
|
|
|
|
* SwitchTimer Menus
|
|
|
|
******************************************************************************************/
|
2013-12-07 15:51:50 +01:00
|
|
|
|
|
|
|
// --- cRecMenuSwitchTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuSwitchTimer: public cRecMenu {
|
|
|
|
private:
|
2014-01-10 12:44:01 +01:00
|
|
|
int switchMinsBefore;
|
2019-04-05 11:35:45 +02:00
|
|
|
int switchMode;
|
2013-12-07 15:51:50 +01:00
|
|
|
public:
|
|
|
|
cRecMenuSwitchTimer(void);
|
|
|
|
virtual ~cRecMenuSwitchTimer(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
cSwitchTimer GetSwitchTimer(void);
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSwitchTimerConfirm ---------------------------------------------------------
|
|
|
|
class cRecMenuSwitchTimerConfirm: public cRecMenu {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cRecMenuSwitchTimerConfirm(bool success);
|
|
|
|
virtual ~cRecMenuSwitchTimerConfirm(void) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSwitchTimerDelete ---------------------------------------------------------
|
|
|
|
class cRecMenuSwitchTimerDelete: public cRecMenu {
|
|
|
|
private:
|
|
|
|
public:
|
|
|
|
cRecMenuSwitchTimerDelete(void);
|
|
|
|
virtual ~cRecMenuSwitchTimerDelete(void) {};
|
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
/******************************************************************************************
|
|
|
|
* Search Menus
|
|
|
|
******************************************************************************************/
|
2013-12-07 15:51:50 +01:00
|
|
|
|
|
|
|
// --- cRecMenuSearch ---------------------------------------------------------
|
|
|
|
class cRecMenuSearch: public cRecMenu {
|
|
|
|
private:
|
2014-01-10 12:44:01 +01:00
|
|
|
char searchString[TEXTINPUTLENGTH];
|
|
|
|
int mode;
|
|
|
|
int channelNr;
|
|
|
|
bool useTitle;
|
|
|
|
bool useSubTitle;
|
|
|
|
bool useDescription;
|
|
|
|
public:
|
|
|
|
cRecMenuSearch(std::string searchString, bool withOptions);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuSearch(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
Epgsearch_searchresults_v1_0 GetEPGSearchStruct(void);
|
|
|
|
std::string GetSearchString(void) { return searchString; };
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchResults ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchResults: public cRecMenu {
|
|
|
|
private:
|
2014-01-12 16:27:59 +01:00
|
|
|
std::string searchString;
|
2013-12-07 15:51:50 +01:00
|
|
|
const cEvent **searchResults;
|
|
|
|
int numResults;
|
|
|
|
public:
|
2014-01-10 12:44:01 +01:00
|
|
|
cRecMenuSearchResults(std::string searchString, const cEvent **searchResults, int numResults);
|
2013-12-07 15:51:50 +01:00
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
virtual ~cRecMenuSearchResults(void) {
|
|
|
|
delete[] searchResults;
|
|
|
|
};
|
2014-01-10 12:44:01 +01:00
|
|
|
const cEvent *GetEvent(void);
|
2014-01-12 16:27:59 +01:00
|
|
|
std::string GetSearchString(void) { return searchString; };
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchConfirmTimer ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchConfirmTimer: public cRecMenu {
|
|
|
|
public:
|
2014-01-17 16:11:12 +01:00
|
|
|
cRecMenuSearchConfirmTimer(const cEvent *event, eRecMenuState nextAction);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuSearchConfirmTimer(void) {};
|
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuSearchNothingFound ---------------------------------------------------------
|
|
|
|
class cRecMenuSearchNothingFound: public cRecMenu {
|
|
|
|
public:
|
2014-01-12 16:27:59 +01:00
|
|
|
cRecMenuSearchNothingFound(std::string searchString, bool tooShort = false);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuSearchNothingFound(void) {};
|
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
/******************************************************************************************
|
|
|
|
* Recording Search Menus
|
|
|
|
******************************************************************************************/
|
|
|
|
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
// --- cRecMenuRecordingSearch ---------------------------------------------------------
|
|
|
|
class cRecMenuRecordingSearch: public cRecMenu {
|
|
|
|
private:
|
2014-01-10 12:44:01 +01:00
|
|
|
char searchString[TEXTINPUTLENGTH];
|
2013-12-07 15:51:50 +01:00
|
|
|
public:
|
2014-01-10 12:44:01 +01:00
|
|
|
cRecMenuRecordingSearch(std::string search);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuRecordingSearch(void) {};
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string GetSearchString(void) { return searchString; };
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuRecordingSearchResults ---------------------------------------------------------
|
|
|
|
class cRecMenuRecordingSearchResults: public cRecMenu {
|
|
|
|
private:
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string searchString;
|
2018-03-08 13:02:38 +01:00
|
|
|
const cRecording **searchResults;
|
2013-12-07 15:51:50 +01:00
|
|
|
int numResults;
|
|
|
|
public:
|
2018-03-08 13:02:38 +01:00
|
|
|
cRecMenuRecordingSearchResults(std::string searchString, const cRecording **searchResults, int numResults);
|
2013-12-07 15:51:50 +01:00
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
virtual ~cRecMenuRecordingSearchResults(void) {
|
|
|
|
delete[] searchResults;
|
|
|
|
};
|
2014-01-10 12:44:01 +01:00
|
|
|
std::string GetSearchString(void) { return searchString; };
|
2013-12-07 15:51:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
// --- cRecMenuRecordingSearchNotFound ---------------------------------------------------------
|
|
|
|
class cRecMenuRecordingSearchNotFound: public cRecMenu {
|
|
|
|
public:
|
2014-01-10 12:44:01 +01:00
|
|
|
cRecMenuRecordingSearchNotFound(std::string searchString);
|
2013-12-07 15:51:50 +01:00
|
|
|
virtual ~cRecMenuRecordingSearchNotFound(void) {};
|
|
|
|
};
|
|
|
|
|
2014-01-10 12:44:01 +01:00
|
|
|
/******************************************************************************************
|
|
|
|
* Timeline
|
|
|
|
******************************************************************************************/
|
|
|
|
|
2014-01-02 11:25:58 +01:00
|
|
|
// --- cRecMenuTimeline ---------------------------------------------------------
|
|
|
|
class cRecMenuTimeline: public cRecMenu {
|
|
|
|
private:
|
2018-03-08 13:02:38 +01:00
|
|
|
std::vector<const cTimer*> timersToday;
|
2014-01-02 11:25:58 +01:00
|
|
|
int numTimersToday;
|
|
|
|
time_t today;
|
|
|
|
time_t timeStart;
|
|
|
|
time_t timeStop;
|
|
|
|
cTVGuideTimerConflicts *timerConflicts;
|
|
|
|
std::vector<cTVGuideTimerConflict*> conflictsToday;
|
|
|
|
cRecMenuItemTimelineHeader *header;
|
|
|
|
void SetStartStop(void);
|
|
|
|
void GetTimersForDay(void);
|
|
|
|
void SetTimers(void);
|
|
|
|
void PrevDay(void);
|
|
|
|
void NextDay(void);
|
2014-01-10 12:44:01 +01:00
|
|
|
void ClearMenu(void);
|
2014-01-02 11:25:58 +01:00
|
|
|
public:
|
|
|
|
cRecMenuTimeline(cTVGuideTimerConflicts *timerConflicts);
|
2019-03-30 18:06:47 +01:00
|
|
|
virtual ~cRecMenuTimeline(void) {};
|
2014-01-02 11:25:58 +01:00
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
eRecMenuState ProcessKey(eKeys Key);
|
2018-03-08 13:02:38 +01:00
|
|
|
const cTimer *GetTimer(void);
|
2014-01-02 11:25:58 +01:00
|
|
|
};
|
2013-12-07 15:51:50 +01:00
|
|
|
|
2014-01-14 18:00:32 +01:00
|
|
|
/******************************************************************************************
|
|
|
|
* Favorites
|
|
|
|
******************************************************************************************/
|
|
|
|
|
|
|
|
// --- cRecMenuFavorites ---------------------------------------------------------
|
|
|
|
class cRecMenuFavorites: public cRecMenu {
|
|
|
|
private:
|
|
|
|
std::vector<cTVGuideSearchTimer> favorites;
|
2014-01-19 13:52:05 +01:00
|
|
|
std::vector<cRecMenuItem*> myMenuItems;
|
2014-01-14 18:00:32 +01:00
|
|
|
int numFavorites;
|
2014-01-19 13:52:05 +01:00
|
|
|
void CreateFavoritesMenuItems(void);
|
|
|
|
std::string NiceTime(int favTime);
|
2014-01-14 18:00:32 +01:00
|
|
|
public:
|
|
|
|
cRecMenuFavorites(std::vector<cTVGuideSearchTimer> favorites);
|
|
|
|
cRecMenuItem *GetMenuItem(int number);
|
|
|
|
int GetTotalNumMenuItems(void);
|
|
|
|
cTVGuideSearchTimer GetFavorite(void);
|
|
|
|
virtual ~cRecMenuFavorites(void);
|
|
|
|
};
|
|
|
|
|
2019-03-30 18:06:47 +01:00
|
|
|
#endif //__TVGUIDE_RECMENUS_H
|