autotimer/epgrefresh: follow webif change
[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                 EPGRefreshChangeSettingsResource, \
7                 EPGRefreshSettingsResource, \
8                 API_VERSION
9
10 root = EPGRefreshListServicesResource()
11 root.putChild("refresh", EPGRefreshStartRefreshResource())
12 root.putChild("add", EPGRefreshAddRemoveServiceResource(EPGRefreshAddRemoveServiceResource.TYPE_ADD))
13 root.putChild("del", EPGRefreshAddRemoveServiceResource(EPGRefreshAddRemoveServiceResource.TYPE_DEL))
14 root.putChild("set", EPGRefreshChangeSettingsResource())
15 root.putChild("get", EPGRefreshSettingsResource())
16 addExternalChild( ("epgrefresh", root, "EPGRefresh-Plugin", API_VERSION) )
17