base
Class StationsList

java.lang.Object
  extended by base.StationsList

public class StationsList
extends Object

The StationsList provides functionality to manage a complete list of TV stations that is available for the main application


Field Summary
 Vector<StationInfo> stations
           
 
Constructor Summary
StationsList()
           
 
Method Summary
 void downloadStationLogos()
          This method is executed whenever new stations have been scanned or whenever the name of a station has been changed by the user.
 String getChannel(RecordInfo info)
          This method is used by the recording mechanism.
 void presort()
          This method is called after the main application scanned for new TV stations.
 void set(DefaultListModel list)
          This method replaces the current list of stations by a new one.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

stations

public Vector<StationInfo> stations
Constructor Detail

StationsList

public StationsList()
Method Detail

presort

public void presort()
This method is called after the main application scanned for new TV stations. It performs some logic presorting that tries to put the TV stations within the own stations list into a better order.
TODO: currently the presorting only fits for germany, a parameter has to be introduced that identifies a country and provides a different presorting list that fits better for this country


downloadStationLogos

public void downloadStationLogos()
This method is executed whenever new stations have been scanned or whenever the name of a station has been changed by the user. It invokes downloading of the logos of all used stations in order to display them within the stations list later. These logos are buffered locally.


set

public void set(DefaultListModel list)
This method replaces the current list of stations by a new one.

Parameters:
list - the new list of TV stations that has to be managed by this object

getChannel

public String getChannel(RecordInfo info)
This method is used by the recording mechanism. Whenever a scheduled recording has to be activated this function is called to get the channel information for that recording

Parameters:
info - the RecordInfo object that contains the schedule data
Returns:
the name of the channel that has to be used by the TV card