diff options
| author | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-10 14:34:31 +0000 |
|---|---|---|
| committer | Ronny Strutz <ronny.strutz@multimedia-labs.de> | 2005-11-10 14:34:31 +0000 |
| commit | 0d39edd3d23d730eda0b7be1bfb2eaab0d8cc4eb (patch) | |
| tree | 93ab8e619e64fb895a7c87d3f8a3be6f039dac4e /lib/dvb_ci/dvbci_ui.cpp | |
| parent | 33ff21e8001266bd8d8f98e09540eef165790fca (diff) | |
| download | enigma2-0d39edd3d23d730eda0b7be1bfb2eaab0d8cc4eb.tar.gz enigma2-0d39edd3d23d730eda0b7be1bfb2eaab0d8cc4eb.zip | |
add some simple functions
Diffstat (limited to 'lib/dvb_ci/dvbci_ui.cpp')
| -rw-r--r-- | lib/dvb_ci/dvbci_ui.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/dvb_ci/dvbci_ui.cpp b/lib/dvb_ci/dvbci_ui.cpp index 8dfb87e3..3190bcf9 100644 --- a/lib/dvb_ci/dvbci_ui.cpp +++ b/lib/dvb_ci/dvbci_ui.cpp @@ -4,6 +4,8 @@ #include <fcntl.h> #include <sys/ioctl.h> +#include <string> + #include <lib/base/init.h> #include <lib/base/init_num.h> #include <lib/base/econfig.h> @@ -36,5 +38,21 @@ int eDVBCI_UI::getState(int slot) return state[slot]; //exploit me ;) } +void eDVBCI_UI::setState(int slot, int newState) +{ + state[slot] = newState; +} + +std::string eDVBCI_UI::getAppName(int slot) +{ + return appName; +} + +void eDVBCI_UI::setAppName(int slot, const char *name) +{ + printf("set name to -%c-\n", name); + appName = name; +} + //FIXME: correct "run/startlevel" eAutoInitP0<eDVBCI_UI> init_dvbciui(eAutoInitNumbers::rc, "DVB-CI UI"); |
