From 1c922cbb542132481004aabe7d7ffff26e641ce9 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sun, 7 Mar 2010 13:56:09 +0100 Subject: Added cChannel::IsSourceType() to test if a channel's source is of a given type --- channels.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'channels.h') diff --git a/channels.h b/channels.h index 98c71dfe..5c9727f1 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 2.9 2010/03/06 11:54:17 kls Exp $ + * $Id: channels.h 2.10 2010/03/07 13:47:13 kls Exp $ */ #ifndef __CHANNELS_H @@ -176,6 +176,7 @@ public: bool IsCable(void) const { return cSource::IsCable(source); } bool IsSat(void) const { return cSource::IsSat(source); } bool IsTerr(void) const { return cSource::IsTerr(source); } + bool IsSourceType(char Source) const { return cSource::IsType(source, Source); } tChannelID GetChannelID(void) const { return tChannelID(source, nid, (nid || tid) ? tid : Transponder(), sid, rid); } bool HasTimer(void) const; int Modification(int Mask = CHANNELMOD_ALL); -- cgit v1.2.3