From: Andreas Monzner Date: Sat, 31 Dec 2005 16:19:23 +0000 (+0000) Subject: add ability to get the eventid from a eServiceEventPtr X-Git-Tag: 2.6.0~4569 X-Git-Url: https://git.cweiske.de/enigma2.git/commitdiff_plain/62df50fabcb503c81aaaac60819bda2578317323?hp=f7450135060448745fa3a2b69ae26ec1a27d5a14 add ability to get the eventid from a eServiceEventPtr --- diff --git a/lib/service/event.cpp b/lib/service/event.cpp index 8a75b9e9..f84c38b7 100644 --- a/lib/service/event.cpp +++ b/lib/service/event.cpp @@ -163,6 +163,7 @@ RESULT eServiceEvent::parseFrom(Event *evt, int tsidonid) (stime_bcd >> 8)&0xFF, stime_bcd & 0xFF ); + m_event_id = evt->getEventId(); m_duration = fromBCD(duration>>16)*3600+fromBCD(duration>>8)*60+fromBCD(duration); std::string country="de_DE"; // TODO use local data here for (int i=0; i < MAX_LANG; i++) diff --git a/lib/service/event.h b/lib/service/event.h index 550d9a85..0a6891aa 100644 --- a/lib/service/event.h +++ b/lib/service/event.h @@ -37,6 +37,7 @@ class eServiceEvent: public iObject std::list m_linkage_services; time_t m_begin; int m_duration; + int m_event_id; std::string m_event_name, m_short_description, m_extended_description; // .. additional info public: @@ -45,6 +46,7 @@ public: #endif time_t getBeginTime() const { return m_begin; } int getDuration() const { return m_duration; } + int getEventId() const { return m_event_id; } std::string getEventName() const { return m_event_name; } std::string getShortDescription() const { return m_short_description; } std::string getExtendedDescription() const { return m_extended_description; }