public class DreamboxConnector extends Object
Constructor and Description |
---|
DreamboxConnector(DreamboxConfig config)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
addRecording(DreamboxChannel dreamboxChannel,
ProgramTime prgTime,
int afterEvent,
TimeZone timezone)
Add a recording to the Dreambox
|
Collection<DreamboxChannel> |
getChannels() |
ProgramTime[] |
getRecordings(DreamboxConfig config) |
TreeMap<String,String> |
getServiceData(String service) |
TreeMap<String,String> |
getServiceDataBonquets(String service) |
boolean |
removeRecording(DreamboxChannel dreamboxChannel,
ProgramTime prgTime,
TimeZone timezone)
Remove a recording from the Dreambox
|
void |
sendMessage(String message)
Sends a message to the screen of the dreambox
|
boolean |
streamChannel(DreamboxChannel channel) |
void |
switchToChannel(DreamboxChannel channel)
Switch to channel on Dreambox
|
boolean |
testDreamboxVersion() |
public DreamboxConnector(DreamboxConfig config)
config
- Config of the dreamboxpublic TreeMap<String,String> getServiceDataBonquets(String service)
service
- Service-IDpublic TreeMap<String,String> getServiceData(String service)
service
- Service-IDpublic Collection<DreamboxChannel> getChannels()
public void switchToChannel(DreamboxChannel channel)
channel
- switch to this channelpublic ProgramTime[] getRecordings(DreamboxConfig config)
config
- DreamboxConfigpublic boolean addRecording(DreamboxChannel dreamboxChannel, ProgramTime prgTime, int afterEvent, TimeZone timezone)
dreamboxChannel
- the DreamboxChannel for the ProgramprgTime
- add this ProgramTime @return true, if succcesfullafterEvent
- 0=nothing, 1=standby, 2=deepstandbytimezone
- TimeZone to use for recordingpublic boolean removeRecording(DreamboxChannel dreamboxChannel, ProgramTime prgTime, TimeZone timezone)
dreamboxChannel
- the DreamboxChannel for the ProgramprgTime
- ProgramTime to remove @return true, if successfulltimezone
- Timezone to use for recordingpublic void sendMessage(String message)
message
- Message to sendpublic boolean testDreamboxVersion() throws IOException
IOException
public boolean streamChannel(DreamboxChannel channel)
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)