summaryrefslogtreecommitdiff
path: root/menu.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2003-01-19 14:59:46 +0100
committerKlaus Schmidinger <vdr@tvdr.de>2003-01-19 14:59:46 +0100
commit413b22dc636dbd78f7acd0dd816cde933fe6a78d (patch)
treeecedee45e76a4de00196c01743160910ce3a6403 /menu.c
parentc1dcc3e5a597f6feb470c83577e4684a188dff1a (diff)
downloadvdr-413b22dc636dbd78f7acd0dd816cde933fe6a78d.tar.gz
vdr-413b22dc636dbd78f7acd0dd816cde933fe6a78d.tar.bz2
Implemented actual user input for CAM enquiry menus
Diffstat (limited to 'menu.c')
-rw-r--r--menu.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/menu.c b/menu.c
index e3a4c182..081a4ba1 100644
--- a/menu.c
+++ b/menu.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: menu.c 1.231 2003/01/06 16:13:53 kls Exp $
+ * $Id: menu.c 1.232 2003/01/19 14:59:46 kls Exp $
*/
#include "menu.h"
@@ -1572,11 +1572,15 @@ eOSState cMenuCam::ProcessKey(eKeys Key)
//XXX this is just quick and dirty - make this a separate display object
cMenuCamEnquiry::cMenuCamEnquiry(cCiEnquiry *CiEnquiry)
-:cOsdMenu("")
+:cOsdMenu("", 10)
{
ciEnquiry = CiEnquiry;
+ int Length = ciEnquiry->ExpectedLength();
+ input = MALLOC(char, Length + 1);
+ *input = 0;
replied = false;
SetTitle(ciEnquiry->Text() ? ciEnquiry->Text() : "CAM");
+ Add(new cMenuEditNumItem("Input", input, Length, ciEnquiry->Blind()));
Display();
}
@@ -1584,12 +1588,14 @@ cMenuCamEnquiry::~cMenuCamEnquiry()
{
if (!replied)
ciEnquiry->Cancel();
+ free(input);
delete ciEnquiry;
}
eOSState cMenuCamEnquiry::Reply(void)
{
- ciEnquiry->Reply("1234");//XXX implement actual user input
+ //XXX check length???
+ ciEnquiry->Reply(input);
replied = true;
return osEnd;
}