Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: [ANNOUNCE] calendar-0.1.0



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patrick Cernko wrote:
>
> I attach a patch, which does this exactly. BTW: I also added apropriate
> ifndef's for the _GNU_SOURCE define, to avoid the warnings, decribed in
> this thread, as I had them too.
>

Sorry, I obviously posted a inproper patch. Here is the proper version.
- --
Patrick Cernko | mailto:errror@errror.de | http://www.errror.de
Quote of the Week: "Is net scheen, das Bild, awwer einmalisch!"
                   (Markus Sand)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/YGSpB6g1EUxThvcRAlj3AJ9Wi0dazspc/BiEADKTVY1irgMrTQCdGcEm
6Inmd4zD8PmN00Bs5tFbj2Y=
=nQEG
-----END PGP SIGNATURE-----
diff -Nru calendar-0.1.0.orig/menu.c calendar-0.1.0/menu.c
--- calendar-0.1.0.orig/menu.c	2003-09-10 21:16:01.000000000 +0200
+++ calendar-0.1.0/menu.c	2003-09-11 13:36:52.000000000 +0200
@@ -8,14 +8,52 @@
  */
 
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 
 #include <string.h>
 
 #include <vdr/i18n.h>
 #include <vdr/channels.h>
 #include <vdr/eit.h>
-#include <vdr/../../menu.c>
+
+#include <vdr/../../menuitems.h>
+
+/**
+ * we have to declare these two classes here until they are declared
+ * in the above header file too, instead of only in the vdr source
+ * file menu.c.
+ * This is just copy and paste from vdr's menu.c.
+ * @Klaus: FIXME: Please declare the classes below in one of your
+ * header files.
+ */
+class cMenuEditTimeItem : public cMenuEditItem {
+protected:
+  int *value;
+  int hh, mm;
+  int pos;
+  virtual void Set(void);
+public:
+  cMenuEditTimeItem(const char *Name, int *Value);
+  virtual eOSState ProcessKey(eKeys Key);
+  };
+
+class cMenuSchedule : public cOsdMenu {
+private:
+  cMutexLock mutexLock;
+  const cSchedules *schedules;
+  bool now, next;
+  int otherChannel;
+  eOSState Record(void);
+  eOSState Switch(void);
+  void PrepareSchedule(cChannel *Channel);
+public:
+  cMenuSchedule(void);
+  virtual ~cMenuSchedule();
+  virtual eOSState ProcessKey(eKeys Key);
+  };
+
 
 #include "menu.h"
 #include "menuitem.h"
diff -Nru calendar-0.1.0.orig/menuitem.c calendar-0.1.0/menuitem.c
--- calendar-0.1.0.orig/menuitem.c	2003-09-10 21:53:38.000000000 +0200
+++ calendar-0.1.0/menuitem.c	2003-09-11 13:33:20.000000000 +0200
@@ -9,7 +9,9 @@
 
 
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 
 #include <string.h>
 
diff -Nru calendar-0.1.0.orig/menusetup.c calendar-0.1.0/menusetup.c
--- calendar-0.1.0.orig/menusetup.c	2003-09-10 21:22:23.000000000 +0200
+++ calendar-0.1.0/menusetup.c	2003-09-11 13:33:36.000000000 +0200
@@ -8,7 +8,9 @@
  */
 
 
+#ifndef _GNU_SOURCE
 #define _GNU_SOURCE
+#endif
 
 #include <string.h>
 

Home | Main Index | Thread Index