blob: 1ce7698c1cc045a8c2ae4708b5c17256b1ea8e67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
|
#ifndef VDR_LIVE_EPGSEARCH_H
#define VDR_LIVE_EPGSEARCH_H
#include <list>
#include <string>
#include <vdr/channels.h>
namespace vdrlive {
class SearchTimer;
bool operator<( SearchTimer const& left, SearchTimer const& right );
class SearchTimer
{
public:
enum UseChannel
{
NoChannel = 0,
Interval = 1,
Group = 2,
FTAOnly = 3
};
SearchTimer( std::string const& data );
int Id() const { return m_id; }
std::string const& Search() const { return m_search; }
bool UseTime() const { return m_useTime; }
int StartTime() const { return m_startTime; }
int StopTime() const { return m_stopTime; }
bool UseChannel() const { return m_useChannel; }
tChannelID const& ChannelMin() const { return m_channelMin; }
tChannelID const& ChannelMax() const { return m_channelMax; }
bool UseAsSearchTimer() const { return m_useAsSearchTimer; }
friend bool operator<( SearchTimer const& left, SearchTimer const& right );
private:
int m_id;
std::string m_search;
bool m_useTime;
int m_startTime;
int m_stopTime;
int m_useChannel;
tChannelID m_channelMin;
tChannelID m_channelMax;
std::string m_channelGroup;
bool m_useCase;
int m_mode;
bool m_useTitle;
bool m_useSubtitle;
bool m_useDescription;
bool m_useDuration;
int m_minDuration;
int m_maxDuration;
bool m_useAsSearchTimer;
bool m_useDayOfWeek;
int m_dayOfWeek;
bool m_useEpisode;
std::string m_directory;
int m_priority;
int m_lifetime;
void ParseChannel( std::string const& data );
void ParseChannelIDs( std::string const& data );
/*
int useChannel;
int useCase;
int mode;
int useTitle;
int useSubtitle;
int useDescription;
int useDuration;
int minDuration;
int maxDuration;
int useAsSearchTimer;
int useDayOfWeek;
int DayOfWeek;
int useEpisode;
char directory[MaxFileName];
int Priority;
int Lifetime;
int MarginStart;
int MarginStop;
int useVPS;
int action;
int useExtEPGInfo;
char** catvalues;
cChannel *channelMin;
cChannel *channelMax;
char* channelGroup;
int avoidRepeats;
int compareTitle;
int compareSubtitle;
int compareSummary;
int allowedRepeats;
unsigned long catvaluesAvoidRepeat;
int repeatsWithinDays;
int delAfterDays;
int recordingsKeep;
int switchMinsBefore;
int pauseOnNrRecordings;
int blacklistMode;
cList<cBlacklistObject> blacklists;
int fuzzyTolerance;
int useInFavorites;
int menuTemplate;*/
};
class SearchTimers
{
public:
typedef std::list< SearchTimer > TimerList;
typedef TimerList::size_type size_type;
typedef TimerList::iterator iterator;
typedef TimerList::const_iterator const_iterator;
SearchTimers();
size_type size() const { return m_timers.size(); }
iterator begin() { return m_timers.begin(); }
const_iterator begin() const { return m_timers.begin(); }
iterator end() { return m_timers.end(); }
const_iterator end() const { return m_timers.end(); }
private:
TimerList m_timers;
};
} // namespace vdrlive
#endif // VDR_LIVE_EPGSEARCH_H
|