keso.core
Class OSService
java.lang.Object
keso.core.OSService
public final class OSService
- extends Object
|
Method Summary |
static int |
getActiveApplicationMode()
Returns the current application mode. |
static void |
shutdownOS(int error)
This service may be called to abort the whole system (emergency off). |
static void |
startOS(int appMode)
The user may use this call to start the OS in a specific application mode. |
OSService
public OSService()
getActiveApplicationMode
public static int getActiveApplicationMode()
- Returns the current application mode. May be used to write mode dependant
code.
startOS
public static void startOS(int appMode)
- The user may use this call to start the OS in a specific application mode.
May only be called from outside the OS.
shutdownOS
public static void shutdownOS(int error)
- This service may be called to abort the whole system (emergency off).
If a ShutdownHook is specified, it is always called with as
parameter before the system is shut off.