|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.breeweb.slimconnect.commands.AbstractCommand com.breeweb.slimconnect.commands.ControlCommand
Field Summary | |
static java.lang.String |
MODE
|
static java.lang.String |
PAUSE
|
static java.lang.String |
PLAY
|
static java.lang.String |
POWER
|
static java.lang.String |
STOP
|
Method Summary | |
static AbstractCommand |
getInternalStatus()
Returns the internal status. |
static AbstractCommand |
getMode()
Returns the command to get the current mopde. |
static AbstractCommand |
getPower()
Returns the command to get the current power mode. |
static AbstractCommand |
getRepeat()
Returns the get repeat command. |
java.lang.String |
getResultString(java.io.InputStream aStream)
Returns the result as String reading from the given inputstream. |
ReturnData |
getReturnData(java.lang.String aLine,
java.lang.String playerPrefix)
Makes sure the command gets executed, the result will be returned using a ReturnData object |
static AbstractCommand |
getShuffle()
Returns the command to get the shuffle mode. |
static AbstractCommand |
getSleep()
Returns the command to get the amount of time untill sleep mode |
static AbstractCommand |
play()
Returns the play command. |
static AbstractCommand |
playlistAdd(java.lang.String url)
Returns the playlist add command. |
static AbstractCommand |
playlistAddAlbum(java.lang.String genre,
java.lang.String artist,
java.lang.String album)
Returns the command for playlist add album |
static AbstractCommand |
playlistClear()
Returns the command for playlist clear. |
static AbstractCommand |
playlistDelete(int index)
returns the command to delete a index from the playlist |
static AbstractCommand |
playlistGetIndex()
Returns the get index command. |
static AbstractCommand |
playlistInsert(java.lang.String url)
Returns the playlist insert command. |
static AbstractCommand |
playlistJump(java.lang.String amount)
Returns a AbstractCommand which represents the jump command. |
static AbstractCommand |
playlistLoadAlbum(java.lang.String genre,
java.lang.String artist,
java.lang.String album)
Returns the command for playlist load album |
static AbstractCommand |
playlistMove(int indexFrom,
int indexTo)
Returns the playlist move command. |
static AbstractCommand |
playlistPlay(java.lang.String url)
Returns the playlist play command. |
static AbstractCommand |
playlistResume(java.lang.String name)
Returns the command for playlist resume. |
static AbstractCommand |
playlistSave(java.lang.String name)
Returns the command for playlist save |
static AbstractCommand |
playlistSetIndex(int index)
Returns the command for setIndex. |
static AbstractCommand |
setPause(boolean on)
Returns the command to (un)set the pause mode. |
static AbstractCommand |
setPower(boolean on)
returns the command to power on or off the player. |
static AbstractCommand |
setRepeat(int mode)
Returns the command to set repeat mode. |
static AbstractCommand |
setShuffle(boolean on)
Returns the command to set/unset shuffle mode. |
static AbstractCommand |
setSleep(double time)
Returns the set sleep command |
static AbstractCommand |
stop()
Returns the stop command. |
static AbstractCommand |
togglePause()
Returns the command to toggle the puase mode. |
Methods inherited from class com.breeweb.slimconnect.commands.AbstractCommand |
expectStatus, getAsLine, setExpectStatus |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String PLAY
public static final java.lang.String PAUSE
public static final java.lang.String STOP
public static final java.lang.String MODE
public static final java.lang.String POWER
Method Detail |
public static AbstractCommand play()
Slimp3Delegate
public static AbstractCommand togglePause()
Slimp3Delegate
public static AbstractCommand setPause(boolean on)
on
- boolean set pause mode on or off
Slimp3Delegate
public static AbstractCommand stop()
Slimp3Delegate
public static AbstractCommand getMode()
Slimp3Delegate
public static AbstractCommand getPower()
Slimp3Delegate
public static AbstractCommand setPower(boolean on)
on
- boolean on or off
public ReturnData getReturnData(java.lang.String aLine, java.lang.String playerPrefix)
AbstractCommand
getReturnData
in class AbstractCommand
aLine
- the command as line.playerPrefix
- the prefix of the player to which this command is targeted.
public static AbstractCommand getShuffle()
Slimp3Delegate
public static AbstractCommand setShuffle(boolean on)
on
- boolean to set or unset shuffle mode.
Slimp3Delegate
public static AbstractCommand getRepeat()
Slimp3Delegate
public static AbstractCommand setRepeat(int mode)
mode
- the mode which should this be in.
Slimp3Delegate
public static AbstractCommand getSleep()
Slimp3Delegate
public static AbstractCommand setSleep(double time)
time
- the amount of time untill sleep as double
Slimp3Delegate
public static AbstractCommand playlistPlay(java.lang.String url)
url
- the url which should be added
Slimp3Delegate
public static AbstractCommand playlistAdd(java.lang.String url)
url
- the url which should be added
Slimp3Delegate
public static AbstractCommand playlistInsert(java.lang.String url)
url
- the url which should be inserted.
Slimp3Delegate
public static AbstractCommand playlistMove(int indexFrom, int indexTo)
indexFrom
- move fromindexTo
- move to
public static AbstractCommand playlistDelete(int index)
index
- the index which should be deleted.
Slimp3Delegate
public static AbstractCommand playlistResume(java.lang.String name)
name
- the name of the playlist which which should be resumed.
Slimp3Delegate
public static AbstractCommand playlistSave(java.lang.String name)
name
- for which the playlist should be saved.
Slimp3Delegate
public static AbstractCommand playlistLoadAlbum(java.lang.String genre, java.lang.String artist, java.lang.String album)
genre
- the genre which should be matched, or *
as wildcard.artist
- the artist which should be matched, or *
as wildcard.album
- the album which should be matched, or *
as wildcard.
Slimp3Delegate
public static AbstractCommand playlistAddAlbum(java.lang.String genre, java.lang.String artist, java.lang.String album)
genre
- the genre which should be matched, or *
as wildcard.artist
- the artist which should be matched, or *
as wildcard.album
- the album which should be matched, or *
as wildcard.
Slimp3Delegate
public static AbstractCommand playlistClear()
Slimp3Delegate
public static AbstractCommand playlistGetIndex()
Slimp3Delegate
public static AbstractCommand playlistSetIndex(int index)
index
- the index to which the playlist should be set.
Slimp3Delegate
public static AbstractCommand playlistJump(java.lang.String amount)
amount
- the amount of songs.
Slimp3Delegate
public static AbstractCommand getInternalStatus()
public java.lang.String getResultString(java.io.InputStream aStream) throws java.io.IOException
AbstractCommand
getResultString
in class AbstractCommand
aStream
- the input stream through which results can be read.
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |