2013-12-29 18:13:45 +01:00
|
|
|
#ifndef __TVGUIDE_TIMERCONFLICT_H
|
|
|
|
#define __TVGUIDE_TIMERCONFLICT_H
|
|
|
|
|
|
|
|
class cTVGuideTimerConflict {
|
|
|
|
public:
|
2014-01-02 11:25:58 +01:00
|
|
|
cTVGuideTimerConflict(void);
|
|
|
|
virtual ~cTVGuideTimerConflict(void);
|
2013-12-29 18:13:45 +01:00
|
|
|
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);
|
|
|
|
};
|
|
|
|
|
|
|
|
class cTVGuideTimerConflicts {
|
|
|
|
private:
|
2014-01-02 11:25:58 +01:00
|
|
|
std::vector<cTVGuideTimerConflict*> conflicts;
|
|
|
|
int numConflicts;
|
|
|
|
int currentConflict;
|
2013-12-29 18:13:45 +01:00
|
|
|
public:
|
2014-01-02 11:25:58 +01:00
|
|
|
cTVGuideTimerConflicts(void);
|
|
|
|
virtual ~cTVGuideTimerConflicts(void);
|
|
|
|
void AddConflict(std::string epgSearchConflictLine);
|
|
|
|
void CalculateConflicts(void);
|
|
|
|
int NumConflicts(void) {return numConflicts; };
|
|
|
|
void SetCurrentConflict(int current) { currentConflict = current; };
|
|
|
|
cTVGuideTimerConflict *GetCurrentConflict(void);
|
|
|
|
int GetCurrentConflictTimerID(int timerIndex);
|
2013-12-29 18:13:45 +01:00
|
|
|
int GetCorrespondingConflict(int timerID);
|
|
|
|
cTVGuideTimerConflict *GetConflict(int conflictIndex);
|
2014-01-02 11:25:58 +01:00
|
|
|
std::vector<cTVGuideTimerConflict*> GetConflictsBetween(time_t start, time_t stop);
|
2013-12-29 18:13:45 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__TVGUIDE_RECMMANAGER_H
|