summaryrefslogtreecommitdiff
path: root/epg.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2010-01-03 14:28:33 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2010-01-03 14:28:33 +0100
commitfc3b402d430f513635edaf2f7ee7ab5b32a3247f (patch)
tree40a6615566bfe150601887de7db0b8328adef778 /epg.h
parent56627cd12d9e01379d9104300fec837a4db8df48 (diff)
downloadvdr-fc3b402d430f513635edaf2f7ee7ab5b32a3247f.tar.gz
vdr-fc3b402d430f513635edaf2f7ee7ab5b32a3247f.tar.bz2
Implemented handling the "Parental Rating Descriptor"
Diffstat (limited to 'epg.h')
-rw-r--r--epg.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/epg.h b/epg.h
index b1eed7e6..2f1f93c1 100644
--- a/epg.h
+++ b/epg.h
@@ -7,7 +7,7 @@
* Original version (as used in VDR before 1.3.0) written by
* Robert Schneider <Robert.Schneider@web.de> and Rolf Hakenes <hakenes@hippomi.de>.
*
- * $Id: epg.h 2.1 2010/01/03 11:17:20 kls Exp $
+ * $Id: epg.h 2.2 2010/01/03 14:01:55 kls Exp $
*/
#ifndef __EPG_H
@@ -77,6 +77,7 @@ private:
char *description; // Description of this event
cComponents *components; // The stream components of this event
uchar contents[MAXEVCONTENTS]; // Contents of this event
+ int parentalRating; // Parental rating of this event
time_t startTime; // Start time of this event
int duration; // Duration of this event in seconds
time_t vps; // Video Programming Service timestamp (VPS, aka "Programme Identification Label", PIL)
@@ -96,6 +97,7 @@ public:
const char *Description(void) const { return description; }
const cComponents *Components(void) const { return components; }
uchar Contents(int i = 0) const { return (0 <= i && i < MAXEVCONTENTS) ? contents[i] : 0; }
+ int ParentalRating(void) const { return parentalRating; }
time_t StartTime(void) const { return startTime; }
time_t EndTime(void) const { return startTime + duration; }
int Duration(void) const { return duration; }
@@ -105,6 +107,7 @@ public:
bool HasTimer(void) const;
bool IsRunning(bool OrAboutToStart = false) const;
static const char *ContentToString(uchar Content);
+ cString GetParentalRatingString(void) const;
cString GetDateString(void) const;
cString GetTimeString(void) const;
cString GetEndTimeString(void) const;
@@ -118,6 +121,7 @@ public:
void SetDescription(const char *Description);
void SetComponents(cComponents *Components); // Will take ownership of Components!
void SetContents(uchar *Contents);
+ void SetParentalRating(int ParentalRating);
void SetStartTime(time_t StartTime);
void SetDuration(int Duration);
void SetVps(time_t Vps);