system
Class SystemLinuxAccess

java.lang.Object
  extended by java.lang.Thread
      extended by system.SystemAccess
          extended by system.SystemLinuxAccess
All Implemented Interfaces:
Runnable

public class SystemLinuxAccess
extends SystemAccess


Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
SystemLinuxAccess(PoddyFrame mainWin)
           
 
Method Summary
 void encodeToUSB(String srcPath, CDInfo cdInfo, TrackInfo trackInfo, String mountpoint, BufferedImage coverImage)
           
 String getCDDiscID()
          This method retrieves CD ROM information and fetches a disc identifier string that can be used from CDDB to identify this disc
 long getDVDDiscID()
          This method retrieves DVD ROM information and fetches a disc identifier string that can be used from DVD databases to identify this disc
 boolean isWorking()
          This method can be used to find out if there is currently an operation in progress: as long as a workCmd is active and handled by the run() method here true is returned
 boolean mountUSB(String mountpoint)
           
 void playDVD(String isoPath)
          Starts replaying of a DVD, here the external player has to be called with the given path
 void playDVDDirect()
          Starts direct replaying of a DVD in the local drive
 void playVideo(String videoPath)
          Starts replaying of a video file, here the external player has to be called with the given path
 void powerOff()
           
 void record(RecordInfo info, String channel, String recpath)
           
 void run()
           
 StationsList scanTV()
           
 void stopRecording()
           
 void stopVideo()
          Externally stop all running videos by killing the related processes.
 void switchTVChannel(StationInfo info)
           
 void turnOffTV()
           
 void turnOnTV()
           
 void unmountUSB(String mountpoint)
           
 
Methods inherited from class system.SystemAccess
getMainDirectory, getTempDirectory, getVideoDirectory, grabCDTracks, grabDVD, isRecording, setCDTrack
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SystemLinuxAccess

public SystemLinuxAccess(PoddyFrame mainWin)
Method Detail

isWorking

public boolean isWorking()
Description copied from class: SystemAccess
This method can be used to find out if there is currently an operation in progress: as long as a workCmd is active and handled by the run() method here true is returned

Overrides:
isWorking in class SystemAccess
Returns:
true when a working command is processed by the run() method, false otherwise

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

getCDDiscID

public String getCDDiscID()
Description copied from class: SystemAccess
This method retrieves CD ROM information and fetches a disc identifier string that can be used from CDDB to identify this disc

Overrides:
getCDDiscID in class SystemAccess
Returns:
the disc ID in format "DDDDDDDD t1 t2 t3 .. tn" where DDDDDDDD is the ID of the whole disc and the t1..tn contain position information of the different tracks

stopVideo

public void stopVideo()
Description copied from class: SystemAccess
Externally stop all running videos by killing the related processes. This method is mainly a workaround for video players that do not exit cleanly some times.

Overrides:
stopVideo in class SystemAccess

playVideo

public void playVideo(String videoPath)
Description copied from class: SystemAccess
Starts replaying of a video file, here the external player has to be called with the given path

Overrides:
playVideo in class SystemAccess
Parameters:
videoPath - the path to the video file that has to be used for replaying

playDVD

public void playDVD(String isoPath)
Description copied from class: SystemAccess
Starts replaying of a DVD, here the external player has to be called with the given path

Overrides:
playDVD in class SystemAccess
Parameters:
isoPath - the path to the ISO image that has to be used for replaying

playDVDDirect

public void playDVDDirect()
Description copied from class: SystemAccess
Starts direct replaying of a DVD in the local drive

Overrides:
playDVDDirect in class SystemAccess

getDVDDiscID

public long getDVDDiscID()
Description copied from class: SystemAccess
This method retrieves DVD ROM information and fetches a disc identifier string that can be used from DVD databases to identify this disc

Overrides:
getDVDDiscID in class SystemAccess
Returns:
the disc ID in format "DDDDDDDD"

scanTV

public StationsList scanTV()
Overrides:
scanTV in class SystemAccess

turnOnTV

public void turnOnTV()
Overrides:
turnOnTV in class SystemAccess

turnOffTV

public void turnOffTV()
Overrides:
turnOffTV in class SystemAccess

switchTVChannel

public void switchTVChannel(StationInfo info)
Overrides:
switchTVChannel in class SystemAccess

record

public void record(RecordInfo info,
                   String channel,
                   String recpath)
Overrides:
record in class SystemAccess

stopRecording

public void stopRecording()
Overrides:
stopRecording in class SystemAccess

powerOff

public void powerOff()
Overrides:
powerOff in class SystemAccess

mountUSB

public boolean mountUSB(String mountpoint)
Overrides:
mountUSB in class SystemAccess

unmountUSB

public void unmountUSB(String mountpoint)
Overrides:
unmountUSB in class SystemAccess

encodeToUSB

public void encodeToUSB(String srcPath,
                        CDInfo cdInfo,
                        TrackInfo trackInfo,
                        String mountpoint,
                        BufferedImage coverImage)
Overrides:
encodeToUSB in class SystemAccess