TV-Browser 2.7.5 API

captureplugin.drivers.defaultdriver
Class DeviceConfig

java.lang.Object
  extended by captureplugin.drivers.defaultdriver.DeviceConfig

public class DeviceConfig
extends Object

The Configuration for this Device


Constructor Summary
DeviceConfig()
          Create a empty Config
DeviceConfig(DeviceConfig data)
          Copy Config
 
Method Summary
 Object clone()
           
 TreeMap<Channel,String> getChannels()
           
 boolean getDeleteRemovedPrograms()
          Gets if the programs that were removed during a data update should be deleted.
 boolean getDialogOnlyOnError()
           
 Collection<ParamEntry> getEnabledParamList()
          Get a Collection of all enabled Params
 String getId()
           
 ProgramTimeList getMarkedPrograms()
           
 int getMaxSimultanious()
          Gets the maximum simultanious recordings for this device
 String getName()
          return
 boolean getOnlyFuturePrograms()
           
 String getParameterFormatAdd()
           
 String getParameterFormatRem()
           
 Collection<ParamEntry> getParamList()
           
 String getPassword()
           
 int getPostTime()
           
 int getPreTime()
           
 String getProgramPath()
           
 boolean getShowTitleAndTimeDialog()
          Gets the show title and time dialog state.
 int getTimeOut()
          Get the Timeout in secs
 TimeZone getTimeZone()
          Return the current TimeZone
 String getUserName()
           
 boolean getUseWebUrl()
           
 Collection<Variable> getVariables()
          Get the Variables
 String getWebUrl()
           
 void readData(ObjectInputStream stream, boolean importDevice)
          Read the Config from a Stream
 void setChannels(TreeMap<Channel,String> channels)
           
 void setDeleteRemovedPrograms(boolean value)
          Sets if the programs that were removed during a data update should be deleted.
 void setDialogOnlyOnError(boolean dialogOnlyOnError)
           
 void setMarkedPrograms(ProgramTimeList markedPrograms)
           
 void setMaxSimultanious(int max)
          Sets the maximum simultanious recordings for this device
 void setName(String name)
           
 void setOnlyFuturePrograms(boolean onlyFuturePrograms)
           
 void setParameterFormatAdd(String add)
           
 void setParameterFormatRem(String rem)
           
 void setParamList(Collection<ParamEntry> paramList)
           
 void setPassword(String password)
           
 void setPostTime(int i)
           
 void setPreTime(int i)
           
 void setProgramPath(String string)
           
 void setShowTitleAndTimeDialog(boolean value)
          Set the show title and time dialog state.
 void setTimeOut(int sec)
          Set the sec to timeout
 void setTimeZone(TimeZone timeZone)
          Set the TimeZone
 void setUseReturnValue(boolean retvalue)
          Use the Return Value?
 void setUserName(String user)
           
 void setUseTimeZone(boolean timeZone)
          Use TimeZone Settings ?
 void setUseWebUrl(boolean urlmode)
           
 void setVariables(Collection<Variable> variables)
          Set the Variables
 void setWebUrl(String url)
           
 boolean useReturnValue()
          Use the Return-Value ?
 boolean useTimeZone()
          Use TimeZone Settings ?
 void writeData(ObjectOutputStream stream)
          Write the Config into a Stream
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeviceConfig

public DeviceConfig()
Create a empty Config


DeviceConfig

public DeviceConfig(DeviceConfig data)
Copy Config

Parameters:
data - Config to copy
Method Detail

setParamList

public void setParamList(Collection<ParamEntry> paramList)
Parameters:
paramList -

getParamList

public Collection<ParamEntry> getParamList()
Returns:

getEnabledParamList

public Collection<ParamEntry> getEnabledParamList()
Get a Collection of all enabled Params

Returns:
all enabled Params

setOnlyFuturePrograms

public void setOnlyFuturePrograms(boolean onlyFuturePrograms)
Parameters:
onlyFuturePrograms -

getOnlyFuturePrograms

public boolean getOnlyFuturePrograms()
Returns:

setDialogOnlyOnError

public void setDialogOnlyOnError(boolean dialogOnlyOnError)
Parameters:
dialogOnlyOnError -

getDialogOnlyOnError

public boolean getDialogOnlyOnError()
Returns:

getPreTime

public int getPreTime()
Returns:

setPreTime

public void setPreTime(int i)
Parameters:
i -

getPostTime

public int getPostTime()
Returns:

setPostTime

public void setPostTime(int i)
Parameters:
i -

getProgramPath

public String getProgramPath()
Returns:

setProgramPath

public void setProgramPath(String string)
Parameters:
string -

getUseWebUrl

public boolean getUseWebUrl()
Returns:

setUseWebUrl

public void setUseWebUrl(boolean urlmode)
Parameters:
urlmode -

getWebUrl

public String getWebUrl()
Returns:

setWebUrl

public void setWebUrl(String url)
Parameters:
url -

setMarkedPrograms

public void setMarkedPrograms(ProgramTimeList markedPrograms)
Parameters:
markedPrograms - The markedPrograms to set.

getMarkedPrograms

public ProgramTimeList getMarkedPrograms()
Returns:

getPassword

public String getPassword()
Returns:

setPassword

public void setPassword(String password)
Parameters:
password -

getUserName

public String getUserName()
Returns:

setUserName

public void setUserName(String user)
Parameters:
user -

getParameterFormatAdd

public String getParameterFormatAdd()
Returns:

setParameterFormatAdd

public void setParameterFormatAdd(String add)
Parameters:
add -

getParameterFormatRem

public String getParameterFormatRem()
Returns:

setParameterFormatRem

public void setParameterFormatRem(String rem)
Parameters:
rem -

setChannels

public void setChannels(TreeMap<Channel,String> channels)
Parameters:
channels - The channels to set.

getChannels

public TreeMap<Channel,String> getChannels()
Returns:

clone

public Object clone()
Overrides:
clone in class Object

setName

public void setName(String name)
Parameters:
name -

getName

public String getName()
return


useReturnValue

public boolean useReturnValue()
Use the Return-Value ?

Returns:
use Return Value?

setUseReturnValue

public void setUseReturnValue(boolean retvalue)
Use the Return Value?

Parameters:
retvalue - Use Return Value ?

getMaxSimultanious

public int getMaxSimultanious()
Gets the maximum simultanious recordings for this device

Returns:
max simultanious recordings

setMaxSimultanious

public void setMaxSimultanious(int max)
Sets the maximum simultanious recordings for this device

Parameters:
max - simultanious recordings

setTimeOut

public void setTimeOut(int sec)
Set the sec to timeout

Parameters:
sec - Secs

getTimeOut

public int getTimeOut()
Get the Timeout in secs

Returns:
Timeout in secs

getVariables

public Collection<Variable> getVariables()
Get the Variables

Returns:
Variables

setVariables

public void setVariables(Collection<Variable> variables)
Set the Variables

Parameters:
variables - Variables

useTimeZone

public boolean useTimeZone()
Use TimeZone Settings ?

Returns:
Use TimeZone Settings ?

setUseTimeZone

public void setUseTimeZone(boolean timeZone)
Use TimeZone Settings ?

Parameters:
timeZone - true if User wants to overide the TimeZone

getTimeZone

public TimeZone getTimeZone()
Return the current TimeZone

Returns:
TimeZone

setTimeZone

public void setTimeZone(TimeZone timeZone)
Set the TimeZone

Parameters:
timeZone - TimeZone

writeData

public void writeData(ObjectOutputStream stream)
               throws IOException
Write the Config into a Stream

Parameters:
stream -
Throws:
IOException

readData

public void readData(ObjectInputStream stream,
                     boolean importDevice)
              throws IOException,
                     ClassNotFoundException
Read the Config from a Stream

Parameters:
stream - The stream to read from.
importDevice - True if a device should be imported.
Throws:
IOException
ClassNotFoundException

getId

public String getId()
Returns:
Unique ID of this Device

setShowTitleAndTimeDialog

public void setShowTitleAndTimeDialog(boolean value)
Set the show title and time dialog state.

Parameters:
value - true if the dialog should be shown false otherwise.

getShowTitleAndTimeDialog

public boolean getShowTitleAndTimeDialog()
Gets the show title and time dialog state.

Returns:
true if the dialog should be shown, false otherwise.

setDeleteRemovedPrograms

public void setDeleteRemovedPrograms(boolean value)
Sets if the programs that were removed during a data update should be deleted.

Parameters:
value - true if the programs should be deleted automatically false otherwise.

getDeleteRemovedPrograms

public boolean getDeleteRemovedPrograms()
Gets if the programs that were removed during a data update should be deleted.

Returns:
true if the programs should be deleted automatically, false otherwise.

TV-Browser 2.7.5 API

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