Changeset 80

Show
Ignore:
Timestamp:
07/02/08 00:52:42 (5 months ago)
Author:
devja..@anarkystic.com
Message:

public methods for the avr3085

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fizzjik/fizzjik/io/avr3085.py

    r77 r80  
    1111from fizzjik.event import Event 
    1212from fizzjik.interfaces import IController, implements 
     13from fizzjik.config import public_method 
    1314 
    1415class AvrEvent(Event): 
     
    7879    hub.addObserver(AvrPowerEvent, self._onPowerChange) 
    7980   
     81  @public_method 
    8082  def sendCommand(self, cmd, hold=0.2): 
    8183    d = self._cmdLock.acquire() 
     
    8991   
    9092  # High-level commands 
     93  @public_method 
    9194  def setVolume(self, zone, volume): 
    9295    cmd_prefix = {'1': 'MV', '2': 'Z2', '3': 'Z1'} 
     
    9497    self.sendCommand(cmd) 
    9598 
     99  @public_method 
    96100  def setSource(self, zone, source): 
    97101    cmd_prefix = {'1': 'SI', '2': 'Z2', '3': 'Z1'} 
     
    99103    self.sendCommand(cmd, hold=2) 
    100104 
     105  @public_method 
    101106  def setPower(self, zone, status): 
    102107    cmd_prefix = {'1': 'ZM', '2': 'Z2', '3': 'Z1'} 
     
    104109    self.sendCommand(cmd, hold=2) 
    105110 
     111  @public_method 
    106112  def volumeUp(self, zone): 
    107113    cmd_prefix = {'1': 'MV', '2': 'Z2', '3': 'Z1'} 
     
    109115    self.sendCommand(cmd) 
    110116 
     117  @public_method 
    111118  def volumeDown(self, zone): 
    112119    cmd_prefix = {'1': 'MV', '2': 'Z2', '3': 'Z1'} 
  • fizzjik/fizzjik/io/basic.py

    r73 r80  
    99from fizzjik.event import Event 
    1010from fizzjik.config import ConfigurableTCPServer, ConfigurableService, \ 
    11         if_config 
     11        if_config, public_method 
    1212 
    1313 
     
    4141        self.parent.observe(evt) 
    4242 
     43    @public_method 
     44    def receiveLine(self, line): 
     45        self.observe(self.builder(line.strip())) 
    4346 
    4447class Input(ConfigurableService):