net.sourceforge.atunes.kernel.handlers
Class PodcastFeedHandler

java.lang.Object
  extended by net.sourceforge.atunes.kernel.handlers.PodcastFeedHandler
All Implemented Interfaces:
ApplicationFinishListener

public class PodcastFeedHandler
extends java.lang.Object
implements ApplicationFinishListener

The Class PodcastFeedHandler.


Field Summary
static long DEFAULT_PODCAST_FEED_ENTRIES_RETRIEVAL_INTERVAL
          The default podcast feed entries retrieval interval.
 
Method Summary
 void addPodcastFeed()
          Adds a Podcast Feed.
 void applicationFinish()
          Finish.
 void deleteDownloadedPodcastFeedEntry(PodcastFeedEntry podcastFeedEntry)
          Delete downloaded podcast feed entry.
 void downloadPodcastFeedEntry(PodcastFeedEntry podcastFeedEntry)
          Download Podcast Feed Entry.
 java.lang.String getDownloadPath(PodcastFeedEntry podcastFeedEntry)
          Gets the download path.
static PodcastFeedHandler getInstance()
          Gets the single instance of PodcastFeedHandler.
 java.util.List<PodcastFeedEntry> getPodcastFeedEntries()
          Returns a list with all Podcast Feed Entries.
 java.util.List<PodcastFeed> getPodcastFeeds()
          Returns a list with all Podcast Feeds.
 java.lang.Runnable getReadPodcastFeedsRunnable()
          Runnable process to read podcasts cache.
 boolean isDownloaded(PodcastFeedEntry podcastFeedEntry)
          Checks if is downloaded.
 boolean isDownloading(PodcastFeedEntry podcastFeedEntry)
          Checks if is downloading.
 void removePodcastFeed(PodcastFeed podcastFeed)
          Removes a Podcast Feed.
 void retrievePodcastFeedEntries()
          Retrieves Podcast Feed Entries and refreshes view asynchronously.
 void setPodcastFeedEntryRetrievalInterval(long newRetrievalInterval)
          Sets the Podcast Feed Entry retrieval interval.
 void startPodcastFeedEntryDownloadChecker()
          Start podcast feed entry download checker.
 void startPodcastFeedEntryRetriever()
          Starts the Podcast Feed Entry Retriever.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_PODCAST_FEED_ENTRIES_RETRIEVAL_INTERVAL

public static final long DEFAULT_PODCAST_FEED_ENTRIES_RETRIEVAL_INTERVAL
The default podcast feed entries retrieval interval.

See Also:
Constant Field Values
Method Detail

getInstance

public static PodcastFeedHandler getInstance()
Gets the single instance of PodcastFeedHandler.

Returns:
single instance of PodcastFeedHandler

addPodcastFeed

public void addPodcastFeed()
Adds a Podcast Feed.


applicationFinish

public void applicationFinish()
Finish.

Specified by:
applicationFinish in interface ApplicationFinishListener

getPodcastFeeds

public java.util.List<PodcastFeed> getPodcastFeeds()
Returns a list with all Podcast Feeds.

Returns:
The podcast feeds

getPodcastFeedEntries

public java.util.List<PodcastFeedEntry> getPodcastFeedEntries()
Returns a list with all Podcast Feed Entries.

Returns:
A list with all Podcast Feed Entries

getReadPodcastFeedsRunnable

public java.lang.Runnable getReadPodcastFeedsRunnable()
Runnable process to read podcasts cache.

Returns:
the read podcast feeds runnable

removePodcastFeed

public void removePodcastFeed(PodcastFeed podcastFeed)
Removes a Podcast Feed.

Parameters:
podcastFeed - A Podcast Feed that should be removed

startPodcastFeedEntryRetriever

public void startPodcastFeedEntryRetriever()
Starts the Podcast Feed Entry Retriever.


startPodcastFeedEntryDownloadChecker

public void startPodcastFeedEntryDownloadChecker()
Start podcast feed entry download checker.


setPodcastFeedEntryRetrievalInterval

public void setPodcastFeedEntryRetrievalInterval(long newRetrievalInterval)
Sets the Podcast Feed Entry retrieval interval.

Parameters:
newRetrievalInterval - The Podcast Feed Entry retrieval interval

retrievePodcastFeedEntries

public void retrievePodcastFeedEntries()
Retrieves Podcast Feed Entries and refreshes view asynchronously.

See Also:
PodcastFeedEntryRetriever.retrievePodcastFeedEntries()

downloadPodcastFeedEntry

public void downloadPodcastFeedEntry(PodcastFeedEntry podcastFeedEntry)
Download Podcast Feed Entry.

Parameters:
podcastFeedEntry - the podcast feed entry

getDownloadPath

public java.lang.String getDownloadPath(PodcastFeedEntry podcastFeedEntry)
Gets the download path.

Parameters:
podcastFeedEntry - the podcast feed entry
Returns:
the download path

isDownloaded

public boolean isDownloaded(PodcastFeedEntry podcastFeedEntry)
Checks if is downloaded.

Parameters:
podcastFeedEntry - the podcast feed entry
Returns:
true, if is downloaded

deleteDownloadedPodcastFeedEntry

public void deleteDownloadedPodcastFeedEntry(PodcastFeedEntry podcastFeedEntry)
Delete downloaded podcast feed entry.

Parameters:
podcastFeedEntry - the podcast feed entry

isDownloading

public boolean isDownloading(PodcastFeedEntry podcastFeedEntry)
Checks if is downloading.

Parameters:
podcastFeedEntry - the podcast feed entry
Returns:
true, if is downloading


Copyright © 2006-2008 The aTunes Team. All Rights Reserved.