X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/fb64ecb2733e4e4ebbc180466c4202645f18f9bc..ecbf90bbb6ac4e17b6f8bb89fe7497b192650d0d:/lib/dvb_ci/dvbci_ui.cpp diff --git a/lib/dvb_ci/dvbci_ui.cpp b/lib/dvb_ci/dvbci_ui.cpp index 56236afd..af613c43 100644 --- a/lib/dvb_ci/dvbci_ui.cpp +++ b/lib/dvb_ci/dvbci_ui.cpp @@ -5,74 +5,70 @@ #include #include -#include - #include #include -#include #include +#include + +#define MAX_SLOTS 4 -eDVBCI_UI *eDVBCI_UI::instance = 0; +eDVBCI_UI *eDVBCI_UI::instance; eDVBCI_UI::eDVBCI_UI() + :eMMI_UI(MAX_SLOTS) { - int i; - - for(i=0;iinitialize(slot); } -void eDVBCI_UI::setState(int slot, int newState) +void eDVBCI_UI::setReset(int slot) { - state[slot] = newState; + eDVBCIInterfaces::getInstance()->reset(slot); } -std::string eDVBCI_UI::getAppName(int slot) +int eDVBCI_UI::startMMI(int slot) { - return appName; + eDVBCIInterfaces::getInstance()->startMMI(slot); + return 0; } -void eDVBCI_UI::setAppName(int slot, const char *name) +int eDVBCI_UI::stopMMI(int slot) { - printf("set name to -%c-\n", name); - appName = name; + eDVBCIInterfaces::getInstance()->stopMMI(slot); + return 0; } -void eDVBCI_UI::setReset(int slot) +int eDVBCI_UI::answerMenu(int slot, int answer) { - eDVBCIInterfaces::getInstance()->reset(slot); + eDVBCIInterfaces::getInstance()->answerText(slot, answer); + return 0; } -int eDVBCI_UI::startMMI(int slot) +int eDVBCI_UI::answerEnq(int slot, char *value) { - eDVBCIInterfaces::getInstance()->startMMI(slot); + eDVBCIInterfaces::getInstance()->answerEnq(slot, value); + return 0; } -int eDVBCI_UI::initialize(int slot) +int eDVBCI_UI::cancelEnq(int slot) { - eDVBCIInterfaces::getInstance()->initialize(slot); + eDVBCIInterfaces::getInstance()->cancelEnq(slot); + return 0; } -int eDVBCI_UI::answerMMI(int slot, int answer, char *value=0) +int eDVBCI_UI::getMMIState(int slot) { - eDVBCIInterfaces::getInstance()->answerMMI(slot, answer, value); + return eDVBCIInterfaces::getInstance()->getMMIState(slot); } //FIXME: correct "run/startlevel"