add audioselection, removed democode
[enigma2.git] / lib / dvb / dvbtime.h
index 59a26c2..fbc82f0 100644 (file)
@@ -3,7 +3,7 @@
 
 #include <lib/base/eerror.h>
 #include <lib/dvb/esection.h>
 
 #include <lib/base/eerror.h>
 #include <lib/dvb/esection.h>
-#include <lib/dvb_si/tdt.h>
+#include <dvbsi++/time_date_section.h>
 
 class eDVBChannel;
 
 
 class eDVBChannel;
 
@@ -33,19 +33,22 @@ public:
 
 class eDVBLocalTimeHandler: public Object
 {
 
 class eDVBLocalTimeHandler: public Object
 {
+       struct channel_data
+       {
+               TDT *tdt;
+               ePtr<eDVBChannel> channel;
+               ePtr<eConnection> m_stateChangedConn;
+       };
        friend class TDT;
        DECLARE_REF(eDVBLocalTimeHandler)
        friend class TDT;
        DECLARE_REF(eDVBLocalTimeHandler)
-       std::map<iDVBChannel*, TDT*> m_active_tables;
+       std::map<iDVBChannel*, channel_data> m_knownChannels;
        std::map<eDVBChannelID,int> m_timeOffsetMap;
        ePtr<eConnection> m_chanAddedConn;
        std::map<eDVBChannelID,int> m_timeOffsetMap;
        ePtr<eConnection> m_chanAddedConn;
-       ePtr<eConnection> m_chanRemovedConn;
-       ePtr<eConnection> m_chanRunningConn;
        bool m_time_ready;
        int m_time_difference;
        int m_last_tp_time_difference;
        void DVBChannelAdded(eDVBChannel*);
        bool m_time_ready;
        int m_time_difference;
        int m_last_tp_time_difference;
        void DVBChannelAdded(eDVBChannel*);
-       void DVBChannelRemoved(eDVBChannel*);
-       void DVBChannelRunning(iDVBChannel*);
+       void DVBChannelStateChanged(iDVBChannel*);
        void readTimeOffsetData(const char*);
        void writeTimeOffsetData(const char*);
        void updateTime(time_t tp_time, eDVBChannel*);
        void readTimeOffsetData(const char*);
        void writeTimeOffsetData(const char*);
        void updateTime(time_t tp_time, eDVBChannel*);