Project CASUAL
API for CASUAL
 All Classes Namespaces Functions Variables
Classes | Public Member Functions | List of all members
CASUAL.CASUALSettings Class Reference

Classes

enum  ArgOptions
 
enum  CASUALMode
 
enum  MonitorMode
 

Public Member Functions

void checkArguments (String[] args)
 
MonitorMode getMonitorMode ()
 
CASUALMode getCASPACType ()
 
void setCASPACType (CASUALMode CASPACType)
 
File getCaspacLocation ()
 
void setCaspacLocation (File caspacLocation)
 
boolean isUseGUI ()
 
void setUseGUI (boolean useGUI)
 
boolean isExecute ()
 
void setExecute (boolean execute)
 
String getExecuteCommand ()
 
void setExecuteCommand (String executeCommand)
 
String getPassword ()
 
void setPassword (String password)
 
String toString ()
 

Detailed Description

Author
Adam Outler adamo.nosp@m.utle.nosp@m.r@gma.nosp@m.il.c.nosp@m.om

Member Function Documentation

void CASUAL.CASUALSettings.checkArguments ( String[]  args)

Takes command-line arguments and turns them into a CASUALSettings object.

Parameters
argscommands to be processed.

if the previous argument set the EXIT mode, then stop parsing arguments.

File CASUAL.CASUALSettings.getCaspacLocation ( )
Returns
the caspacLocation
CASUALMode CASUAL.CASUALSettings.getCASPACType ( )
Returns
the CASPACType
String CASUAL.CASUALSettings.getExecuteCommand ( )
Returns
the executeCommand
MonitorMode CASUAL.CASUALSettings.getMonitorMode ( )

checkArgOptionsArgs is a primary switch before any real actions happen. Here we check for switches that will either change the mode of CASUAL or display something quick and exit.

Parameters
args
Returns
true if shutdown is commanded; getMonitorMode is used to determine the appropriate mode for CASUAL monitoring. ADB, Heimdall or Fastboot
mode to be monitored.
String CASUAL.CASUALSettings.getPassword ( )
Returns
the password
boolean CASUAL.CASUALSettings.isExecute ( )
Returns
the execute
boolean CASUAL.CASUALSettings.isUseGUI ( )
Returns
the useGUI
void CASUAL.CASUALSettings.setCaspacLocation ( File  caspacLocation)
Parameters
caspacLocationthe caspacLocation to set
void CASUAL.CASUALSettings.setCASPACType ( CASUALMode  CASPACType)
Parameters
CASPACTypethe CASPACType to set
void CASUAL.CASUALSettings.setExecute ( boolean  execute)
Parameters
executethe execute to set
void CASUAL.CASUALSettings.setExecuteCommand ( String  executeCommand)
Parameters
executeCommandthe executeCommand to set
void CASUAL.CASUALSettings.setPassword ( String  password)
Parameters
passwordthe password to set
void CASUAL.CASUALSettings.setUseGUI ( boolean  useGUI)
Parameters
useGUIthe useGUI to set

The documentation for this class was generated from the following file: