add ability to get the eventid from a eServiceEventPtr
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 31 Dec 2005 16:19:23 +0000 (16:19 +0000)
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>
Sat, 31 Dec 2005 16:19:23 +0000 (16:19 +0000)
lib/service/event.cpp
lib/service/event.h

index 8a75b9e989fa4a8bc007a91f6708cf3b0b4ee7ff..f84c38b7ed250580458cb65ecc75a975da8afb58 100644 (file)
@@ -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++)
index 550d9a851245dd8a64c427e44ab2e552df0646d9..0a6891aac4c738fcc53fc7125747fe3070387e72 100644 (file)
@@ -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; }