* Follow changes from tmbinc for string encoding
[enigma2-plugins.git] / webinterface / src / WebComponents / Sources / Volume.py
1 from Components.Sources.Source import Source
2 from GlobalActions import globalActionMap
3
4 from time import time
5
6 class Volume( Source):
7     def __init__(self, navcore):
8         Source.__init__(self)
9         
10         
11     def handleCommand(self, cmd):
12         global globalActionMap
13         if cmd == "up":
14             globalActionMap.actions["volumeUp"]()
15         elif cmd == "down":
16             globalActionMap.actions["volumeDown"]()
17         elif cmd == "mute":
18             globalActionMap.actions["volumeMute"]()
19         elif cmd == "value":
20             pass 
21         else:
22             print "unknow Volume handle command",cmd
23