diff options
author | root <root@lwg5001.(none)> | 2008-12-18 08:46:41 +0100 |
---|---|---|
committer | root <root@lwg5001.(none)> | 2008-12-18 08:46:41 +0100 |
commit | 0a38f9f8cde03a188c79f66dc4b005d83a6f0cfd (patch) | |
tree | ac9bcbdab8b2a3c23423d7dd14278cd6d77606de /process.h | |
parent | f381118bd3f91740edc5bf464ab1300938f3ec5d (diff) | |
download | vdr-plugin-infosatepg-0a38f9f8cde03a188c79f66dc4b005d83a6f0cfd.tar.gz vdr-plugin-infosatepg-0a38f9f8cde03a188c79f66dc4b005d83a6f0cfd.tar.bz2 |
Initial commit
Diffstat (limited to 'process.h')
-rw-r--r-- | process.h | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/process.h b/process.h new file mode 100644 index 0000000..0edc68b --- /dev/null +++ b/process.h @@ -0,0 +1,83 @@ +/* + * process.h: A plugin for the Video Disk Recorder + * + * See the README file for copyright information and how to reach the author. + * + * $Id$ + */ + +#ifndef __process_h_ +#define __process_h_ + +#include "global.h" + +// --- cInfosatevent +class cInfosatevent +{ +private: + int duration; + time_t startTime; + char *title; + char *shortText; + char *description; + char *announcement; + char *country; + char *genre; + char *original; + int category; + int fsk; + int year; + int usage; + tEventID eventID; +public: + cInfosatevent(); + ~cInfosatevent(); + void SetTitle(const char *Title); + void SetShortText(const char *ShortText); + void SetDescription(const char *Description); + void SetStartTime(time_t StartTime) { startTime=StartTime; } + void SetDuration(int Duration) { duration=Duration; } + void SetEventUse(int Usage) { usage=Usage; } + void SetYear(int Year) { year=Year; } + void SetEventID(tEventID EventID) { eventID=EventID; } + void SetCategory(int Category) { category=Category; } + void SetFSK(int FSK) { fsk=FSK; } + + void SetAnnouncement(const char *Announcement); + void SetCountry(const char *Country); + void SetGenre(const char *Genre); + void SetOriginal(const char *Original); + const char *Description(const char *oldDescription); + + const char *Title(void) const { return title; } + const char *ShortText(void) const { return shortText; } + const char *Announcement(void) const { return announcement; } + const char *Genre(void) const { return genre; } + const char *Country(void) const { return country; } + const char *Original(void) const { return original; } + int Year(void) const { return year; } + int Duration(void) const { return duration; } + int FSK(void) const { return fsk; } + int Category(void) const { return category; } + time_t StartTime(void) const { return startTime; } + int GetEventUse() { return usage; } + tEventID EventID(void) const { return eventID; } +}; + +// --- cProcessInfosatepg +class cProcessInfosatepg +{ +private: + cGlobalInfosatepg *global; + bool AddInfosatEvent(cChannel *channel, cInfosatevent *iEvent); + bool CheckOriginal(char *s,cInfosatevent *iEvent,cCharSetConv *conv); + bool CheckAnnouncement(char *s,cInfosatevent *iEvent); + bool ParseInfosatepg(FILE *f); + cChannel *GetInfosatChannel(int frequency, int sid); + u_long DoSum(u_long sum, const char *buf, int nBytes); + cEvent *SearchEvent(cSchedule* Schedule, cInfosatevent *iEvent); +public: + cProcessInfosatepg(int Mac, cGlobalInfosatepg *Global); +}; + +#endif |