|
||||||||||
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 AudioScrobblerListener
public 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 image1public void notifyAlbumRetrieved(AudioObject file, long id)
AudioScrobblerListener
notifyAlbumRetrieved
in interface AudioScrobblerListener
file
- the fileid
- the idpublic void notifyArtistImage(java.awt.Image img, long id)
AudioScrobblerListener
notifyArtistImage
in interface AudioScrobblerListener
img
- the imgid
- the idpublic void notifyCoverRetrieved(AudioScrobblerAlbum alb, java.awt.Image cover, long id)
AudioScrobblerListener
notifyCoverRetrieved
in interface AudioScrobblerListener
alb
- the albumcover
- the coverid
- the idpublic void notifyFinishGetSimilarArtist(AudioScrobblerArtist a, java.awt.Image img, long id)
AudioScrobblerListener
notifyFinishGetSimilarArtist
in interface AudioScrobblerListener
a
- the aimg
- the imgid
- the idpublic void notifyLyricsRetrieved(AudioObject audioObject, java.lang.String lyrics, long id)
audioObject
- the audio objectlyrics
- the lyricsid
- the idpublic void notifyPodcast(PodcastFeedEntry podcast, long id)
podcast
- the podcastid
- the idpublic void notifyRadio(Radio radio, long id)
radio
- the radioid
- the idpublic void notifyStartRetrievingArtistImages(long id)
AudioScrobblerListener
notifyStartRetrievingArtistImages
in interface AudioScrobblerListener
id
- the idpublic void notifyStartRetrievingCovers(long id)
AudioScrobblerListener
notifyStartRetrievingCovers
in interface AudioScrobblerListener
id
- the idpublic void notifyWikiInfoRetrieved(java.lang.String wikiText, java.lang.String wikiURL, long id)
AudioScrobblerListener
notifyWikiInfoRetrieved
in interface AudioScrobblerListener
wikiText
- the wiki textwikiURL
- the wiki urlid
- the idpublic void retrieveInfo(AudioObject audioObject)
audioObject
- the audio objectpublic void savePicture(java.awt.Image img, AudioFile file, long id)
AudioScrobblerListener
savePicture
in interface AudioScrobblerListener
img
- the imgfile
- the fileid
- the idpublic void setAlbum(AudioScrobblerAlbum album, long id)
AudioScrobblerListener
setAlbum
in interface AudioScrobblerListener
album
- the albumid
- the idpublic void setAlbums(java.util.List<AudioScrobblerAlbum> albums, long id)
AudioScrobblerListener
setAlbums
in interface AudioScrobblerListener
albums
- the albumid
- the idpublic void setImage(java.awt.Image image, long id)
AudioScrobblerListener
setImage
in interface AudioScrobblerListener
image
- the imgid
- the idpublic void setLastAlbumRetrieved(java.lang.String lastAlbumRetrieved, long id)
AudioScrobblerListener
setLastAlbumRetrieved
in interface AudioScrobblerListener
lastAlbumRetrieved
- the albumid
- the idpublic void setLastArtistRetrieved(java.lang.String lastArtistRetrieved, long id)
AudioScrobblerListener
setLastArtistRetrieved
in interface AudioScrobblerListener
lastArtistRetrieved
- the artistid
- the idpublic void submitSong(AudioFile file, long secondsPlayed)
file
- the filesecondsPlayed
- the seconds playedpublic 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 |