#include <lib/dvb_ci/dvbci_session.h>
#include <lib/dvb_ci/dvbci_ui.h>
+#include <lib/dvb_ci/dvbci_appmgr.h>
+#include <lib/dvb_ci/dvbci_mmi.h>
eDVBCIInterfaces *eDVBCIInterfaces::instance = 0;
return slot->reset();
}
+int eDVBCIInterfaces::initialize(int slotid)
+{
+ eDVBCISlot *slot;
+
+ if( (slot = getSlot(slotid)) == 0 )
+ return -1;
+
+ return slot->initialize();
+}
+
int eDVBCIInterfaces::startMMI(int slotid)
{
eDVBCISlot *slot;
return slot->startMMI();
}
+int eDVBCIInterfaces::stopMMI(int slotid)
+{
+ eDVBCISlot *slot;
+
+ if( (slot = getSlot(slotid)) == 0 )
+ return -1;
+
+ return slot->stopMMI();
+}
+
+int eDVBCIInterfaces::answerMMI(int slotid, int answer, char *value)
+{
+ eDVBCISlot *slot;
+
+ if( (slot = getSlot(slotid)) == 0 )
+ return -1;
+
+ return slot->answerMMI(answer, value);
+}
+
int eDVBCISlot::send(const unsigned char *data, size_t len)
{
int res;
notifier->setRequested(eSocketNotifier::Read);
//HACK
eDVBCI_UI::getInstance()->setState(0,0);
+ //FIXME; do in deconstructor of the appmgr class
+ application_manager = 0;
+ mmi_session = 0;
}
return;
}
eDVBCISlot::eDVBCISlot(eMainloop *context, int nr)
{
char filename[128];
+
+ application_manager = 0;
+ mmi_session = 0;
slotid = nr;
return 0;
}
+int eDVBCISlot::initialize()
+{
+ printf("edvbcislot: initialize()\n");
+ return 0;
+}
+
int eDVBCISlot::startMMI()
{
printf("edvbcislot: startMMI()\n");
+
+ if(application_manager)
+ application_manager->startMMI();
+
+ return 0;
+}
+
+int eDVBCISlot::stopMMI()
+{
+ printf("edvbcislot: stopMMI()\n");
+
+ if(mmi_session)
+ mmi_session->stopMMI();
+
+ return 0;
+}
+
+int eDVBCISlot::answerMMI(int answer, char *value)
+{
+ printf("edvbcislot: answerMMI()\n");
return 0;
}