public class ReminderPlugin extends Object
Modifier and Type | Field and Description |
---|---|
static Localizer |
mLocalizer
The localizer for this class.
|
Modifier and Type | Method and Description |
---|---|
void |
addProgram(Program prog,
int reminderMinutes)
Adds a program to the reminder list.
|
void |
addPrograms(Program[] programArr)
Add the given programs to the reminder list.
|
protected ActionMenu |
getButtonAction() |
protected ProgramReceiveTarget[] |
getClientPluginsTargets() |
protected ActionMenu |
getContextMenuActions(Frame parentFrame,
Program program) |
protected ActionMenu |
getContextMenuActions(Program program) |
int |
getDefaultReminderTime()
Gets the default reminder time.
|
String |
getId()
Gets the id of this plugin.
|
static ReminderPlugin |
getInstance()
Gets the current instance of this class, or if
there is no instance creates a new one.
|
protected int |
getMarkPriority() |
int |
getReminderMinutesForProgram(Program prog)
Gets the reminder minutes for the given program.
|
PluginTreeNode |
getRootNode()
Gets the root node for the plugin tree.
|
Properties |
getSettings()
Gets the settings for the reminder.
|
protected static int |
getTimeToProgramStart(Program program) |
void |
handleTvBrowserStartFinished()
Is been called by TVBrowser when the TV-Browser start is finished.
|
protected boolean |
isAllowedToStartTimer()
Is used by the ReminderList to track if
the TV-Browser start was finished.
|
void |
pauseRemider()
Halt the remider listener.
|
static Object |
playSound(String fileName)
Plays a sound.
|
int |
removeProgram(Program prog)
Removes the given program from the reminder list.
|
void |
removePrograms(Program[] progArr)
Remove the given programs from the reminder list.
|
protected void |
setClientPluginsTargets(ProgramReceiveTarget[] targets) |
protected void |
setMarkPriority(int priority) |
void |
store()
Save the reminder data.
|
String |
toString() |
void |
updateRootNode(boolean save)
Updates the plugin tree entry for this plugin.
|
void |
writeData(ObjectOutputStream out)
Save the data of this plugin in the given stream.
|
public static final Localizer mLocalizer
public static ReminderPlugin getInstance()
public void handleTvBrowserStartFinished()
protected boolean isAllowedToStartTimer()
public Properties getSettings()
public void pauseRemider()
public void store()
public void writeData(ObjectOutputStream out) throws IOException
out
- The stream to write the data in.IOException
protected ActionMenu getContextMenuActions(Frame parentFrame, Program program)
public int getDefaultReminderTime()
public void addPrograms(Program[] programArr)
programArr
- The programs to add.public int removeProgram(Program prog)
prog
- The program to remove.public void removePrograms(Program[] progArr)
progArr
- The programs to remove.public void addProgram(Program prog, int reminderMinutes)
prog
- The program to add.reminderMinutes
- The reminder minutes for the program.public int getReminderMinutesForProgram(Program prog)
prog
- The program to get the reminder minutes for.public PluginTreeNode getRootNode()
public void updateRootNode(boolean save)
save
- True
if the remider entries should be saved.protected ActionMenu getButtonAction()
public static Object playSound(String fileName)
fileName
- The file name of the sound to play.protected ActionMenu getContextMenuActions(Program program)
public String getId()
protected ProgramReceiveTarget[] getClientPluginsTargets()
protected void setClientPluginsTargets(ProgramReceiveTarget[] targets)
protected int getMarkPriority()
protected void setMarkPriority(int priority)
protected static int getTimeToProgramStart(Program program)
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)