summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-06 13:49:01 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-06 13:49:01 +0200
commitb3c1f1bb7362825f0bb08dbae11b28d2d74649ae (patch)
tree742eef6a747388618688125ca5783bba2efba420 /channels.h
parent6db0e99996db866ae7d611d1bdc5c285fc03b14e (diff)
downloadvdr-b3c1f1bb7362825f0bb08dbae11b28d2d74649ae.tar.gz
vdr-b3c1f1bb7362825f0bb08dbae11b28d2d74649ae.tar.bz2
Automatically deleting duplicate channels when reading channels.conf
Diffstat (limited to 'channels.h')
-rw-r--r--channels.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/channels.h b/channels.h
index e94be176..763919f5 100644
--- a/channels.h
+++ b/channels.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: channels.h 1.26 2005/02/20 14:05:24 kls Exp $
+ * $Id: channels.h 1.27 2005/05/06 13:47:06 kls Exp $
*/
#ifndef __CHANNELS_H
@@ -135,7 +135,7 @@ public:
~cChannel();
cChannel& operator= (const cChannel &Channel);
cString ToText(void) const;
- bool Parse(const char *s, bool AllowNonUniqueID = false);
+ bool Parse(const char *s);
bool Save(FILE *f);
const char *Name(void) const { return name; }
const char *ShortName(bool OrName = false) const { return (OrName && isempty(shortName)) ? name : shortName; }
@@ -198,6 +198,7 @@ private:
int maxNumber;
int modified;
int beingEdited;
+ void DeleteDuplicateChannels(void);
public:
cChannels(void);
bool Load(const char *FileName, bool AllowComments = false, bool MustExist = false);