|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.dt.iTunesController.iTunes
public class iTunes
Defines the top-level iTunes application object. This interface defines the top-level iTunes application object. All other iTunes interfaces are accessed through this object.
| Constructor Summary | |
|---|---|
iTunes()
Initiate iTunes Controller. |
|
| Method Summary | |
|---|---|
void |
addEventHandler(iTunesEventsInterface itef)
Add an event handler to the iTunes controller. |
void |
backTrack()
Reposition to the beginning of the current track or go to the previous track if already at start of current track. |
ITEQPreset |
createEQPreset(java.lang.String eqPresetName)
Creates a new EQ preset. |
ITPlaylist |
createFolder(java.lang.String folderName)
Creates a new folder in the main library. |
ITPlaylist |
createFolderInSource(java.lang.String folderName,
ITSource iSource)
Creates a new folder in an existing source. |
ITPlaylist |
createPlaylist(java.lang.String playlistName)
Creates a new playlist in the main library. |
ITPlaylist |
createPlaylistInSource(java.lang.String playlistName,
ITSource source)
Creates a new playlist in an existing source. |
void |
fastForward()
Skip forward in a playing track. |
boolean |
getCheckVersion(int majorVersion,
int minorVersion)
Returns true if this version of the iTunes type library is compatible with the specified version. |
ITPlaylist |
getCurrentPlaylist()
Returns the playlist containing the currently targeted track. |
ITTrack |
getCurrentTrack()
Returns the currently targetd track. |
ITObject |
getITObjectByID(int sourceID,
int playlistID,
int trackID,
int databaseID)
Returns an IITObject corresponding to the specified IDs. |
ITPlaylist |
getLibraryPlaylist()
Returns the main library playlist in the main library source. |
ITSource |
getLibrarySource()
Returns the source that represents the main library. |
boolean |
getMute()
Returns true if the sound output is muted. |
void |
getPlayerButtonsState(boolean previousEnabled,
java.lang.String playPause,
boolean nextEnabled)
Retrieves the current state of the player buttons in the window containing the currently targeted track. |
int |
getPlayerPosition()
Returns the player's position within the currently playing track in seconds. |
ITPlayerState |
getPlayerState()
Returns the current player state. |
ITTrackCollection |
getSelectedTracks()
Returns a collection containing the currently selected track or tracks. |
int |
getSoundVolume()
Returns the sound output volume (0=minimum, 100=maximum). |
ITSourceCollection |
getSources()
Returns a collection of music sources (music library, CD, device, etc.). |
java.lang.String |
getVersion()
Returns the version of the iTunes application. |
void |
gotoMusicStoreHomePage()
Go to the iTunes Store home page. |
void |
nextTrack()
Advance to the next track in the current playlist. |
void |
openURL(java.lang.String url)
Open the specified iTunes Store or streaming audio URL. |
void |
pause()
Pause playback. |
void |
play()
Play the currently targeted track. |
void |
playFile(java.lang.String filePath)
Play the specified file path, adding it to the library if not already present. |
void |
playPause()
Toggle the playing/paused state of the current track. |
void |
previousTrack()
Return to the previous track in the current playlist. |
void |
quit()
Exits the iTunes application. |
void |
resume()
Disable fast forward/rewind and resume playback, if playing. |
void |
rewind()
Skip backwards in a playing track. |
void |
setMute(boolean shouldMute)
Sets sound output mute state. |
void |
setPlayerPosition(int playerPos)
Sets the player's position within the currently playing track in seconds. |
void |
setSoundVolume(int volume)
Sets the sound output volume (0=minimum, 100=maximum). |
void |
stop()
Stop playback. |
void |
subscribeToPodcast(java.lang.String url)
Subscribes to the specified podcast feed URL. |
void |
updateIPod()
Update the contents of the iPod. |
void |
updatePodcastFeeds()
Updates all podcast feeds. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public iTunes()
| Method Detail |
|---|
public void addEventHandler(iTunesEventsInterface itef)
itef - The class that will handle the iTunes events.public void backTrack()
public void fastForward()
public void nextTrack()
public void pause()
public void play()
public void playFile(java.lang.String filePath)
public void playPause()
public void previousTrack()
public void resume()
public void rewind()
public void stop()
public void getPlayerButtonsState(boolean previousEnabled,
java.lang.String playPause,
boolean nextEnabled)
public boolean getCheckVersion(int majorVersion,
int minorVersion)
majorVersion - Major version of iTunes interface.minorVersion - Minor version of iTunes interface.
public ITObject getITObjectByID(int sourceID,
int playlistID,
int trackID,
int databaseID)
sourceID - The ID that identifies the source. Valid for a source,
playlist, or track.playlistID - The ID that identifies the playlist. Valid for a
playlist or track. Must be zero for a source.trackID - The ID that identifies the track within the playlist.
Valid for a track. Must be zero for a source or playlist.databaseID - The ID that identifies the track, independent of its
playlist. Valid for a track. Must be zero for a source or playlist.
public ITPlaylist createPlaylist(java.lang.String playlistName)
playlistName - THe name of the new playlist (may be empty).
public void openURL(java.lang.String url)
url - The URL to open. The length of the URL cannot exceed 512
characters. iTunes Store URLs start with itms:// or itmss://. Streaming
audio URLs start with http://.public void gotoMusicStoreHomePage()
public void updateIPod()
public void quit()
public ITEQPreset createEQPreset(java.lang.String eqPresetName)
eqPresetName is empty, the EQ preset will be created with
a default name.
eqPresetName - The name of the new EQ Preset (may be empty)
public ITPlaylist createPlaylistInSource(java.lang.String playlistName,
ITSource source)
playlistName is empty, the playlist will be created with
a default name.
playlistName - The name of the new playlist (may be empty).source - The source that will contain the new playlist.
public void subscribeToPodcast(java.lang.String url)
url - The URL to subscribe to.public void updatePodcastFeeds()
public ITPlaylist createFolder(java.lang.String folderName)
folderName is empty, the folder will be created with a
default name.
folderName - The name of the new folder (may be empty).
public ITPlaylist createFolderInSource(java.lang.String folderName,
ITSource iSource)
folderName is empty, the folder will be created with a
default name.
folderName - The name of the new folder (may be empty)iSource - The source that will contain the new folder.
public ITSourceCollection getSources()
public void setSoundVolume(int volume)
volume - New sound output volumepublic int getSoundVolume()
public void setMute(boolean shouldMute)
shouldMute - If true, sound output will be muted.public boolean getMute()
public ITPlayerState getPlayerState()
public void setPlayerPosition(int playerPos)
playerPos - The player's position within the currently playing
track in seconds.public int getPlayerPosition()
public ITSource getLibrarySource()
iTunes.getSources() and looking for an ITSource
of kind ITSourceKindLibrary.
public ITPlaylist getLibraryPlaylist()
public ITTrack getCurrentTrack()
public ITPlaylist getCurrentPlaylist()
public ITTrackCollection getSelectedTracks()
public java.lang.String getVersion()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||