diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-31 16:19:23 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-31 16:19:23 +0000 |
| commit | 62df50fabcb503c81aaaac60819bda2578317323 (patch) | |
| tree | bb0ce762931911f4023dd732d40bfd1002582fe3 /lib | |
| parent | f7450135060448745fa3a2b69ae26ec1a27d5a14 (diff) | |
| download | enigma2-62df50fabcb503c81aaaac60819bda2578317323.tar.gz enigma2-62df50fabcb503c81aaaac60819bda2578317323.zip | |
add ability to get the eventid from a eServiceEventPtr
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/service/event.cpp | 1 | ||||
| -rw-r--r-- | lib/service/event.h | 2 |
2 files changed, 3 insertions, 0 deletions
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<eServiceReference> 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; } |
