de.beamertool.viewer.remotecontrol
Class RemoteControlMethods

java.lang.Object
  extended by de.beamertool.viewer.remotecontrol.RemoteControlMethods
All Implemented Interfaces:
DataListener, RemoteControlListener, RemoteControlMethodsMBean

public class RemoteControlMethods
extends Object
implements RemoteControlMethodsMBean

This class implements all nessassary methods for the remote control feature.

Author:
ocm-zeeman

Constructor Summary
RemoteControlMethods()
           
RemoteControlMethods(Collection<RemoteControlListener> listener, Collection<ApprovedMsgListener> apMsgListener)
          Initalize all fields
 
Method Summary
 void clearChat()
           
 SerBufferedImage getScreenshot()
           
 List<InboundMessage> getUnapprovedMessages()
          Get's all unapproved messages from beamer-tool for manual checking
 void newCommercial(String commercial)
          This method is called by the datacontroller if new commercials are availible for gui presentation.
 void newSms(InboundMessage sms)
          This method is called by the datacontroller if new messages are availible for gui presentation.
 void newSmsForApproval(InboundMessage newSms)
          Adds a list of messages to the list of unapproved messages
 int[] refreshDirs()
           
 void say(String sayText)
           
 void startCountdown(long countdown)
           
 void startCry(String cryText)
           
 void stopCountdown()
           
 void stopCry()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RemoteControlMethods

public RemoteControlMethods()

RemoteControlMethods

public RemoteControlMethods(Collection<RemoteControlListener> listener,
                            Collection<ApprovedMsgListener> apMsgListener)
Initalize all fields

Parameters:
listener - all listener which want to recieve admin events (say, cry and so on)
apMsgListener - all listner which want to recieve approved messages
Method Detail

clearChat

public void clearChat()
Specified by:
clearChat in interface RemoteControlListener

getScreenshot

public SerBufferedImage getScreenshot()
Specified by:
getScreenshot in interface RemoteControlListener

getUnapprovedMessages

public List<InboundMessage> getUnapprovedMessages()
Description copied from interface: RemoteControlMethodsMBean
Get's all unapproved messages from beamer-tool for manual checking

Specified by:
getUnapprovedMessages in interface RemoteControlMethodsMBean
Returns:
- all unapproved messages

newCommercial

public void newCommercial(String commercial)
Description copied from interface: DataListener
This method is called by the datacontroller if new commercials are availible for gui presentation.

Specified by:
newCommercial in interface DataListener

newSms

public void newSms(InboundMessage sms)
Description copied from interface: DataListener
This method is called by the datacontroller if new messages are availible for gui presentation.

Specified by:
newSms in interface DataListener

newSmsForApproval

public void newSmsForApproval(InboundMessage newSms)
Adds a list of messages to the list of unapproved messages

Parameters:
newSms - - the new messages for approval

refreshDirs

public int[] refreshDirs()
Specified by:
refreshDirs in interface RemoteControlListener

say

public void say(String sayText)
Specified by:
say in interface RemoteControlListener

startCountdown

public void startCountdown(long countdown)
Specified by:
startCountdown in interface RemoteControlListener

startCry

public void startCry(String cryText)
Specified by:
startCry in interface RemoteControlListener

stopCountdown

public void stopCountdown()
Specified by:
stopCountdown in interface RemoteControlListener

stopCry

public void stopCry()
Specified by:
stopCry in interface RemoteControlListener