public interface DeviceIf extends Cloneable
Modifier and Type | Method and Description |
---|---|
boolean |
add(Window parent,
Program program)
Adds a Program to the List
|
Program[] |
checkProgramsAfterDataUpdateAndGetDeleted()
Checks the programs if there were updates or deletings
|
Object |
clone()
Clones this Device
|
void |
configDevice(Window parent)
Creates a Config-Dialog for this Device
|
boolean |
executeAdditionalCommand(Window parent,
int num,
Program program)
Execute a additional Command.
|
String[] |
getAdditionalCommands()
Get the List of additional Commands
|
DriverIf |
getDriver()
Returns the Driver for this Device
|
String |
getName()
Name of the Device
|
Program[] |
getProgramList()
Get the List of Programs selected by this Device
|
boolean |
isAbleToAddAndRemovePrograms()
Is this Device able to add Programs?
|
boolean |
isInList(Program program)
Is this Program in the List of selected Recordings?
|
void |
readData(ObjectInputStream stream)
Reads the Data from a Stream
|
boolean |
remove(Window parent,
Program program)
Removes a Program from the List
|
String |
setName(String name)
Sets the Name of the Device
|
void |
writeData(ObjectOutputStream stream)
Saves the Data into a Stream
|
String getName()
String setName(String name)
name
- Name of DeviceDriverIf getDriver()
void configDevice(Window parent)
parent
- Parent-Frameboolean isInList(Program program)
program
- Programboolean isAbleToAddAndRemovePrograms()
boolean add(Window parent, Program program)
parent
- Parent-Frameprogram
- Program to addboolean remove(Window parent, Program program)
parent
- Parent-Frameprogram
- Program to removeProgram[] getProgramList()
String[] getAdditionalCommands()
program
- Programboolean executeAdditionalCommand(Window parent, int num, Program program)
parent
- Parent-Framenum
- Number of Commandprogram
- ProgramObject clone()
void writeData(ObjectOutputStream stream) throws IOException
stream
- IOException
void readData(ObjectInputStream stream) throws IOException, ClassNotFoundException
stream
- IOException
ClassNotFoundException
Program[] checkProgramsAfterDataUpdateAndGetDeleted()
TV-Browser 2.2.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)