|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objecttvbrowser.extras.favoritesplugin.core.Favorite
public abstract class Favorite
| Field Summary | |
|---|---|
protected SearchFormSettings |
mSearchFormSettings
|
| Constructor Summary | |
|---|---|
Favorite()
|
|
Favorite(ObjectInputStream in)
|
|
| Method Summary | |
|---|---|
void |
addExclusion(Exclusion exclusion)
|
void |
addToBlackList(Program program)
Add a program to the blacklist |
void |
clearNewPrograms()
Clears the list of new programs |
void |
clearRemovedPrograms()
Clears the list of removed programs |
boolean |
contains(Program prog)
|
boolean |
containsReceiveTarget(ProgramReceiveTarget target)
Gets if this Favorite contains the given receive target. |
abstract FavoriteConfigurator |
createConfigurator()
|
Program[] |
getBlackListPrograms()
|
protected Channel[] |
getChannels()
get the channels this favorite is searched on |
Exclusion[] |
getExclusions()
|
ProgramReceiveTarget[] |
getForwardPlugins()
|
LimitationConfiguration |
getLimitationConfiguration()
|
String |
getName()
|
Program[] |
getNewPrograms()
|
Program[] |
getPrograms()
|
ReminderConfiguration |
getReminderConfiguration()
|
abstract String |
getTypeID()
|
Program[] |
getWhiteListPrograms()
|
Program[] |
getWhiteListPrograms(boolean onlyNotExpiredPrograms)
|
void |
handleContainingPrograms(Program[] progs)
|
void |
handleNewGlobalReceiveTargets(ProgramReceiveTarget[] oldDefaultTargets)
|
protected Program[] |
internalSearchForPrograms()
|
protected abstract void |
internalWriteData(ObjectOutputStream out)
|
boolean |
isOnBlackList(Program program)
Checks if a program is on the blacklist. |
boolean |
isRemindAfterDownload()
|
boolean |
matches(Program p)
This function tries to match the given program with the favorite |
void |
refreshBlackList()
Checks if all programs on the blacklist are valid. |
void |
refreshPrograms(boolean noNewProgramsUpdate)
Checks all current programs if they are not excluded, and refreshes the program marks. |
void |
removeExclusion(Exclusion exclusion)
|
void |
removeFromBlackList(Program program)
Removes the program from the blacklist, if it is in it. |
void |
removeProgram(Program p)
Checks if the program is marked by this favorite and remove it if it does. |
void |
revalidatePrograms()
|
void |
searchNewPrograms(Program[] added,
Program[] removed,
boolean dataUpdate,
boolean sendToPlugins)
Search in a list of Programs to find new Items |
void |
setExclusions(Exclusion[] exclusionArr)
|
void |
setForwardPlugins(ProgramReceiveTarget[] pluginArr)
|
void |
setName(String name)
|
void |
setRemindAfterDownload(boolean b)
|
void |
tryToMatch(Program p)
Checks if this program matches the favorite. |
void |
updatePrograms()
Performs a new search, and refreshes the program marks |
void |
updatePrograms(boolean send)
Performs a new search, and refreshes the program marks |
void |
updatePrograms(boolean dataUpdate,
boolean sendToPlugins)
Performs a new search, and refreshes the program marks |
void |
writeData(ObjectOutputStream out)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected SearchFormSettings mSearchFormSettings
| Constructor Detail |
|---|
public Favorite()
public Favorite(ObjectInputStream in)
throws IOException,
ClassNotFoundException
IOException
ClassNotFoundException| Method Detail |
|---|
public abstract String getTypeID()
public String getName()
public void setName(String name)
public LimitationConfiguration getLimitationConfiguration()
public ReminderConfiguration getReminderConfiguration()
public void setRemindAfterDownload(boolean b)
public boolean isRemindAfterDownload()
public void setForwardPlugins(ProgramReceiveTarget[] pluginArr)
public ProgramReceiveTarget[] getForwardPlugins()
public void handleNewGlobalReceiveTargets(ProgramReceiveTarget[] oldDefaultTargets)
public Program[] getPrograms()
public Program[] getNewPrograms()
public void handleContainingPrograms(Program[] progs)
public void writeData(ObjectOutputStream out)
throws IOException
IOExceptionpublic Exclusion[] getExclusions()
public void addExclusion(Exclusion exclusion)
public void removeExclusion(Exclusion exclusion)
public void setExclusions(Exclusion[] exclusionArr)
public boolean contains(Program prog)
public void searchNewPrograms(Program[] added,
Program[] removed,
boolean dataUpdate,
boolean sendToPlugins)
throws TvBrowserException
added - list of programs to checkremoved - list of removed programsdataUpdate - is a data update running at the momentsendToPlugins - send data to otheer plugins
TvBrowserException - Problems during search
public void updatePrograms()
throws TvBrowserException
TvBrowserException - Exception during search
public void updatePrograms(boolean send)
throws TvBrowserException
send - If the new found programs should be send to plugins.
TvBrowserException - Exception during search
public void updatePrograms(boolean dataUpdate,
boolean sendToPlugins)
throws TvBrowserException
dataUpdate - The update was started after a data update.sendToPlugins - If the new found programs should be send to plugins.
TvBrowserException - Exception during search
public void refreshPrograms(boolean noNewProgramsUpdate)
throws TvBrowserException
noNewProgramsUpdate - If the list with the new programs should not be updated.
TvBrowserException - Exception during searchpublic void refreshBlackList()
public boolean isOnBlackList(Program program)
program - The program to check.
public void addToBlackList(Program program)
program - The program to put on the blacklist.public void removeFromBlackList(Program program)
program - The program to remove from the blacklist.public Program[] getWhiteListPrograms()
public Program[] getWhiteListPrograms(boolean onlyNotExpiredPrograms)
onlyNotExpiredPrograms - true if only not expired
programs should be returned, false otherwise.
public Program[] getBlackListPrograms()
public abstract FavoriteConfigurator createConfigurator()
protected abstract void internalWriteData(ObjectOutputStream out)
throws IOException
IOException
protected Program[] internalSearchForPrograms()
throws TvBrowserException
TvBrowserExceptionpublic boolean containsReceiveTarget(ProgramReceiveTarget target)
target - The target to check for.
True if this Favorite contains
the given target, false otherwise.protected Channel[] getChannels()
public void tryToMatch(Program p)
throws TvBrowserException
p - new Program
TvBrowserException - Exception during search
public boolean matches(Program p)
throws TvBrowserException
p - check if this program matches
true if the program matches
TvBrowserException - exception during matchingpublic void removeProgram(Program p)
p - Program to removepublic void clearNewPrograms()
public void clearRemovedPrograms()
public void revalidatePrograms()
|
TV-Browser 2.7.5 API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||