diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-17 12:27:07 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-06-17 12:27:07 +0200 |
commit | 45d261fb7448daed79b9873e0929386dfee0445f (patch) | |
tree | 2487555b5fc227cdb26c930a828b8213938883d8 /channels.h | |
parent | 1912d36f00b53ad33155f5788985f23ead69a873 (diff) | |
download | vdr-45d261fb7448daed79b9873e0929386dfee0445f.tar.gz vdr-45d261fb7448daed79b9873e0929386dfee0445f.tar.bz2 |
The new setup option "Miscellaneous/Show channel names with source" can be used to turn on adding the source character to channel names whenever they are displayed
Diffstat (limited to 'channels.h')
-rw-r--r-- | channels.h | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: channels.h 2.15 2012/03/11 11:46:39 kls Exp $ + * $Id: channels.h 2.16 2012/06/17 11:21:33 kls Exp $ */ #ifndef __CHANNELS_H @@ -123,6 +123,8 @@ private: int number; // Sequence number assigned on load bool groupSep; int __EndData__; + mutable cString nameSource; + mutable cString shortNameSource; cString parameters; int modification; mutable const cSchedule *schedule; @@ -137,8 +139,8 @@ public: cString ToText(void) const; 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; } + const char *Name(void) const; + const char *ShortName(bool OrName = false) const; const char *Provider(void) const { return provider; } const char *PortalName(void) const { return portalName; } int Frequency(void) const { return frequency; } ///< Returns the actual frequency, as given in 'channels.conf' |