|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xnap.util.launcher.DefaultLauncher org.xnap.util.launcher.DefaultPlayer org.xnap.util.launcher.NoatunPlayer
public class NoatunPlayer
Provides player support for Noatun through dcop.
Field Summary |
---|
Fields inherited from class org.xnap.util.launcher.DefaultPlayer |
---|
player |
Constructor Summary | |
---|---|
NoatunPlayer()
|
Method Summary | |
---|---|
boolean |
canPlay(java.io.File f)
Returns true for mp3 files. |
void |
enqueue(java.io.File file)
Executes DefaultLauncher.getCommand() , passing file as an
argument. |
boolean |
isEditable()
Returns true. |
void |
open(java.io.File file)
Calls DefaultPlayer.stop() and DefaultPlayer.enqueue(File) . |
void |
start()
Executes DefaultLauncher.getCommand() . |
void |
stop()
Calls destory() on the player process, if running. |
Methods inherited from class org.xnap.util.launcher.DefaultPlayer |
---|
open |
Methods inherited from class org.xnap.util.launcher.DefaultLauncher |
---|
getCommand, getKey, getName, isEnabled, setCommand |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xnap.util.launcher.Launcher |
---|
getCommand, getKey, getName, isEnabled, setCommand |
Constructor Detail |
---|
public NoatunPlayer()
Method Detail |
---|
public boolean canPlay(java.io.File f)
DefaultPlayer
canPlay
in interface Player
canPlay
in class DefaultPlayer
public boolean isEditable()
DefaultLauncher
isEditable
in interface Launcher
isEditable
in class DefaultLauncher
public void enqueue(java.io.File file) throws java.io.IOException
DefaultPlayer
DefaultLauncher.getCommand()
, passing file
as an
argument.
enqueue
in interface Player
enqueue
in class DefaultPlayer
java.io.IOException
public void open(java.io.File file) throws java.io.IOException
DefaultPlayer
DefaultPlayer.stop()
and DefaultPlayer.enqueue(File)
.
open
in interface Launcher
open
in class DefaultPlayer
java.io.IOException
public void start() throws java.io.IOException
DefaultPlayer
DefaultLauncher.getCommand()
.
start
in interface Player
start
in class DefaultPlayer
java.io.IOException
public void stop()
DefaultPlayer
destory()
on the player process, if running.
stop
in interface Player
stop
in class DefaultPlayer
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |