diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2005-10-02 12:59:53 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2005-10-02 12:59:53 +0200 |
commit | 2fc075f5f93d0207afc27e88659cedc66d392204 (patch) | |
tree | 319d40b593da5666f90fd6c408da2dbe7e11dfbb | |
parent | 8302d81af2cce691722b5f3b22b0fc0f309c68a5 (diff) | |
download | vdr-2fc075f5f93d0207afc27e88659cedc66d392204.tar.gz vdr-2fc075f5f93d0207afc27e88659cedc66d392204.tar.bz2 |
The CAM menu now automatically updates itself in case of a progress display
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | ci.c | 7 | ||||
-rw-r--r-- | ci.h | 3 | ||||
-rw-r--r-- | menu.c | 6 |
4 files changed, 15 insertions, 3 deletions
@@ -3871,3 +3871,5 @@ Video Disk Recorder Revision History - Improved displaying 'sub-title' and 'bottom text' in the CAM menu. - Added status message "Resetting CAM..." for an immediate feedback when the CAM reset has been triggered. +- The CAM menu now automatically updates itself in case of a progress display (as + used, for instance, when updating the firmware via satellite). @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: ci.c 1.28 2005/09/17 11:43:08 kls Exp $ + * $Id: ci.c 1.29 2005/10/02 12:51:42 kls Exp $ */ #include "ci.h" @@ -1229,6 +1229,11 @@ bool cCiMenu::AddEntry(char *s) return false; } +bool cCiMenu::HasUpdate(void) +{ + return mmi->HasUserIO(); +} + bool cCiMenu::Select(int Index) { cMutexLock MutexLock(&mutex); @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: ci.h 1.14 2005/08/20 14:56:11 kls Exp $ + * $Id: ci.h 1.15 2005/10/02 12:51:22 kls Exp $ */ #ifndef __CI_H @@ -40,6 +40,7 @@ public: bool Selectable(void) { return selectable; } bool Select(int Index); bool Cancel(void); + bool HasUpdate(void); }; class cCiEnquiry { @@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: menu.c 1.366 2005/10/02 10:08:57 kls Exp $ + * $Id: menu.c 1.367 2005/10/02 12:56:19 kls Exp $ */ #include "menu.h" @@ -1338,6 +1338,10 @@ eOSState cMenuCam::ProcessKey(eKeys Key) default: break; } } + if (ciMenu->HasUpdate()) { + selected = true; // just to not call ciMenu->Cancel() + return osEnd; + } return state; } |