diff options
| author | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-12 11:20:28 +0000 |
|---|---|---|
| committer | Andreas Monzner <andreas.monzner@multimedia-labs.de> | 2005-12-12 11:20:28 +0000 |
| commit | c2f28d655c5a33f04bc340504116496c93c47f2b (patch) | |
| tree | 2479885edb3bdcba2adbf44e44d22f5a2e2b6471 /lib | |
| parent | 3897622007084c0032cfea1a0a73791bbc1525c2 (diff) | |
| download | enigma2-c2f28d655c5a33f04bc340504116496c93c47f2b.tar.gz enigma2-c2f28d655c5a33f04bc340504116496c93c47f2b.zip | |
small optimiziations
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dvb/db.cpp | 5 | ||||
| -rw-r--r-- | lib/dvb/idvb.h | 2 | ||||
| -rw-r--r-- | lib/gui/elistboxcontent.h | 1 | ||||
| -rw-r--r-- | lib/service/iservice.h | 2 | ||||
| -rw-r--r-- | lib/service/service.cpp | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/lib/dvb/db.cpp b/lib/dvb/db.cpp index 658c5866..17196f05 100644 --- a/lib/dvb/db.cpp +++ b/lib/dvb/db.cpp @@ -149,10 +149,9 @@ RESULT eDVBService::getName(const eServiceReference &ref, std::string &name) return 0; } -RESULT eDVBService::getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &ptr) +RESULT eDVBService::getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &ptr, time_t start_time) { - time_t t=-1; - return eEPGCache::getInstance()->lookupEventTime(ref, t, ptr); + return eEPGCache::getInstance()->lookupEventTime(ref, start_time, ptr); } bool eDVBService::isPlayable(const eServiceReference &ref, const eServiceReference &ignore) diff --git a/lib/dvb/idvb.h b/lib/dvb/idvb.h index 460806a2..c60f5698 100644 --- a/lib/dvb/idvb.h +++ b/lib/dvb/idvb.h @@ -224,7 +224,7 @@ public: // iStaticServiceInformation RESULT getName(const eServiceReference &ref, std::string &name); - RESULT getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &ptr); + RESULT getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &ptr, time_t start_time); bool isPlayable(const eServiceReference &ref, const eServiceReference &ignore); /* for filtering: */ diff --git a/lib/gui/elistboxcontent.h b/lib/gui/elistboxcontent.h index 11a9d080..4d2c46b5 100644 --- a/lib/gui/elistboxcontent.h +++ b/lib/gui/elistboxcontent.h @@ -85,6 +85,7 @@ public: int getCurrentSelectionIndex() { return m_cursor; } void invalidateEntry(int index); void invalidate(); + eSize getItemSize() { return m_itemsize; } #ifndef SWIG protected: void cursorHome(); diff --git a/lib/service/iservice.h b/lib/service/iservice.h index a195009a..962e4a95 100644 --- a/lib/service/iservice.h +++ b/lib/service/iservice.h @@ -177,7 +177,7 @@ public: // doesn't need to be implemented, should return -1 then. virtual int getLength(const eServiceReference &ref); - virtual SWIG_VOID(RESULT) getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &SWIG_OUTPUT); + virtual SWIG_VOID(RESULT) getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &SWIG_OUTPUT, time_t start_time=0); // returns true when not implemented virtual bool isPlayable(const eServiceReference &ref, const eServiceReference &ignore); }; diff --git a/lib/service/service.cpp b/lib/service/service.cpp index c043a583..cc8a9315 100644 --- a/lib/service/service.cpp +++ b/lib/service/service.cpp @@ -133,7 +133,7 @@ RESULT iServiceHandler::info(const eServiceReference &, ePtr<iStaticServiceInfor #include <lib/service/event.h> -RESULT iStaticServiceInformation::getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &evt) +RESULT iStaticServiceInformation::getEvent(const eServiceReference &ref, ePtr<eServiceEvent> &evt, time_t start_time) { evt = 0; return -1; |
