summaryrefslogtreecommitdiff
path: root/eit.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <kls (at) cadsoft (dot) de>2000-09-03 18:00:00 +0200
committerKlaus Schmidinger <kls (at) cadsoft (dot) de>2000-09-03 18:00:00 +0200
commit48fea259ae5ed3ac19bcc4152341252b9df39128 (patch)
tree244597d3af4bc89bc1997e7cceb91745e23ea811 /eit.h
parent9b405778674d5325b225b32ab694d9216b099527 (diff)
downloadvdr-patch-lnbsharing-48fea259ae5ed3ac19bcc4152341252b9df39128.tar.gz
vdr-patch-lnbsharing-48fea259ae5ed3ac19bcc4152341252b9df39128.tar.bz2
Version 0.62vdr-0.62
- The Makefile now defines DVBDIR to easily point to where the DVB driver source is located. - When switching channels the current/next information is now displayed if available (thanks to Robert Schneider). Since there is now more information to read when switching channels, the timeout for displaying it has been increased from 2 to 5 seconds (remember that this info can always be recalled by pressing the "Ok" button). For this feature to work it is necessary that the 'Pnr' parameter in the channel setup ('channels.conf') is set to the proper value. This has been done for some of the channels in the default 'channels.conf'. Some other parameters in the default 'channels.conf' have also been updated, so please make sure your timers still use the correct channels!
Diffstat (limited to 'eit.h')
-rw-r--r--eit.h92
1 files changed, 92 insertions, 0 deletions
diff --git a/eit.h b/eit.h
new file mode 100644
index 0000000..28329f4
--- /dev/null
+++ b/eit.h
@@ -0,0 +1,92 @@
+/***************************************************************************
+ eit.h - description
+ -------------------
+ begin : Fri Aug 25 2000
+ copyright : (C) 2000 by Robert Schneider
+ email : Robert.Schneider@web.de
+ ***************************************************************************/
+
+/***************************************************************************
+ * *
+ * This program is free software; you can redistribute it and/or modify *
+ * it under the terms of the GNU General Public License as published by *
+ * the Free Software Foundation; either version 2 of the License, or *
+ * (at your option) any later version. *
+ * *
+ * $Id: eit.h 1.1 2000/09/03 10:23:24 kls Exp $
+ ***************************************************************************/
+
+#ifndef __EIT_H
+#define __EIT_H
+
+#include <dvb_v4l.h>
+
+typedef struct eit_event {
+
+ bool bIsValid;
+ char szTitle[512];
+ char szSubTitle[512];
+ char szDate[12];
+ char szTime[12];
+
+}eit_event;
+
+/**
+ *@author Robert Schneider
+ */
+
+class cEIT {
+public:
+ cEIT();
+ ~cEIT();
+ /** */
+ int GetEIT();
+ /** */
+ int SetProgramNumber(unsigned short pnr);
+ /** Retrieves the string representing the time of the current event */
+ char * GetRunningTime();
+ /** Retrieves the string representing the date of the current event */
+ char * GetRunningDate();
+ /** Retrieves the string for the running subtitle */
+ char * GetRunningSubtitle();
+ /** retrieves the string for the running title */
+ char * GetRunningTitle();
+ /** Retrieves the string representing the time of the next event */
+ char * GetNextTime();
+ /** Retrieves the string representing the date of the next event */
+ char * GetNextDate();
+ /** Retrieves the string for the next subtitle */
+ char * GetNextSubtitle();
+ /** retrieves the string for the next title */
+ char * GetNextTitle();
+ /** */
+ bool IsValid();
+
+protected: // Protected attributes
+ /** Device name of VBI device */
+ const char * cszBitFilter;
+protected: // Protected attributes
+ /** handle to VBI device (usually /dev/vbi) */
+ int fsvbi;
+ /** Describes the event next on */
+ eit_event evtNext;
+ /** Describes the running event */
+ eit_event evtRunning;
+protected: // Protected methods
+ /** Set the bitfilter in vbi device to return
+correct tables */
+ int SetBitFilter(unsigned short pid, unsigned short section, unsigned short mode);
+ /** */
+ int GetSection(unsigned char *buf, ushort PID, unsigned char sec);
+ /** */
+ int CloseFilter(unsigned short handle);
+ /** */
+ char * mjd2string(unsigned short mjd);
+ /** */
+ int strdvbcpy(unsigned char *dst, unsigned char *src, int max);
+public: // Public attributes
+ /** */
+ unsigned short uProgramNumber;
+};
+
+#endif