summaryrefslogtreecommitdiff
path: root/dish.h
diff options
context:
space:
mode:
authorDimitar Petrovski <dimeptr@gmail.com>2011-10-23 15:35:31 (GMT)
committerDimitar Petrovski <dimeptr@gmail.com>2011-10-23 15:35:31 (GMT)
commit5993000031faa54c50a32cf3c5857f5c87593e5a (patch)
tree49009799302fe4b45a74bc2685180915e78f67e5 /dish.h
parent8bab540df87c3f38369c772fd956f85cd655cf6e (diff)
downloadvdr-plugin-eepg-5993000031faa54c50a32cf3c5857f5c87593e5a.tar.gz
vdr-plugin-eepg-5993000031faa54c50a32cf3c5857f5c87593e5a.tar.bz2
add ratings take 2
Diffstat (limited to 'dish.h')
-rw-r--r--dish.h38
1 files changed, 28 insertions, 10 deletions
diff --git a/dish.h b/dish.h
index 963fb42..04a8d90 100644
--- a/dish.h
+++ b/dish.h
@@ -10,7 +10,7 @@
#ifndef LIBSI_DISH_H
#define LIBSI_DISH_H
-#include <vdr/tools.h>
+#include <libsi/util.h>
namespace SI
{
@@ -247,17 +247,35 @@ class DishDescriptor {
public:
DishDescriptor();
virtual ~DishDescriptor();
- const char* getText(void) const { return text; }
+ const char* getName(void) const { return name; }
+ const char* getShortText(void);
+ const char *getDescription(void);
+ // const char* getShortText(void) const { return shortText?shortText->c_str():""; }
+ // const char* getDescription(void) const { return description?description->c_str():""; }
+ const char *getTheme();
+ const char *getCategory();
+ const char *getRating();
+ const char *getStarRating();
+ bool hasTheme() {return DishTheme > 0;}
+ bool hasCategory() {return DishCategory > 0;}
+ void setShortData(unsigned char Tid, CharArray data);
+ void setExtendedtData(unsigned char Tid, CharArray data);
+ void setRating(uint16_t value);
+ void setContent(ContentDescriptor::Nibble Nibble);
- const char* getShortText(void) const { return shortText; }
- const char* getTheme(int contentNibleLvl2);
- const char* getCategory(int userNible);
- // Decompress the byte arrary and stores the result to a text string
- void Decompress(unsigned char Tid, CharArray data);
protected:
- const char* text; // name or description of the event
- const char* shortText; // usually the episode name
- unsigned char* decompressed;
+ // Decompress the byte array and stores the result to a text string
+ const char *Decompress(unsigned char Tid, CharArray data);
+ const char* name; // name of the event
+ const char* shortText; // usually the episode name
+ const char* description; // description of the event
+ unsigned char* decompressedShort;
+ unsigned char* decompressedExtended;
+ unsigned char DishTheme;
+ unsigned char DishCategory;
+ uint16_t mpaaRating;
+ uint16_t starRating;
+
struct HuffmanTable {
unsigned int startingAddress;