summaryrefslogtreecommitdiff
path: root/blacklist.h
diff options
context:
space:
mode:
authorJohann Friedrichs <johann.friedrichs@web.de>2018-03-21 12:14:55 +0100
committerJohann Friedrichs <johann.friedrichs@web.de>2018-03-21 12:14:55 +0100
commite8a0e569152c50d6084f252d12854b8fd4e74466 (patch)
tree5a90ef7ea08ff2096df157ca109c5268cdc04903 /blacklist.h
parent9c7d95ff8d6ba965cb23147507a859b1fd0491d6 (diff)
downloadvdr-plugin-epgsearch-e8a0e569152c50d6084f252d12854b8fd4e74466.tar.gz
vdr-plugin-epgsearch-e8a0e569152c50d6084f252d12854b8fd4e74466.tar.bz2
unified indentation
Diffstat (limited to 'blacklist.h')
-rw-r--r--blacklist.h119
1 files changed, 68 insertions, 51 deletions
diff --git a/blacklist.h b/blacklist.h
index 494f08c..7410b35 100644
--- a/blacklist.h
+++ b/blacklist.h
@@ -29,68 +29,85 @@ The project's page is at http://winni.vdr-developer.org/epgsearch
class cSearchExt;
class cSearchResults;
-class cBlacklist : public cListObject {
- friend class cMenuEditSearchExt;
+class cBlacklist : public cListObject
+{
+ friend class cMenuEditSearchExt;
public:
- int ID;
- char search[MaxFileName];
- int options;
- int useTime;
- int startTime;
- int stopTime;
- int useChannel;
- const cChannel *channelMin;
- const cChannel *channelMax;
- char* channelGroup;
- int useCase;
- int mode;
- int useTitle;
- int useSubtitle;
- int useDescription;
- int useDuration;
- int minDuration;
- int maxDuration;
- int useDayOfWeek;
- int DayOfWeek;
- int useExtEPGInfo;
- int ignoreMissingEPGCats;
- char** catvalues;
- int fuzzyTolerance;
- int isGlobal;
- static char *buffer;
+ int ID;
+ char search[MaxFileName];
+ int options;
+ int useTime;
+ int startTime;
+ int stopTime;
+ int useChannel;
+ const cChannel *channelMin;
+ const cChannel *channelMax;
+ char* channelGroup;
+ int useCase;
+ int mode;
+ int useTitle;
+ int useSubtitle;
+ int useDescription;
+ int useDuration;
+ int minDuration;
+ int maxDuration;
+ int useDayOfWeek;
+ int DayOfWeek;
+ int useExtEPGInfo;
+ int ignoreMissingEPGCats;
+ char** catvalues;
+ int fuzzyTolerance;
+ int isGlobal;
+ static char *buffer;
public:
- cBlacklist(void);
- virtual ~cBlacklist(void);
- cBlacklist& operator= (const cBlacklist&);
- virtual bool operator< (const cListObject &ListObject);
+ cBlacklist(void);
+ virtual ~cBlacklist(void);
+ cBlacklist& operator= (const cBlacklist&);
+ virtual bool operator< (const cListObject &ListObject);
- const char *Search(void) { return search; }
- int Options(void) { return options; }
- int StartTime(void) { return startTime; }
- int StopTime(void) { return stopTime; }
- int UseChannel(void) { return useChannel; }
- const cChannel *ChannelMin(void) { return channelMin; }
- const cChannel *ChannelMax(void) { return channelMax; }
- const cEvent * GetEventByBlacklist(const cSchedule *schedules, const cEvent *Start, int MarginStop = 0);
- bool MatchesExtEPGInfo(const cEvent* e);
- const char *ToText(void);
- bool Parse(const char *s);
- bool ParseExtEPGValues(const char *s);
- bool ParseExtEPGEntry(const char *s);
- bool Save(FILE *f);
- cSearchResults* Run(cSearchResults* pSearchResults = NULL, int MarginStop = 0);
- void CopyFromTemplate(const cSearchExt* templ);
+ const char *Search(void) {
+ return search;
+ }
+ int Options(void) {
+ return options;
+ }
+ int StartTime(void) {
+ return startTime;
+ }
+ int StopTime(void) {
+ return stopTime;
+ }
+ int UseChannel(void) {
+ return useChannel;
+ }
+ const cChannel *ChannelMin(void) {
+ return channelMin;
+ }
+ const cChannel *ChannelMax(void) {
+ return channelMax;
+ }
+ const cEvent * GetEventByBlacklist(const cSchedule *schedules, const cEvent *Start, int MarginStop = 0);
+ bool MatchesExtEPGInfo(const cEvent* e);
+ const char *ToText(void);
+ bool Parse(const char *s);
+ bool ParseExtEPGValues(const char *s);
+ bool ParseExtEPGEntry(const char *s);
+ bool Save(FILE *f);
+ cSearchResults* Run(cSearchResults* pSearchResults = NULL, int MarginStop = 0);
+ void CopyFromTemplate(const cSearchExt* templ);
};
-class cBlacklists : public cConfig<cBlacklist>, public cMutex {
+class cBlacklists : public cConfig<cBlacklist>, public cMutex
+{
public:
int GetNewID(void);
cBlacklist* GetBlacklistFromID(int ID);
bool Exists(const cBlacklist* Blacklist);
};
-class cBlacklistObject: public cListObject {
- public:
+class cBlacklistObject: public cListObject
+{
+public:
cBlacklist* blacklist;
cBlacklistObject(cBlacklist* Blacklist) : blacklist(Blacklist) {}
};