|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.atunes.kernel.handlers.AudioScrobblerServiceHandler
public class AudioScrobblerServiceHandler
The Class AudioScrobblerServiceHandler.
| Method Summary | |
|---|---|
void |
clear()
Clear. |
void |
clearCaches()
Clears the caches (AudioScrobbler & lyrics cache) Deletes as many files in the cache directories as possible. |
AudioScrobblerAlbum |
getAlbum()
Gets the album. |
void |
getAlbumCover(AudioFile file)
Gets the album cover. |
java.util.List<AudioScrobblerAlbum> |
getAlbums()
Gets the albums. |
java.util.Map<AudioFile,java.lang.String> |
getGenresForFiles(java.util.List<AudioFile> files)
Gets the genres for files. |
static AudioScrobblerServiceHandler |
getInstance()
Gets the single instance of AudioScrobblerServiceHandler. |
java.lang.String |
getLastAlbumRetrieved()
Gets the last album retrieved. |
java.lang.String |
getLastArtistRetrieved()
Gets the last artist retrieved. |
java.util.Map<AudioFile,java.lang.String> |
getTitlesForFiles(java.util.List<AudioFile> files)
Returns a hash of files with its songs titles. |
java.util.List<java.lang.String> |
getTrackNamesForAlbum(java.lang.String artistName,
java.lang.String albumName)
Gets the track names for album. |
void |
notifyAlbumCoverRetrieved(AudioFile file,
java.awt.Image image1)
Used to update cover on Full Screen. |
void |
notifyAlbumRetrieved(AudioObject file,
long id)
Notify album retrieved. |
void |
notifyArtistImage(java.awt.Image img,
long id)
Notify artist image. |
void |
notifyCoverRetrieved(AudioScrobblerAlbum alb,
java.awt.Image cover,
long id)
Notify cover retrieved. |
void |
notifyFinishGetSimilarArtist(AudioScrobblerArtist a,
java.awt.Image img,
long id)
Notify finish get similar artist. |
void |
notifyLyricsRetrieved(AudioObject audioObject,
java.lang.String lyrics,
long id)
Notify lyrics retrieved. |
void |
notifyPodcast(PodcastFeedEntry podcast,
long id)
Notify podcast. |
void |
notifyRadio(Radio radio,
long id)
Notify radio. |
void |
notifyStartRetrievingArtistImages(long id)
Notify start retrieving artist images. |
void |
notifyStartRetrievingCovers(long id)
Notify start retrieving covers. |
void |
notifyWikiInfoRetrieved(java.lang.String wikiText,
java.lang.String wikiURL,
long id)
Notify wiki info retrieved. |
void |
retrieveInfo(AudioObject audioObject)
Retrieve info. |
void |
savePicture(java.awt.Image img,
AudioFile file,
long id)
Save picture. |
void |
setAlbum(AudioScrobblerAlbum album,
long id)
Sets the album. |
void |
setAlbums(java.util.List<AudioScrobblerAlbum> albums,
long id)
Sets the albums. |
void |
setImage(java.awt.Image image,
long id)
Sets the image. |
void |
setLastAlbumRetrieved(java.lang.String lastAlbumRetrieved,
long id)
Sets the last album retrieved. |
void |
setLastArtistRetrieved(java.lang.String lastArtistRetrieved,
long id)
Sets the last artist retrieved. |
void |
submitSong(AudioFile file,
long secondsPlayed)
Submit song. |
void |
updateService(ProxyBean proxy,
java.lang.String user,
java.lang.String password)
Update service. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static AudioScrobblerServiceHandler getInstance()
public void clear()
public void clearCaches()
Clears the caches (AudioScrobbler & lyrics cache)
Deletes as many files in the cache directories as possible. Files that are currently used by aTunes won't be deleted.
public AudioScrobblerAlbum getAlbum()
public void getAlbumCover(AudioFile file)
file - the filepublic java.util.List<AudioScrobblerAlbum> getAlbums()
AudioScrobblerListener
getAlbums in interface AudioScrobblerListenerpublic java.util.Map<AudioFile,java.lang.String> getGenresForFiles(java.util.List<AudioFile> files)
files - the files
public java.lang.String getLastAlbumRetrieved()
public java.lang.String getLastArtistRetrieved()
public java.util.Map<AudioFile,java.lang.String> getTitlesForFiles(java.util.List<AudioFile> files)
files - the files
public java.util.List<java.lang.String> getTrackNamesForAlbum(java.lang.String artistName,
java.lang.String albumName)
artistName - the artist namealbumName - the album name
public void notifyAlbumCoverRetrieved(AudioFile file,
java.awt.Image image1)
file - the fileimage1 - the image1
public void notifyAlbumRetrieved(AudioObject file,
long id)
AudioScrobblerListener
notifyAlbumRetrieved in interface AudioScrobblerListenerfile - the fileid - the id
public void notifyArtistImage(java.awt.Image img,
long id)
AudioScrobblerListener
notifyArtistImage in interface AudioScrobblerListenerimg - the imgid - the id
public void notifyCoverRetrieved(AudioScrobblerAlbum alb,
java.awt.Image cover,
long id)
AudioScrobblerListener
notifyCoverRetrieved in interface AudioScrobblerListeneralb - the albumcover - the coverid - the id
public void notifyFinishGetSimilarArtist(AudioScrobblerArtist a,
java.awt.Image img,
long id)
AudioScrobblerListener
notifyFinishGetSimilarArtist in interface AudioScrobblerListenera - the aimg - the imgid - the id
public void notifyLyricsRetrieved(AudioObject audioObject,
java.lang.String lyrics,
long id)
audioObject - the audio objectlyrics - the lyricsid - the id
public void notifyPodcast(PodcastFeedEntry podcast,
long id)
podcast - the podcastid - the id
public void notifyRadio(Radio radio,
long id)
radio - the radioid - the idpublic void notifyStartRetrievingArtistImages(long id)
AudioScrobblerListener
notifyStartRetrievingArtistImages in interface AudioScrobblerListenerid - the idpublic void notifyStartRetrievingCovers(long id)
AudioScrobblerListener
notifyStartRetrievingCovers in interface AudioScrobblerListenerid - the id
public void notifyWikiInfoRetrieved(java.lang.String wikiText,
java.lang.String wikiURL,
long id)
AudioScrobblerListener
notifyWikiInfoRetrieved in interface AudioScrobblerListenerwikiText - the wiki textwikiURL - the wiki urlid - the idpublic void retrieveInfo(AudioObject audioObject)
audioObject - the audio object
public void savePicture(java.awt.Image img,
AudioFile file,
long id)
AudioScrobblerListener
savePicture in interface AudioScrobblerListenerimg - the imgfile - the fileid - the id
public void setAlbum(AudioScrobblerAlbum album,
long id)
AudioScrobblerListener
setAlbum in interface AudioScrobblerListeneralbum - the albumid - the id
public void setAlbums(java.util.List<AudioScrobblerAlbum> albums,
long id)
AudioScrobblerListener
setAlbums in interface AudioScrobblerListeneralbums - the albumid - the id
public void setImage(java.awt.Image image,
long id)
AudioScrobblerListener
setImage in interface AudioScrobblerListenerimage - the imgid - the id
public void setLastAlbumRetrieved(java.lang.String lastAlbumRetrieved,
long id)
AudioScrobblerListener
setLastAlbumRetrieved in interface AudioScrobblerListenerlastAlbumRetrieved - the albumid - the id
public void setLastArtistRetrieved(java.lang.String lastArtistRetrieved,
long id)
AudioScrobblerListener
setLastArtistRetrieved in interface AudioScrobblerListenerlastArtistRetrieved - the artistid - the id
public void submitSong(AudioFile file,
long secondsPlayed)
file - the filesecondsPlayed - the seconds played
public void updateService(ProxyBean proxy,
java.lang.String user,
java.lang.String password)
proxy - the proxyuser - the userpassword - the password
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||