From 20fdb2a2af40da98427a702a03a79b1fbec3d7af Mon Sep 17 00:00:00 2001 From: Andreas Monzner Date: Sat, 3 Dec 2005 12:37:40 +0000 Subject: remove non working indication of playable services in servicelist get current event in listboxservicecontent via iStaticServiceInformation instead of use directly eEPGCache --- lib/service/servicedvb.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'lib/service/servicedvb.cpp') diff --git a/lib/service/servicedvb.cpp b/lib/service/servicedvb.cpp index 14326914..96f942ab 100644 --- a/lib/service/servicedvb.cpp +++ b/lib/service/servicedvb.cpp @@ -25,7 +25,7 @@ DEFINE_REF(eStaticServiceDVBInformation); RESULT eStaticServiceDVBInformation::getName(const eServiceReference &ref, std::string &name) { - if ( ref.name.length() ) + if ( !ref.name.empty() ) { name = ref.name; return 0; @@ -358,25 +358,25 @@ RESULT eServiceFactoryDVB::list(const eServiceReference &ref, ePtr &ptr) { - /* do we have a PVR service? */ + /* is a listable service? */ if ((ref.flags & eServiceReference::flagDirectory) == eServiceReference::flagDirectory) // bouquet { - if ( !ref.name.empty() ) + if ( !ref.name.empty() ) // satellites or providers list ptr = new eStaticServiceDVBInformation; - else + else // a dvb bouquet ptr = new eStaticServiceDVBBouquetInformation; return 0; } - else if (!ref.path.empty()) + else if (!ref.path.empty()) /* do we have a PVR service? */ { ptr = new eStaticServiceDVBPVRInformation(ref); return 0; } - else + else // normal dvb service { ePtr service; int r = lookupService(service, ref); - if (r) + if (r) // no eDVBService avail for this reference ( Linkage Services... ) ptr = new eStaticServiceDVBInformation; else /* eDVBService has the iStaticServiceInformation interface, so we pass it here. */ -- cgit v1.2.3