- info = serviceHandler.info(serviceref)
-
- if info is None:
- # ignore service which refuse to info
- return
-
- len = info.getLength(serviceref)
- if len:
- len = "%d:%02d" % (len / 60, len % 60)
- else:
- len = "?:??"
-
- res.append((0, 0, 0, 560, 30, 0, RT_HALIGN_LEFT, info.getName(serviceref)))
-
- description = info.getInfoString(serviceref, iServiceInformation.sDescription)
- begin = info.getInfo(serviceref, iServiceInformation.sTimeCreate)
-
- begin_string = ""
- if begin > 0:
- t = FuzzyTime(begin)
- begin_string = t[0] + ", " + t[1]
-
- res.append((eListboxPythonMultiContent.TYPE_TEXT, 0, 30, 560, 20, 1, RT_HALIGN_LEFT, description))
- res.append((eListboxPythonMultiContent.TYPE_TEXT, 0, 50, 270, 20, 1, RT_HALIGN_LEFT, begin_string))
- res.append((eListboxPythonMultiContent.TYPE_TEXT, 290, 50, 270, 20, 1, RT_HALIGN_RIGHT, len))
-
- return res
+ description = info.getInfoString(serviceref, iServiceInformation.sDescription)
+
+ begin_string = ""
+ if begin > 0:
+ t = FuzzyTime(begin)
+ begin_string = t[0] + ", " + t[1]
+
+ res.append(MultiContentEntryText(pos=(0, 30), size=(560, 20), font=1, flags=RT_HALIGN_LEFT, text=description))
+ res.append(MultiContentEntryText(pos=(0, 50), size=(270, 20), font=1, flags=RT_HALIGN_LEFT, text=begin_string))
+ res.append(MultiContentEntryText(pos=(290, 50), size=(270, 20), font=1, flags=RT_HALIGN_RIGHT, text=len))
+
+ return res