de.beamertool.viewer.data
Class DataController

java.lang.Object
  extended by de.beamertool.viewer.data.DataController
All Implemented Interfaces:
ApprovedMsgListener, CloseMainWindowListener

public class DataController
extends Object
implements CloseMainWindowListener, ApprovedMsgListener

This class handles all incomming data It has a sms pool and sends every now and then a commercial

Author:
ocm-zeeman

Constructor Summary
DataController(Settings settings)
          Initilizes all objects and starts everything to get the data
 
Method Summary
 void addApprovedMsg(InboundMessage newSms)
           
 void addApprovedMsg(LinkedList<? extends InboundMessage> newSms)
           
 void addDataListener(DataListener newListener)
          Adds an listener to the listenerlist
 void addRemoteControlListener(RemoteControlListener newListener)
           
 void mainWindowClosed()
           
 void setUnapprovedMsgListener(UnapprovedMsgListener newListener)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataController

public DataController(Settings settings)
Initilizes all objects and starts everything to get the data

Method Detail

addApprovedMsg

public void addApprovedMsg(InboundMessage newSms)
Specified by:
addApprovedMsg in interface ApprovedMsgListener

addApprovedMsg

public void addApprovedMsg(LinkedList<? extends InboundMessage> newSms)
Specified by:
addApprovedMsg in interface ApprovedMsgListener

addDataListener

public void addDataListener(DataListener newListener)
Adds an listener to the listenerlist

Parameters:
newListener - - the new listener who wants to be informed about new data

addRemoteControlListener

public void addRemoteControlListener(RemoteControlListener newListener)

mainWindowClosed

public void mainWindowClosed()
Specified by:
mainWindowClosed in interface CloseMainWindowListener

setUnapprovedMsgListener

public void setUnapprovedMsgListener(UnapprovedMsgListener newListener)