vdr-plugin-tvguide/recmenumanager.h

44 lines
1.3 KiB
C++

#ifndef __TVGUIDE_RECMENUMANAGER_H
#define __TVGUIDE_RECMENUMANAGER_H
#include "recmenu.h"
#include "recmanager.h"
#include "services/epgsearch.h"
// --- cRecMenuManager -------------------------------------------------------------
class cRecMenuManager {
private:
bool active;
cRecMenu *activeMenu;
cRecMenu *activeMenuBuffer;
const cEvent *event;
cRecManager *recManager;
cTVGuideTimerConflicts *timerConflicts;
std::vector<TVGuideEPGSearchTemplate> epgSearchTemplates;
bool instantRecord;
bool folderChoosen;
cString recFolderInstantTimer;
int templateID;
bool searchWithOptions;
cTimer *timer;
cString recFolderSeriesTimer;
cString searchString;
cDetailView *detailView;
cPixmap *pixmapBackground;
bool detailViewActive;
void SetBackground(void);
void DeleteBackground(void);
bool displayTimerConflict(cTimer *timer);
bool displayTimerConflict(int timerID);
bool createSearchTimer(std::string epgSearchString);
public:
cRecMenuManager(void);
virtual ~cRecMenuManager(void);
bool isActive(void) { return active; };
void Start(const cEvent *event);
void Close(void);
eOSState StateMachine(eRecMenuState nextState);
eOSState ProcessKey(eKeys Key);
};
#endif //__TVGUIDE_RECMENUMANAGER_H