|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.breeweb.slimconnect.iface.delegate.Slimp3Delegate
Method Summary | |
void |
closeConnections()
closes the connections of this delegate. |
int |
compareTo(java.lang.Object anObject)
|
boolean |
equals(java.lang.Object anObject)
|
Playlist |
getCurrentPlayList()
Returns the current playlist |
Song |
getCurrentSong()
Returns the current song playing |
DisplayReturnData |
getDisplay()
Returns the current lines on the display. |
DisplayReturnData |
getDisplayNow()
Shows exactly what's on the display, this includes any anymation. |
static Slimp3Delegate |
getInstance(java.lang.String ip,
int port)
Returns a Slimp3Delegate interface to a SLIMP3 / Squeezebox server. |
static Slimp3Delegate |
getInstance(java.lang.String ip,
int port,
Player aPlayer)
Returns a Slimp3Delegate interface to a SLIMP3 / squizebox server, This method directly sets the player to which it should be bound. |
java.lang.String |
getMode()
Gets the current mode. |
Player[] |
getPlayers()
Returns an array of available Players |
double |
getSleep()
Returns the time to play in seconds before going into sleep mode. |
int |
hashCode()
|
boolean |
isPowerOn()
indicates wether or not power is on. |
void |
play()
Sends the "play" command |
void |
playlistAdd(java.lang.String url)
Adds the specified song URL, playlist or directory contents to the end of the current playlist. |
void |
playlistAddAlbum(PlaylistSearchCriteria criteria)
Appends all songs matching the specified criteria onto the end of the playlist. |
void |
playlistClear()
Removes any song that is on the playlist. |
void |
playlistDelete(int index)
Deletes the song at the specified index from the current playlist. |
int |
playlistGetIndex()
Queries the song that is currently playing by index. |
void |
playlistInsert(java.lang.String url)
Inserts the specified song URL, playlist or directory contents to be played immediately after the current song in the current playlist. |
void |
playlistLoadAlbum(PlaylistSearchCriteria criteria)
Puts songs matching the specified genre artist and album criteria on the playlist. |
void |
playlistMove(int indexFrom,
int indexTo)
Moves the song at the specified index to a new index in the playlist. |
void |
playlistNext(int amount)
next n numbers |
void |
playlistPlay(java.lang.String url)
Puts the specified song URL, playlist or directory contents into the current playlist and plays starting at the first item. |
void |
playlistPrev(int amount)
previous song |
void |
playlistResume(java.lang.String name)
Replace the current playlist with the playlist specified by name, starting at the song that was playing when the file was saved. |
void |
playlistSave(java.lang.String name)
Saves a playlist file in the saved playlists directory. |
void |
playlistSetIndex(int index)
sets the current index within the playlist |
int |
repeat()
returns the repeat mode (0,1,2). |
ReturnData |
setDisplay(java.lang.String line1,
int timeInSeconds)
Sets the text (line1) on the first line of the display for an number of seconds specified by timeInSeconds |
ReturnData |
setDisplay(java.lang.String line1,
java.lang.String line2,
int timeInSeconds)
Sets the text (line1 and 2) on the display for an number of seconds specified by timeInSeconds |
void |
setPause(boolean on)
Set or unset the pause mode. |
void |
setPlayer(Player aPlayer)
Binds this interface instance to the given player |
void |
setPower(boolean on)
Switch power on|off |
void |
setRepeat(int mode)
Sets the repeat mode. |
void |
setShuffle(boolean on)
set suffle mode (en-/disable) note this might be changed in future releases, three modes are able. |
void |
setSleep(double time)
Sets the time to play in seconds before going into sleep mode. |
boolean |
shuffle()
returns a boolean indicating if shuffle is enabled, now three modes are enabled (0,1,2). |
void |
stop()
Sends the stop command |
void |
togglePause()
Toggles the pause mode. |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public static Slimp3Delegate getInstance(java.lang.String ip, int port) throws DataException
ip
- the ipadress the server is working on.port
- the portnumber the server is working on.
DataException
public void closeConnections()
public void setPlayer(Player aPlayer)
aPlayer
- the player to which this interface instance should be bound.public static Slimp3Delegate getInstance(java.lang.String ip, int port, Player aPlayer) throws DataException
ip
- the ipadress the server is working on.port
- the portnumber the server is working on.aPlayer
- the player to which this interface instance should be bound.
DataException
public boolean equals(java.lang.Object anObject)
public int hashCode()
public int compareTo(java.lang.Object anObject)
compareTo
in interface java.lang.Comparable
public ReturnData setDisplay(java.lang.String line1, int timeInSeconds) throws DataException
line1
- the first line.timeInSeconds
- the number of seconds to display the line
DataException
public ReturnData setDisplay(java.lang.String line1, java.lang.String line2, int timeInSeconds) throws DataException
line1
- the first line on the displayline2
- the second line on the displaytimeInSeconds
- the number of seconds to display the lines
DataException
public DisplayReturnData getDisplay() throws DataException
DisplayReturnData
.
DataException
DisplayReturnData
public DisplayReturnData getDisplayNow() throws DataException
DataException
getDisplay()
public Player[] getPlayers() throws DataException
DataException
Player
public Song getCurrentSong() throws DataException
DataException
Song
public void play() throws DataException
DataException
public void togglePause() throws DataException
DataException
public void setPause(boolean on) throws DataException
on
- boolean indicating wether or not to go into pause mode.
DataException
public void stop() throws DataException
DataException
public java.lang.String getMode() throws DataException
DataException
public void setPower(boolean on) throws DataException
on
- on or if false off
DataException
public boolean isPowerOn() throws DataException
DataException
public Playlist getCurrentPlayList() throws DataException
DataException
Playlist
public boolean shuffle() throws DataException
DataException
setRepeat(int)
public void setShuffle(boolean on) throws DataException
on
- boolean for en-/disabling.
DataException
setRepeat(int)
public int repeat() throws DataException
DataException
setRepeat(int)
public void setRepeat(int mode) throws DataException
mode
- (0, 1, 2)
DataException
public double getSleep() throws DataException
DataException
public void setSleep(double time) throws DataException
time
seconds are over.
time
- in seconds
DataException
public void playlistPlay(java.lang.String url) throws DataException
url
- The URL, playlist or directory which should be played.
DataException
public void playlistAdd(java.lang.String url) throws DataException
url
- The URL, playlist or directory which should be added
DataException
public void playlistInsert(java.lang.String url) throws DataException
url
- The URL, playlist or directory which should be inserted
DataException
public void playlistMove(int indexFrom, int indexTo) throws DataException
indexFrom
- index which should be moved.indexTo
- index to which the before index should be moved to.
DataException
public void playlistDelete(int index) throws DataException
index
- the index in the playlist which should be deleted.
DataException
public void playlistResume(java.lang.String name) throws DataException
name
- the name of the playlist which should be resumed.
DataException
public void playlistSave(java.lang.String name) throws DataException
name
- the name of the playlist.
DataException
public void playlistLoadAlbum(PlaylistSearchCriteria criteria) throws DataException
PlaylistSearchCriteria
criteria
- The criteria for which songs should be loaded.
DataException
PlaylistSearchCriteria
public void playlistAddAlbum(PlaylistSearchCriteria criteria) throws DataException
PlaylistSearchCriteria
criteria
- The criteria for which songs should be appended.
DataException
PlaylistSearchCriteria
public void playlistClear() throws DataException
DataException
public int playlistGetIndex() throws DataException
DataException
public void playlistSetIndex(int index) throws DataException
index
- the index.
DataException
public void playlistNext(int amount) throws DataException
n
numbers
amount
- the amount of numbers forward
DataException
public void playlistPrev(int amount) throws DataException
amount
- the amount of numbers back
DataException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |