diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2010-03-06 12:01:17 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2010-03-06 12:01:17 +0100 |
commit | ab9af4cea16b6d3875e60b7809c02f3b6794e6b4 (patch) | |
tree | c7f2d476e2d010372b1bb8bd94b36cd5d6f026dd /sources.h | |
parent | 3e09f8565dde0e362549a1896352753483f6615c (diff) | |
download | vdr-ab9af4cea16b6d3875e60b7809c02f3b6794e6b4.tar.gz vdr-ab9af4cea16b6d3875e60b7809c02f3b6794e6b4.tar.bz2 |
Added support for ATSC devices
Diffstat (limited to 'sources.h')
-rw-r--r-- | sources.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sources.h 2.1 2010/02/21 16:11:19 kls Exp $ + * $Id: sources.h 2.2 2010/03/06 11:53:54 kls Exp $ */ #ifndef __SOURCES_H @@ -16,6 +16,7 @@ class cSource : public cListObject { public: enum eSourceType { stNone = 0x00000000, + stAtsc = ('A' << 24), stCable = ('C' << 24), stSat = ('S' << 24), stTerr = ('T' << 24), @@ -35,6 +36,7 @@ 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 IsAtsc(int Code) { return (Code & st_Mask) == stAtsc; } 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; } |