TV-Browser 3.3.3 API

tvbrowser.extras.favoritesplugin.core
Class AdvancedFavorite

java.lang.Object
  extended by tvbrowser.extras.favoritesplugin.core.Favorite
      extended by tvbrowser.extras.favoritesplugin.core.AdvancedFavorite

public class AdvancedFavorite
extends Favorite


Nested Class Summary
(package private)  class AdvancedFavorite.Configurator
           
 
Field Summary
static java.lang.String TYPE_ID
           
 
Fields inherited from class tvbrowser.extras.favoritesplugin.core.Favorite
mSearchFormSettings
 
Constructor Summary
AdvancedFavorite(java.io.ObjectInputStream in)
           
AdvancedFavorite(java.lang.String searchText)
           
 
Method Summary
 FavoriteConfigurator createConfigurator()
           
 java.lang.String getName()
           
 java.lang.String getTypeID()
           
protected  Program[] internalSearchForPrograms()
           
protected  void internalWriteData(java.io.ObjectOutputStream out)
           
static AdvancedFavorite loadOldFavorite(java.io.ObjectInputStream in)
          Loads an old version favorite.
 void loadPendingFilter()
          Loads the filters after TV-Browser start was finished.
 boolean matches(Program p)
          This function tries to match the given program with the favorite
 
Methods inherited from class tvbrowser.extras.favoritesplugin.core.Favorite
addExclusion, addToBlackList, clearNewPrograms, clearRemovedPrograms, contains, containsReceiveTarget, getBlackListPrograms, getChannels, getExclusions, getForwardPlugins, getLimitationConfiguration, getNewPrograms, getPrograms, getReminderConfiguration, getSearcher, getWhiteListPrograms, getWhiteListPrograms, handleContainingPrograms, handleNewGlobalReceiveTargets, isOnBlackList, isRemindAfterDownload, refreshBlackList, refreshPrograms, removeExclusion, removeFromBlackList, removeProgram, reValidateChannelLimitation, revalidatePrograms, searchNewPrograms, setExclusions, setForwardPlugins, setName, setRemindAfterDownload, tryToMatch, updatePrograms, updatePrograms, updatePrograms, writeData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

TYPE_ID

public static final java.lang.String TYPE_ID
See Also:
Constant Field Values
Constructor Detail

AdvancedFavorite

public AdvancedFavorite(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Throws:
java.io.IOException
java.lang.ClassNotFoundException

AdvancedFavorite

public AdvancedFavorite(java.lang.String searchText)
Method Detail

getTypeID

public java.lang.String getTypeID()
Specified by:
getTypeID in class Favorite

getName

public java.lang.String getName()
Overrides:
getName in class Favorite

createConfigurator

public FavoriteConfigurator createConfigurator()
Specified by:
createConfigurator in class Favorite

internalWriteData

protected void internalWriteData(java.io.ObjectOutputStream out)
                          throws java.io.IOException
Specified by:
internalWriteData in class Favorite
Throws:
java.io.IOException

loadOldFavorite

public static AdvancedFavorite loadOldFavorite(java.io.ObjectInputStream in)
                                        throws java.io.IOException,
                                               java.lang.ClassNotFoundException
Loads an old version favorite.

Parameters:
in - The stream to read from.
Returns:
The loaded AdvancedFavorite.
Throws:
java.io.IOException - Thrown if something went wrong.
java.lang.ClassNotFoundException - Thrown if somethinge went wrong.

internalSearchForPrograms

protected Program[] internalSearchForPrograms()
                                       throws TvBrowserException
Overrides:
internalSearchForPrograms in class Favorite
Throws:
TvBrowserException

matches

public boolean matches(Program p)
                throws TvBrowserException
Description copied from class: Favorite
This function tries to match the given program with the favorite

Overrides:
matches in class Favorite
Parameters:
p - check if this program matches
Returns:
true if the program matches
Throws:
TvBrowserException - exception during matching

loadPendingFilter

public void loadPendingFilter()
Loads the filters after TV-Browser start was finished.

Since:
2.5.1

TV-Browser 3.3.3 API

TV-Browser 3.3.3, Copyright (C) 2004-2008 TV-Browser Team (dev@tvbrowser.org)