de.beamertool.viewer.remotecontrol
Class RemoteControl

java.lang.Object
  extended by de.beamertool.viewer.remotecontrol.RemoteControl
All Implemented Interfaces:
UnapprovedMsgListener

public class RemoteControl
extends Object
implements UnapprovedMsgListener

This class is the "heart" of the remote control feature.
It handles the listener and initalizes cajo.

Author:
ocm-zeeman

Constructor Summary
RemoteControl(Settings settings)
          Initalizes all fields and starts cajo
 
Method Summary
 void addApprovedMsgListener(ApprovedMsgListener newListener)
          Adds alister to the list of listener to recieve approved messages
 void addRemoteControlListener(RemoteControlListener newListener)
          Adds a lister to the list of listener to recieve events from beamer-tool_admin (like cry, say and so on)
 void newMsg(InboundMessage newSms)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteControl

public RemoteControl(Settings settings)
Initalizes all fields and starts cajo

Parameters:
settings - - the application settings to use
Method Detail

addApprovedMsgListener

public void addApprovedMsgListener(ApprovedMsgListener newListener)
Adds alister to the list of listener to recieve approved messages

Parameters:
newListener - - the new listener to add to the listener list

addRemoteControlListener

public void addRemoteControlListener(RemoteControlListener newListener)
Adds a lister to the list of listener to recieve events from beamer-tool_admin (like cry, say and so on)

Parameters:
newListener - the new listener to add to the listener list

newMsg

public void newMsg(InboundMessage newSms)
Specified by:
newMsg in interface UnapprovedMsgListener