summaryrefslogtreecommitdiff
path: root/sources.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-05-14 09:47:06 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-05-14 09:47:06 +0200
commitd7053e30ac3e971e8b27d2ae16b000e60cf302e3 (patch)
tree398d359550521e656503fd31d24804321cb5152b /sources.h
parent06e038b6fb9f2fe8882a8f5ffd9112504e3a45ad (diff)
downloadvdr-d7053e30ac3e971e8b27d2ae16b000e60cf302e3.tar.gz
vdr-d7053e30ac3e971e8b27d2ae16b000e60cf302e3.tar.bz2
Using '>' as separator for short channel names on cable channels
Diffstat (limited to 'sources.h')
-rw-r--r--sources.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/sources.h b/sources.h
index 22076ea7..ae941f84 100644
--- a/sources.h
+++ b/sources.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: sources.h 1.3 2004/12/26 11:59:21 kls Exp $
+ * $Id: sources.h 1.4 2005/05/14 09:30:41 kls Exp $
*/
#ifndef __SOURCES_H
@@ -35,6 +35,9 @@ public:
static cString ToString(int Code);
static int FromString(const char *s);
static int FromData(eSourceType SourceType, int Position = 0, bool East = false);
+ static bool IsCable(int Code) { return (Code & st_Mask) == stCable; }
+ static bool IsSat(int Code) { return (Code & st_Mask) == stSat; }
+ static bool IsTerr(int Code) { return (Code & st_Mask) == stTerr; }
};
class cSources : public cConfig<cSource> {