com.blackledge.david.tivo.multitasker.plugins
Class TivoTicker

java.lang.Object
  extended by com.blackledge.david.tivo.multitasker.plugins.TivoTicker
All Implemented Interfaces:
Brand, TickerTape

public class TivoTicker
extends Object
implements TickerTape, Brand

TickerTape provider that gets information from the current tivo about what is getting recorded right now. Uses HMOSession calls to get information. TiVo wasn't honoring CreationDate reverse ordering and puts suggestion types so I'm separately listing the Tivo Suggestions folder (/NowPlaying/0). Doesn't support TICKER_TAPE_RANDOM. TODO other problem earlier ended up being bad host string - maybe I can get rid of the THV?


Nested Class Summary
 
Nested classes/interfaces inherited from interface com.blackledge.david.tivo.multitasker.TickerTape
TickerTape.TickerTapeSegment, TickerTape.TickerTapeSegmentDefault
 
Constructor Summary
TivoTicker()
           
 
Method Summary
 TickerTape.TickerTapeSegment getNextContent()
           
 com.tivo.hme.bananas.BView getUpdatedBrand(com.tivo.hme.bananas.BView brandParent)
          Make TivoTicker work as a brand as well.
 void init(MultiTaskerApplication app)
          initialize the plugin with the current application context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TivoTicker

public TivoTicker()
Method Detail

getNextContent

public TickerTape.TickerTapeSegment getNextContent()
Specified by:
getNextContent in interface TickerTape

init

public void init(MultiTaskerApplication app)
Description copied from interface: Brand
initialize the plugin with the current application context. Called once before Brand.getUpdatedBrand(BView) is ever called.

Specified by:
init in interface Brand
Specified by:
init in interface TickerTape

getUpdatedBrand

public com.tivo.hme.bananas.BView getUpdatedBrand(com.tivo.hme.bananas.BView brandParent)
Make TivoTicker work as a brand as well. (but only makes sense as one or the other, so Ticker wins, this returns null if ticker is in use)

Specified by:
getUpdatedBrand in interface Brand
Parameters:
brandParent -
Returns:
the updated view