write leaveTransponder message to camd.socket
[enigma2.git] / lib / dvb / pmt.h
index d1e28703ef26654b85f87a3065efa792c093509e..9e7c52740e390b8c38040f577a1f723af2e28592 100644 (file)
 class eDVBCAService;
 class eDVBScan;
 
+struct channel_data: public Object
+{
+       ePtr<eDVBChannel> m_channel;
+       ePtr<eConnection> m_stateChangedConn;
+       int m_prevChannelState;
+       int m_dataDemux;
+};
+
+// TODO .. put all static stuff into a 'eDVBCAServiceHandler class'
+
 typedef std::map<eServiceReferenceDVB, eDVBCAService*> CAServiceMap;
+typedef std::map<iDVBChannel*, channel_data*> ChannelMap;
 
 class eDVBCAService: public Object
 {
@@ -36,10 +47,17 @@ class eDVBCAService: public Object
        void sendCAPMT();
        void Connect();
 
+       static void DVBChannelAdded(eDVBChannel*);
+       static void DVBChannelStateChanged(iDVBChannel*);
        static CAServiceMap exist;
+       static ChannelMap exist_channels;
+       static ePtr<eConnection> m_chanAddedConn;
+       static channel_data *getChannelData(eDVBChannelID &chid);
+
        eDVBCAService();
        ~eDVBCAService();
 public:
+       static void registerChannelCallback(eDVBResourceManager *res_mgr);
        static RESULT register_service( const eServiceReferenceDVB &ref, int demux_nums[2], eDVBCAService *&caservice );
        static RESULT unregister_service( const eServiceReferenceDVB &ref, int demux_nums[2], eTable<ProgramMapSection> *ptr );
        void buildCAPMT(eTable<ProgramMapSection> *ptr);