com.dt.iTunesController
Class ITSource

java.lang.Object
  extended by com.dt.iTunesController.ITObject
      extended by com.dt.iTunesController.ITSource

public class ITSource
extends ITObject

Represents an entry in the Source list (music library, CD, device, etc.). You can retrieve all the sources using iTunes.getSources().


Field Summary
 
Fields inherited from class com.dt.iTunesController.ITObject
object
 
Constructor Summary
ITSource(com.jacob.com.Dispatch d)
           
 
Method Summary
 double getCapacity()
          Returns the total size of the source, if it has a fixed size.
 double getFreespace()
          Returns the free space on the source, if it has a fixed size.
 ITSourceKind getKind()
          Returns the kind of the source.
 ITPlaylistCollection getPlaylists()
          Returns a collection containing the playlists in this source.
 
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

ITSource

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

getKind

public ITSourceKind getKind()
Returns the kind of the source.

Returns:
Returns the kind of the source.

getCapacity

public double getCapacity()
Returns the total size of the source, if it has a fixed size.

Returns:
Returns the total size of the source, if it has a fixed size.

getFreespace

public double getFreespace()
Returns the free space on the source, if it has a fixed size.

Returns:
Returns the free space on the source, if it has a fixed size.

getPlaylists

public ITPlaylistCollection getPlaylists()
Returns a collection containing the playlists in this source. The source's primary playlist is always the first playlist in the collection.

Returns:
Collection of IITPlaylist objects.