eServiceCenterPtr, iListableServicePtr, \
iStaticServiceInformationPtr
-
-
RT_HALIGN_LEFT = 0
RT_HALIGN_RIGHT = 1
RT_HALIGN_CENTER = 2
def MovieListEntry(serviceref, serviceHandler):
res = [ serviceref ]
- info = iStaticServiceInformationPtr()
-
- if serviceHandler.info(serviceref, info):
+ info = serviceHandler.info(serviceref)
+
+ if info is None:
# ignore service which refuse to info
- del info
return
len = info.getLength(serviceref)
# nice list
self.list = [ ]
+ self.root = root
- serviceHandler = eServiceCenterPtr()
- eServiceCenter.getInstance(serviceHandler)
- list = iListableServicePtr()
+ serviceHandler = eServiceCenter.getInstance()
+ list = serviceHandler.list(root)
- if serviceHandler.list(root, list):
+ if list is None:
raise "listing of movies failed"
movieList = [ ]
# now process them...
for ref in movieList:
self.list.append(MovieListEntry(ref, serviceHandler))
+
+ def reload(self):
+ self.load(self.root)
+ self.l.setList(self.list)