summaryrefslogtreecommitdiff
path: root/ci.c
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2005-10-02 13:54:34 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2005-10-02 13:54:34 +0200
commit8365632b3f201f1b903dd88d80593435ba9545a1 (patch)
tree07705e4d45b3024171506840219a38679262c6b7 /ci.c
parent283a6f83f90a10175ffa6b5acbb895298223b48d (diff)
downloadvdr-8365632b3f201f1b903dd88d80593435ba9545a1.tar.gz
vdr-8365632b3f201f1b903dd88d80593435ba9545a1.tar.bz2
The CAM menu is now completely closed when pressing the Menu key while inside a sub menu
Diffstat (limited to 'ci.c')
-rw-r--r--ci.c16
1 files changed, 15 insertions, 1 deletions
diff --git a/ci.c b/ci.c
index 2621932a..5218bdeb 100644
--- a/ci.c
+++ b/ci.c
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: ci.c 1.30 2005/10/02 13:10:28 kls Exp $
+ * $Id: ci.c 1.31 2005/10/02 13:20:41 kls Exp $
*/
#include "ci.h"
@@ -1032,6 +1032,7 @@ public:
cCiEnquiry *Enquiry(bool Clear = false);
bool SendMenuAnswer(uint8_t Selection);
bool SendAnswer(const char *Text);
+ bool SendCloseMMI(void);
};
cCiMMI::cCiMMI(int SessionId, cCiTransportConnection *Tc)
@@ -1204,6 +1205,14 @@ bool cCiMMI::SendAnswer(const char *Text)
return true;
}
+bool cCiMMI::SendCloseMMI(void)
+{
+ dbgprotocol("%d: ==> Close MMI\n", SessionId());
+ SendData(AOT_CLOSE_MMI, 0);
+ //XXX return value of all SendData() calls???
+ return true;
+}
+
// --- cCiMenu ---------------------------------------------------------------
cCiMenu::cCiMenu(cCiMMI *MMI, bool Selectable)
@@ -1253,6 +1262,11 @@ bool cCiMenu::Cancel(void)
return Select(-1);
}
+bool cCiMenu::Abort(void)
+{
+ return mmi->SendCloseMMI();
+}
+
// --- cCiEnquiry ------------------------------------------------------------
cCiEnquiry::cCiEnquiry(cCiMMI *MMI)