set name and state when app-man is ready
[enigma2.git] / lib / dvb_ci / dvbci.h
index 961999e93b353408ec4e114ad2ae531aa63fcaf0..eb4b6b041aca99d4976292f63246a9ce916a6f8b 100644 (file)
@@ -4,32 +4,37 @@
 #include <lib/base/ebase.h>
 
 class eDVBCISession;
+class eDVBCIApplicationManagerSession;
+class eDVBCICAManagerSession;
 
-class eDVBCISlot: public Object
+class eDVBCISlot: public iObject, public Object
 {
 DECLARE_REF(eDVBCISlot);
 private:
        int fd;
        void data(int);
-       eSocketNotifier *notifier_data;
-       void event(int);
-       eSocketNotifier *notifier_event;
-       
-       eDVBCISession *se;
+       eSocketNotifier *notifier;
+
+       int state;
+       enum {stateRemoved, stateInserted};     
 public:
        eDVBCISlot(eMainloop *context, int nr);
-       virtual ~eDVBCISlot();
+       ~eDVBCISlot();
+       
+       int send(const unsigned char *data, size_t len);
        
-       int eDVBCISlot::write(const unsigned char *data, size_t len);
+       eDVBCIApplicationManagerSession *application_manager;
+       eDVBCICAManagerSession *ca_manager;
 };
 
 class eDVBCIInterfaces
 {
+DECLARE_REF(eDVBCIInterfaces);
 private:
        eSmartPtrList<eDVBCISlot>       m_slots;
 public:
        eDVBCIInterfaces();
-       virtual ~eDVBCIInterfaces();
+       ~eDVBCIInterfaces();
 };
 
 #endif