TV-Browser 2.7.5 API

captureplugin.drivers.dreambox
Class DreamboxConfig

java.lang.Object
  extended by captureplugin.drivers.dreambox.DreamboxConfig
All Implemented Interfaces:
ConfigIf

public class DreamboxConfig
extends Object
implements ConfigIf

The configuration for the dreambox


Constructor Summary
DreamboxConfig()
          Constructor
DreamboxConfig(DreamboxConfig dreamboxConfig)
          Clone another config
DreamboxConfig(ObjectInputStream stream)
          Read config from Stream
 
Method Summary
 DreamboxConfig clone()
           
 int getAfterTime()
           
 Channel getChannel(DreamboxChannel channel)
          Get a TVBrowser-channel for a DreamboxChannel
 String getDreamboxAddress()
           
 DreamboxChannel getDreamboxChannelForRef(String ref)
          Find a specific DreamboxChannel
 ExternalChannelIf getExternalChannel(Channel channel)
          Get a DreamboxChannel for a TVBrowser-channel
 ExternalChannelIf[] getExternalChannels()
           
 String getId()
           
 String getMediaplayer()
           
 String getPassword()
           
 int getPreTime()
           
 int getTimeout()
           
 TimeZone getTimeZone()
          Get the Timezone
 String getTimeZoneAsString()
          Get the Timezone as String
 String getUserName()
           
 void setAfterTime(int after)
          Set Time after recording
 void setBeforeTime(int before)
          Set Time before recording
 void setDreamboxAddress(String address)
           
 void setDreamboxChannels(DreamboxChannel[] channels)
           
 void setExternalChannel(Channel channel, ExternalChannelIf dreamboxChannel)
          Set the mapping between dreamboxchannel and subscribedchannel
 void setMediaplayer(String mediaplayer)
           
 void setPassword(char[] password)
           
 void setTimeout(int timeout)
           
 void setTimeZone(String timezone)
          Set the timezone
 void setUserName(String username)
           
 void writeData(ObjectOutputStream stream)
          Write config to stream
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DreamboxConfig

public DreamboxConfig()
Constructor


DreamboxConfig

public DreamboxConfig(DreamboxConfig dreamboxConfig)
Clone another config

Parameters:
dreamboxConfig - clone this config

DreamboxConfig

public DreamboxConfig(ObjectInputStream stream)
               throws IOException,
                      ClassNotFoundException
Read config from Stream

Parameters:
stream - read config from this stream
Throws:
IOException - io errors
ClassNotFoundException - class errors
Method Detail

getId

public String getId()
Returns:
ID of this Device

clone

public DreamboxConfig clone()
Overrides:
clone in class Object

writeData

public void writeData(ObjectOutputStream stream)
               throws IOException
Write config to stream

Parameters:
stream - write to this stream
Throws:
IOException - io errors

getDreamboxChannelForRef

public DreamboxChannel getDreamboxChannelForRef(String ref)
Find a specific DreamboxChannel

Parameters:
ref - ServiceReference
Returns:
Channel with specific ref, null, if not found

setDreamboxAddress

public void setDreamboxAddress(String address)
Parameters:
address - IP-Address of the dreambox.

getDreamboxAddress

public String getDreamboxAddress()
Returns:
IP-Address of the dreambox

setDreamboxChannels

public void setDreamboxChannels(DreamboxChannel[] channels)
Parameters:
channels - all channels on the dreambox

getExternalChannels

public ExternalChannelIf[] getExternalChannels()
Specified by:
getExternalChannels in interface ConfigIf
Returns:
all channels on the dreambox

getExternalChannel

public ExternalChannelIf getExternalChannel(Channel channel)
Get a DreamboxChannel for a TVBrowser-channel

Specified by:
getExternalChannel in interface ConfigIf
Parameters:
channel - get DreamboxChannel for this channel
Returns:
DreamboxChannel for given channel, null if not found

getChannel

public Channel getChannel(DreamboxChannel channel)
Get a TVBrowser-channel for a DreamboxChannel

Parameters:
channel - get TVBrowser channel for this channel
Returns:
TVBrowser channel for a given channel, null if not found

setExternalChannel

public void setExternalChannel(Channel channel,
                               ExternalChannelIf dreamboxChannel)
Set the mapping between dreamboxchannel and subscribedchannel

Specified by:
setExternalChannel in interface ConfigIf
Parameters:
channel - TVBrowser-Channel
dreamboxChannel - DreamboxChannel

getAfterTime

public int getAfterTime()
Returns:
Time after recording

setAfterTime

public void setAfterTime(int after)
Set Time after recording

Parameters:
after - After recording

getPreTime

public int getPreTime()
Returns:
Time before recording

setBeforeTime

public void setBeforeTime(int before)
Set Time before recording

Parameters:
before - before recording

setTimeZone

public void setTimeZone(String timezone)
Set the timezone

Parameters:
timezone - new Timezone

getTimeZoneAsString

public String getTimeZoneAsString()
Get the Timezone as String

Returns:
timezone

getTimeZone

public TimeZone getTimeZone()
Get the Timezone

Returns:
timezone

setUserName

public void setUserName(String username)
Parameters:
username - set the new username for authentification

getUserName

public String getUserName()
Returns:
username

setPassword

public void setPassword(char[] password)
Parameters:
password - set the new password for authentification

getPassword

public String getPassword()
Returns:
password

getMediaplayer

public String getMediaplayer()

setMediaplayer

public void setMediaplayer(String mediaplayer)

getTimeout

public int getTimeout()

setTimeout

public void setTimeout(int timeout)

TV-Browser 2.7.5 API

TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)