|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
system.SystemAccess
public class SystemAccess
This class is the base class for the system access functionalities, all operating system related classes inherit from this one.
| 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 | |
|---|---|
SystemAccess(PoddyFrame mainWin)
The standard constructor for this class, here the main window object is handed over from the application when creating this object |
|
| 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 |
String |
getMainDirectory()
This method has not to be overwritten! |
String |
getTempDirectory()
This method can be overwritten but doesn't have to Returns the temporary directory that can be used for any temp data |
String |
getVideoDirectory()
This method has not to be overwritten! |
void |
grabCDTracks()
This method has not to be overwritten as long as the workCmd is handled in the overwritten run()-method! |
void |
grabDVD(String mypath)
This method has not to be overwritten as long as the workCmd is handled in the overwritten run()-method! |
RecordInfo |
isRecording()
|
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)
|
StationsList |
scanTV()
|
boolean |
setCDTrack(int track,
String path,
int totalTracks)
This method has not to be overwritten! |
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 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, run, 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 |
|---|
public SystemAccess(PoddyFrame mainWin)
mainWin - the main window of the application| Method Detail |
|---|
public String getCDDiscID()
public long getDVDDiscID()
public boolean isWorking()
public boolean setCDTrack(int track,
String path,
int totalTracks)
track - the 1-based number of the trackpath - the path where the track data have to be stored attotalTracks - the total number of tracks
public void grabCDTracks()
public void grabDVD(String mypath)
public String getMainDirectory()
public String getTempDirectory()
public String getVideoDirectory()
public void playDVD(String isoPath)
isoPath - the path to the ISO image that has to be used for replayingpublic void playDVDDirect()
public void playVideo(String videoPath)
videoPath - the path to the video file that has to be used for replayingpublic void stopVideo()
public StationsList scanTV()
public void turnOnTV()
public void turnOffTV()
public void switchTVChannel(StationInfo info)
public void record(RecordInfo info,
String channel,
String recpath)
public RecordInfo isRecording()
public void stopRecording()
public void powerOff()
public boolean mountUSB(String mountpoint)
public void unmountUSB(String mountpoint)
public void encodeToUSB(String srcPath,
CDInfo cdInfo,
TrackInfo trackInfo,
String mountpoint,
BufferedImage coverImage)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||