change API of webif hooks a bit
[enigma2-plugins.git] / epgrefresh / src / webinterface / EPGRefresh.py
1 from Plugins.Extensions.WebInterface.WebChilds.Toplevel import addExternalChild
2 from Plugins.Extensions.EPGRefresh.EPGRefreshResource import \
3                 EPGRefreshStartRefreshResource, \
4                 EPGRefreshAddRemoveServiceResource, \
5                 EPGRefreshListServicesResource
6
7 root = EPGRefreshListServicesResource()
8 root.putChild("refresh", EPGRefreshStartRefreshResource())
9 root.putChild("add", EPGRefreshAddRemoveServiceResource(EPGRefreshAddRemoveServiceResource.TYPE_ADD))
10 root.putChild("del", EPGRefreshAddRemoveServiceResource(EPGRefreshAddRemoveServiceResource.TYPE_DEL))
11 addExternalChild( ("epgrefresh", root) )
12