X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/8aa3def3cf1ca524036897c04278aa0598859534..cab018779de4f2f01e0fe651e71112754ebd0ef8:/lib/dvb/dvbtime.h?ds=sidebyside diff --git a/lib/dvb/dvbtime.h b/lib/dvb/dvbtime.h index c4419652..ffcfaa41 100644 --- a/lib/dvb/dvbtime.h +++ b/lib/dvb/dvbtime.h @@ -32,7 +32,7 @@ class TDT: public eGTable eDVBChannel *chan; ePtr demux; eTimer m_interval_timer; - int createTable(int nr, const __u8 *data, unsigned int max); + int createTable(unsigned int nr, const __u8 *data, unsigned int max); void ready(int); int update_count; public: @@ -46,6 +46,7 @@ public: class eDVBLocalTimeHandler: public Object { + DECLARE_REF(eDVBLocalTimeHandler); struct channel_data { TDT *tdt; @@ -54,7 +55,6 @@ class eDVBLocalTimeHandler: public Object int m_prevChannelState; }; friend class TDT; - DECLARE_REF(eDVBLocalTimeHandler) std::map m_knownChannels; std::map m_timeOffsetMap; ePtr m_chanAddedConn; @@ -73,13 +73,11 @@ class eDVBLocalTimeHandler: public Object #endif public: #ifndef SWIG - PSignal0 m_timeUpdated; eDVBLocalTimeHandler(); ~eDVBLocalTimeHandler(); #endif - time_t nowTime() const { return m_time_ready ? ::time(0)+m_time_difference : -1; } + PSignal0 m_timeUpdated; bool ready() const { return m_time_ready; } - int difference() const { return m_time_difference; } static eDVBLocalTimeHandler *getInstance() { return instance; } };