public class ElgatoConfig extends Object
Constructor and Description |
---|
ElgatoConfig()
Create Config
|
ElgatoConfig(ElgatoConfig config)
Clone Config
|
ElgatoConfig(ObjectInputStream stream)
Load Config
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
ElgatoChannel[] |
getAllElgatoChannels() |
ElgatoChannel[] |
getAllElgatoChannels(ElgatoConnection con) |
Channel |
getChannelForElgatoId(int channel)
Returns TVB Channel for Elgato Chanel ID
|
HashMap |
getChannelMapping()
Get Mapping of TVB-Channels - Elgato Channels
|
ElgatoChannel |
getElgatoChannel(Channel channel)
Get Elgato Channel for TVB Channel
|
void |
readData(ObjectInputStream stream)
Read Settings
|
void |
setElgatoChannel(Channel channel,
ElgatoChannel elgatoChannel)
Set Mapping for Channel
|
void |
setElgatoChannels(ElgatoChannel[] channels)
Set List of Elgato Channels.
|
void |
writeData(ObjectOutputStream stream)
Store Settings
|
public ElgatoConfig()
public ElgatoConfig(ElgatoConfig config)
config
- config to clonepublic ElgatoConfig(ObjectInputStream stream) throws IOException, ClassNotFoundException
stream
- Load Config from this StreamIOException
ClassNotFoundException
public HashMap getChannelMapping()
public ElgatoChannel getElgatoChannel(Channel channel)
channel
- Get Elgato Channel for this TVB Channelpublic void setElgatoChannel(Channel channel, ElgatoChannel elgatoChannel)
channel
- TVB ChannelelgatoChannel
- Elgato Channelpublic void setElgatoChannels(ElgatoChannel[] channels)
channels
- List of Channelspublic ElgatoChannel[] getAllElgatoChannels()
public ElgatoChannel[] getAllElgatoChannels(ElgatoConnection con)
public void readData(ObjectInputStream stream) throws IOException, ClassNotFoundException
stream
- IOException
ClassNotFoundException
public void writeData(ObjectOutputStream stream) throws IOException
stream
- IOException
public Channel getChannelForElgatoId(int channel)
channel
- Elgato Channel IDTV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)