aboutsummaryrefslogtreecommitdiff
path: root/lib/service/listboxservice.cpp
diff options
context:
space:
mode:
authorAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-03 12:37:40 +0000
committerAndreas Monzner <andreas.monzner@multimedia-labs.de>2005-12-03 12:37:40 +0000
commit20fdb2a2af40da98427a702a03a79b1fbec3d7af (patch)
treeb0c7cbc1d6bda798795c27e23383436277189f01 /lib/service/listboxservice.cpp
parent738b4b576eee308b08d3769f6139f989f970a62d (diff)
downloadenigma2-20fdb2a2af40da98427a702a03a79b1fbec3d7af.tar.gz
enigma2-20fdb2a2af40da98427a702a03a79b1fbec3d7af.zip
remove non working indication of playable services in servicelist
get current event in listboxservicecontent via iStaticServiceInformation instead of use directly eEPGCache
Diffstat (limited to 'lib/service/listboxservice.cpp')
-rw-r--r--lib/service/listboxservice.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/lib/service/listboxservice.cpp b/lib/service/listboxservice.cpp
index 9d68a5e8..4e20fcb7 100644
--- a/lib/service/listboxservice.cpp
+++ b/lib/service/listboxservice.cpp
@@ -166,12 +166,10 @@ void eListboxServiceContent::sort()
DEFINE_REF(eListboxServiceContent);
eListboxServiceContent::eListboxServiceContent()
- :m_epgcache(eEPGCache::getInstance()), m_visual_mode(visModeSimple), m_size(0), m_current_marked(false), m_numberoffset(0)
+ :m_visual_mode(visModeSimple), m_size(0), m_current_marked(false), m_numberoffset(0)
{
cursorHome();
eServiceCenter::getInstance(m_service_center);
- if (eDVBResourceManager::getInstance(m_res_mgr))
- eDebug("no resource manager");
}
void eListboxServiceContent::cursorHome()
@@ -339,17 +337,15 @@ void eListboxServiceContent::paint(gPainter &painter, eWindowStyle &style, const
bool tuneable=true;
+#if 0
if (m_res_mgr && cursorValid() && !((m_cursor->flags & eServiceReference::flagDirectory) == eServiceReference::flagDirectory))
{
- if ( eDVBServicePMTHandler::getCount() > 1 )
- {
- eServiceReferenceDVB &ref = (eServiceReferenceDVB&) *m_cursor;
- eUsePtr<iDVBChannel> channel;
- eDVBChannelID chid;
- ref.getChannelID(chid);
- tuneable = !m_res_mgr->allocateChannel(chid, channel, true); // no real allocate channel..just fake
- }
+ eServiceReferenceDVB &ref = (eServiceReferenceDVB&) *m_cursor;
+ eDVBChannelID chid;
+ ref.getChannelID(chid);
+ tuneable = m_res_mgr->canAllocateChannel(chid);
}
+#endif
if (m_current_marked && selected)
style.setStyle(painter, eWindowStyle::styleListboxMarked);
@@ -401,8 +397,7 @@ void eListboxServiceContent::paint(gPainter &painter, eWindowStyle &style, const
case celServiceInfo:
{
ePtr<eServiceEvent> evt;
- time_t t=-1;
- if ( !m_epgcache->lookupEventTime(*m_cursor, t, evt) )
+ if ( !service_info->getEvent(*m_cursor, evt) )
text = '(' + evt->getEventName() + ')';
else
continue;