X-Git-Url: https://git.cweiske.de/enigma2.git/blobdiff_plain/2e90ba76e9e70689b9821c7daaf2110550e05520..cab018779de4f2f01e0fe651e71112754ebd0ef8:/lib/dvb/dvbtime.h diff --git a/lib/dvb/dvbtime.h b/lib/dvb/dvbtime.h index 2b07a250..ffcfaa41 100644 --- a/lib/dvb/dvbtime.h +++ b/lib/dvb/dvbtime.h @@ -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; } };