TV-Browser 2.7.5 API

captureplugin.drivers.dreambox.connector
Class DreamboxConnector

java.lang.Object
  extended by captureplugin.drivers.dreambox.connector.DreamboxConnector

public class DreamboxConnector
extends Object

Connector for the Dreambox


Constructor Summary
DreamboxConnector(DreamboxConfig config)
          Constructor
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DreamboxConnector

public DreamboxConnector(DreamboxConfig config)
Constructor

Parameters:
config - Config of the dreambox
Method Detail

getServiceDataBonquets

public TreeMap<String,String> getServiceDataBonquets(String service)
Parameters:
service - Service-ID
Returns:
Data of specific service

getServiceData

public TreeMap<String,String> getServiceData(String service)
Parameters:
service - Service-ID
Returns:
Data of specific service

getChannels

public Collection<DreamboxChannel> getChannels()
Returns:
All channels available in the dreambox

switchToChannel

public void switchToChannel(DreamboxChannel channel)
Switch to channel on Dreambox

Parameters:
channel - switch to this channel

getRecordings

public ProgramTime[] getRecordings(DreamboxConfig config)
Parameters:
config - DreamboxConfig
Returns:
List of recordings on the dreambox

addRecording

public boolean addRecording(DreamboxChannel dreamboxChannel,
                            ProgramTime prgTime,
                            int afterEvent,
                            TimeZone timezone)
Add a recording to the Dreambox

Parameters:
dreamboxChannel - the DreamboxChannel for the Program
prgTime - add this ProgramTime @return true, if succcesfull
afterEvent - 0=nothing, 1=standby, 2=deepstandby
timezone - TimeZone to use for recording
Returns:
True, if successfull

removeRecording

public boolean removeRecording(DreamboxChannel dreamboxChannel,
                               ProgramTime prgTime,
                               TimeZone timezone)
Remove a recording from the Dreambox

Parameters:
dreamboxChannel - the DreamboxChannel for the Program
prgTime - ProgramTime to remove @return true, if successfull
timezone - Timezone to use for recording
Returns:
True, if successfull

sendMessage

public void sendMessage(String message)
Sends a message to the screen of the dreambox

Parameters:
message - Message to send

testDreamboxVersion

public boolean testDreamboxVersion()
                            throws IOException
Throws:
IOException

streamChannel

public boolean streamChannel(DreamboxChannel channel)

TV-Browser 2.7.5 API

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