summaryrefslogtreecommitdiff
path: root/channels.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2012-06-17 12:27:07 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2012-06-17 12:27:07 +0200
commit45d261fb7448daed79b9873e0929386dfee0445f (patch)
tree2487555b5fc227cdb26c930a828b8213938883d8 /channels.h
parent1912d36f00b53ad33155f5788985f23ead69a873 (diff)
downloadvdr-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.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/channels.h b/channels.h
index 203a4c94..815cb479 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.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'