Constructor and Description |
---|
DreamboxConfig()
Constructor
|
DreamboxConfig(DreamboxConfig dreamboxConfig)
Clone another config
|
DreamboxConfig(ObjectInputStream stream)
Read config from Stream
|
Modifier and Type | Method and Description |
---|---|
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
|
public DreamboxConfig()
public DreamboxConfig(DreamboxConfig dreamboxConfig)
dreamboxConfig
- clone this configpublic DreamboxConfig(ObjectInputStream stream) throws IOException, ClassNotFoundException
stream
- read config from this streamIOException
- io errorsClassNotFoundException
- class errorspublic String getId()
public DreamboxConfig clone()
public void writeData(ObjectOutputStream stream) throws IOException
stream
- write to this streamIOException
- io errorspublic DreamboxChannel getDreamboxChannelForRef(String ref)
ref
- ServiceReferencenull
, if not foundpublic void setDreamboxAddress(String address)
address
- IP-Address of the dreambox.public String getDreamboxAddress()
public void setDreamboxChannels(DreamboxChannel[] channels)
channels
- all channels on the dreamboxpublic ExternalChannelIf[] getExternalChannels()
getExternalChannels
in interface ConfigIf
public ExternalChannelIf getExternalChannel(Channel channel)
getExternalChannel
in interface ConfigIf
channel
- get DreamboxChannel for this channelnull
if not foundpublic Channel getChannel(DreamboxChannel channel)
channel
- get TVBrowser channel for this channelnull
if not foundpublic void setExternalChannel(Channel channel, ExternalChannelIf dreamboxChannel)
setExternalChannel
in interface ConfigIf
channel
- TVBrowser-ChanneldreamboxChannel
- DreamboxChannelpublic int getAfterTime()
public void setAfterTime(int after)
after
- After recordingpublic int getPreTime()
public void setBeforeTime(int before)
before
- before recordingpublic void setTimeZone(String timezone)
timezone
- new Timezonepublic String getTimeZoneAsString()
public TimeZone getTimeZone()
public void setUserName(String username)
username
- set the new username for authentificationpublic String getUserName()
public void setPassword(char[] password)
password
- set the new password for authentificationpublic String getPassword()
public String getMediaplayer()
public void setMediaplayer(String mediaplayer)
public int getTimeout()
public void setTimeout(int timeout)
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)