summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
Diffstat (limited to 'pages')
-rw-r--r--pages/Makefile11
-rw-r--r--pages/keypress.ecpp16
-rw-r--r--pages/menu.ecpp5
3 files changed, 25 insertions, 7 deletions
diff --git a/pages/Makefile b/pages/Makefile
index d55b4a5..53266af 100644
--- a/pages/Makefile
+++ b/pages/Makefile
@@ -16,7 +16,8 @@ VDRDIR ?= ../../../..
### The object files (add further files here):
OBJS = menu.o event_widget.o channels.o recordings.o schedule.o \
- screenshot.o timers.o whats_on_now.o whats_on_next.o
+ screenshot.o timers.o whats_on_now.o whats_on_next.o \
+ keypress.o remote.o
### Default rules:
@@ -33,16 +34,16 @@ all: libpages.a
$(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CPP) $<
%.cpp: %.gif
- $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_GIF) -b $<
+ $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_GIF) -b -m "image/gif" $<
%.cpp: %.jpg
- $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JPG) -b $<
+ $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JPG) -b -m "image/jpg" $<
%.cpp: %.css
- $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b $<
+ $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_CSS) -b -m "text/css" $<
%.cpp: %.js
- $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JS) -b $<
+ $(ECPPC) $(ECPPFLAGS) $(ECPPFLAGS_JS) -b -m "test/javascript" $<
### Targets:
diff --git a/pages/keypress.ecpp b/pages/keypress.ecpp
new file mode 100644
index 0000000..2475dc1
--- /dev/null
+++ b/pages/keypress.ecpp
@@ -0,0 +1,16 @@
+<%pre>
+#include <vdr/remote.h>
+</%pre>
+<%args>
+int keycode = kNone;
+</%args>
+<%cpp>
+reply.setContentType("application/xml");
+</%cpp>
+<?xml version="1.0"?>
+<service>
+<request name="keypress">
+<param name="keycode"><$ keycode $></param>
+</request>
+<response><$ cRemote::Put( (eKeys)keycode ) ? "1" : "0" $></response>
+</service>
diff --git a/pages/menu.ecpp b/pages/menu.ecpp
index 8fc6b5e..dddc43c 100644
--- a/pages/menu.ecpp
+++ b/pages/menu.ecpp
@@ -7,5 +7,6 @@
<a href="whats_on_next.html"><$ tr("What's on next?") $></a><br/>
<a href="schedule.html"><$ tr("Schedule") $></a><br />
<a href="timers.html"><$ tr("Timers") $></a><br />
- <a href="recordings.html"><$ tr("Recordings") $></a>
- </div> \ No newline at end of file
+ <a href="recordings.html"><$ tr("Recordings") $></a><br />
+ <a href="remote.html"><$ tr("Remote Control") $></a>
+ </div>