show service name in movielist
authorStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 3 Apr 2006 07:46:11 +0000 (07:46 +0000)
committerStefan Pluecken <stefan.pluecken@multimedia-labs.de>
Mon, 3 Apr 2006 07:46:11 +0000 (07:46 +0000)
lib/python/Components/MovieList.py
lib/service/iservice.h
lib/service/servicedvb.cpp

index bc65911..a921b8d 100644 (file)
@@ -32,7 +32,10 @@ def MovieListEntry(serviceref, serviceHandler):
        begin = info.getInfo(serviceref, iServiceInformation.sTimeCreate)
        res = [ (serviceref, begin) ]
 
-       res.append(MultiContentEntryText(pos=(0, 0), size=(560, 30), font = 0, flags = RT_HALIGN_LEFT, text = info.getName(serviceref)))
+       res.append(MultiContentEntryText(pos=(0, 0), size=(420, 30), font = 0, flags = RT_HALIGN_LEFT, text = info.getName(serviceref)))
+       service = ServiceReference(info.getInfoString(serviceref, iServiceInformation.sServiceref))
+       if service is not None:
+               res.append(MultiContentEntryText(pos=(420, 0), size=(140, 30), font = 0, flags = RT_HALIGN_RIGHT, text = service.getServiceName()))
        
        description = info.getInfoString(serviceref, iServiceInformation.sDescription)
 
@@ -53,7 +56,7 @@ class MovieList(HTMLComponent, GUIComponent):
                self.l = eListboxPythonMultiContent()
                if root is not None:
                        self.reload(root)
-               self.l.setFont(0, gFont("Regular", 30))
+               self.l.setFont(0, gFont("Regular", 22))
                self.l.setFont(1, gFont("Regular", 18))
                
        def moveToIndex(self, index):
index e74fa0a..822910f 100644 (file)
@@ -251,6 +251,7 @@ public:
                sProvider,
                
                sDescription,
+               sServiceref,
                sTimeCreate,    // unix time or string
                
                sTitle,
index 033d13d..94c31b4 100644 (file)
@@ -186,6 +186,8 @@ int eStaticServiceDVBPVRInformation::getInfo(const eServiceReference &ref, int w
        {
        case iServiceInformation::sDescription:
                return iServiceInformation::resIsString;
+       case iServiceInformation::sServiceref:
+               return iServiceInformation::resIsString;
        case iServiceInformation::sTimeCreate:
                if (m_parser.m_time_create)
                        return m_parser.m_time_create;
@@ -202,6 +204,8 @@ std::string eStaticServiceDVBPVRInformation::getInfoString(const eServiceReferen
        {
        case iServiceInformation::sDescription:
                return m_parser.m_description;
+       case iServiceInformation::sServiceref:
+               return m_parser.m_ref.toString();
        default:
                return "";
        }