com.dt.iTunesController
Class ITURLTrack

java.lang.Object
  extended by com.dt.iTunesController.ITObject
      extended by com.dt.iTunesController.ITTrack
          extended by com.dt.iTunesController.ITURLTrack

public class ITURLTrack
extends ITTrack

Represents a URL track. A URL track references a network audio stream.


Field Summary
 
Fields inherited from class com.dt.iTunesController.ITObject
object
 
Constructor Summary
ITURLTrack(com.jacob.com.Dispatch d)
           
 
Method Summary
 void downloadPodcastEpisode()
          Start downloading the podcast episode that corresponds to this track.
 long getAlbumRating()
          Returns the user or computed rating of the album that this track belongs to (0 to 100).
 ITRatingKind getAlbumRatingKind()
          Returns the album rating kind.
 java.lang.String getCategory()
          Returns the category for the track.
 java.lang.String getDescription()
          Returns the description for the track.
 java.lang.String getLongDescription()
          Returns the long description for the track.
 ITPlaylistCollection getPlaylists()
          Returns a collection of playlists that contain the song that this track represents.
 ITRatingKind getRatingKind()
          Returns the track rating kind.
 java.lang.String getURL()
          Returns the URL of the stream represented by this track.
 boolean isPodcast()
          Returns true if this track is a podcast track.
 void reveal()
          Reveals the track in the main browser window.
 void setAlbumRating(long albumRating)
          Set the album rating of the album that this track belongs to (0 to 100).
 void setCategory(java.lang.String category)
          Sets the category for the track.
 void setDescription(java.lang.String description)
          Sets the description for the track.
 void setLongDescription(java.lang.String longDescription)
          Sets the long description for the track.
 void setURL(java.lang.String url)
          Set the URL of the stream represented by this track.
 void updatePodcastFeed()
          Update the podcast feed for this track.
 
Methods inherited from class com.dt.iTunesController.ITTrack
delete, getAlbum, getArtist, getArtwork, getBitRate, getBPM, getComment, getCompilation, getComposer, getDateAdded, getDiscCount, getDiscNumber, getDuration, getEnabled, getEQ, getFinish, getGenre, getGrouping, getKind, getKindAsString, getModificationDate, getPlayedCount, getPlayedDate, getPlaylist, getPlayOrderIndex, getRating, getSampleRate, getSize, getStart, getTime, getTrackCount, getTrackNumber, getVolumeAdjustment, getYear, play, setAlbum, setArtist, setBPM, setComment, setCompilation, setComposer, setDiscCount, setDiscNumber, setEnabled, setEQ, setFinish, setGenre, setGrouping, setPlayedCount, setPlayedDate, setRating, setStart, setTrackCount, setTrackNumber, setVolumeAdjustment, setYear
 
Methods inherited from class com.dt.iTunesController.ITObject
fetchDispatch, getIndex, getName, getPlaylistID, getSourceID, getTrackDatabaseID, getTrackID, setName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ITURLTrack

public ITURLTrack(com.jacob.com.Dispatch d)
Method Detail

getURL

public java.lang.String getURL()
Returns the URL of the stream represented by this track.

Returns:
The URL of the stream represented by this track.

setURL

public void setURL(java.lang.String url)
Set the URL of the stream represented by this track.

Parameters:
url - The URL of the stream represented by this track.

isPodcast

public boolean isPodcast()
Returns true if this track is a podcast track. If a podcast track is an IITURLTrack, the podcast episode has not been downloaded.

Returns:
Returns true if this track is a podcast track.

getCategory

public java.lang.String getCategory()
Returns the category for the track.

Returns:
Returns the category for the track.

setCategory

public void setCategory(java.lang.String category)
Sets the category for the track.

Parameters:
category - Sets the category for the track.

getDescription

public java.lang.String getDescription()
Returns the description for the track.

Returns:
Returns the description for the track.

setDescription

public void setDescription(java.lang.String description)
Sets the description for the track.

Parameters:
description - The new description for the track.

getLongDescription

public java.lang.String getLongDescription()
Returns the long description for the track.

Returns:
Returns the description for the track.

setLongDescription

public void setLongDescription(java.lang.String longDescription)
Sets the long description for the track.

Parameters:
longDescription - The new long description for the track.

getAlbumRating

public long getAlbumRating()
Returns the user or computed rating of the album that this track belongs to (0 to 100). If the album rating has never been set, or has been set to 0, it will be computed based on the ratings of tracks in the album.

Returns:
Returns the album rating of the album that this track belongs to (0 to 100).

setAlbumRating

public void setAlbumRating(long albumRating)
Set the album rating of the album that this track belongs to (0 to 100). If the album rating is set to 0, it will be computed based on the ratings of tracks in the album.

Parameters:
albumRating - The new album rating of the album that this track belongs to (0 to 100). If rating is outside this range, it will be pinned.

getAlbumRatingKind

public ITRatingKind getAlbumRatingKind()
Returns the album rating kind. If the album rating has never been set, or has been set to 0, the kind is ITRatingKindComputed. Otherwise, the kind is ITRatingKindUser.

Returns:
Returns the album rating kind.

getRatingKind

public ITRatingKind getRatingKind()
Returns the track rating kind. If the track rating has never been set, or has been set to 0, the kind is ITRatingKindComputed. Otherwise, the kind is ITRatingKindUser.

Returns:
Returns the track rating kind.

getPlaylists

public ITPlaylistCollection getPlaylists()
Returns a collection of playlists that contain the song that this track represents. This is the same collection of playlists that are shown in the "Show in Playlist" contextual menu for a track, plus the specific playlist that contains this track. A track represents a song in a single playlist, use ITTrack.getPlaylist() to get the specific playlist that contains this track.

Returns:
Collection of ITPlaylist objects.

updatePodcastFeed

public void updatePodcastFeed()
Update the podcast feed for this track. This is equivalent to the user choosing Update Podcast from the contextual menu for the podcast feed that contains this track.


downloadPodcastEpisode

public void downloadPodcastEpisode()
Start downloading the podcast episode that corresponds to this track. This is equivalent to the user clicking the Get button next to this track.


reveal

public void reveal()
Reveals the track in the main browser window.