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

Public Member Functions

String getTempFolder ()
 
String getTempFolderInstance ()
 
void initializeStatics ()
 
void setStatus (final String status)
 
String getStatus ()
 
String setTempFolder (String folder)
 

Static Public Member Functions

static iCASUALUI getGUI ()
 
static void setGUI (iCASUALUI aGUI)
 
static CASUALSessionData newInstance ()
 
static boolean isGUIIsAvailable ()
 
static void setTempFolderPrefix (String aTempFolderPrefix)
 

Public Attributes

boolean debugMode = false
 
Caspac CASPAC
 
BufferedReader in = new BufferedReader(new InputStreamReader(System.in))
 
String PreProgress = ""
 
ArrayList< String > ActionEvents = new ArrayList<String>()
 
ArrayList< String > ReactionEvents = new ArrayList<String>()
 

Static Public Attributes

static final String slash = System.getProperty("file.separator")
 
static String CASUALHome = System.getProperty("user.home") + System.getProperty("file.separator") + ".CASUAL" + System.getProperty("file.separator")
 
static final String WinVCRedis32tInRepo = "https://android-casual.googlecode.com/svn/trunk/repo/vcredist_x86.exe"
 

Detailed Description

CASUALSessionData is used for any type of static variable It is the Static Class for information to be used everywhere in the program.

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

Member Function Documentation

static iCASUALUI CASUAL.CASUALSessionData.getGUI ( )
static
Returns
the GUI
String CASUAL.CASUALSessionData.getStatus ( )

Gets the current status for display.

Returns
current status.
String CASUAL.CASUALSessionData.getTempFolder ( )

Creates and returns the temp folder if required.

Returns
temp folder string location.
String CASUAL.CASUALSessionData.getTempFolderInstance ( )

gets the temp folder for CASUAL;

Returns
the temp folder.
void CASUAL.CASUALSessionData.initializeStatics ( )

Resets all variables in CASUAL to provide, basically, a warm reboot.

static boolean CASUAL.CASUALSessionData.isGUIIsAvailable ( )
static
Returns
the GUIIsAvailable
static void CASUAL.CASUALSessionData.setGUI ( iCASUALUI  aGUI)
static
Parameters
aGUIthe GUI to set
void CASUAL.CASUALSessionData.setStatus ( final String  status)

sets the current operation status.

Parameters
statusstatus to be displayed to user.
String CASUAL.CASUALSessionData.setTempFolder ( String  folder)

Sets the temp folder. Generally this is auto-assigned by getTempFolder, but it can be manually assigned.

Parameters
folderdir to make temp folder.
Returns
path to new temp folder.
static void CASUAL.CASUALSessionData.setTempFolderPrefix ( String  aTempFolderPrefix)
static

sets the prefix, by default it is "CASUAL-USERNAME-".

Parameters
aTempFolderPrefixthe tempFolderPrefix to set

Member Data Documentation

ArrayList<String> CASUAL.CASUALSessionData.ActionEvents = new ArrayList<String>()

ActionEvents for the $ON command are set up by script. Trigger Reaction events.

Caspac CASUAL.CASUALSessionData.CASPAC

reference to CASPAC used by this CASUAL

String CASUAL.CASUALSessionData.CASUALHome = System.getProperty("user.home") + System.getProperty("file.separator") + ".CASUAL" + System.getProperty("file.separator")
static

Default home folder for CASUAL. Use for permanent storage of data only. Located in the users home folder, in a folder called ".CASUAL".

boolean CASUAL.CASUALSessionData.debugMode = false

true if debugMode. Do not send logs in debug mode. We create too many errors, thanks.

BufferedReader CASUAL.CASUALSessionData.in = new BufferedReader(new InputStreamReader(System.in))

Input Device for CASUAL. Generally System.in (STDIN) but may be reassigned to any inputstream.

String CASUAL.CASUALSessionData.PreProgress = ""

ProgressDoc provides a reference to the program output.

ArrayList<String> CASUAL.CASUALSessionData.ReactionEvents = new ArrayList<String>()

ReactionEvents are triggered by ActionEvents and created by $ON command.

final String CASUAL.CASUALSessionData.slash = System.getProperty("file.separator")
static

slash provides a universal reference to the / on linux/mac and a \ on Windows.

final String CASUAL.CASUALSessionData.WinVCRedis32tInRepo = "https://android-casual.googlecode.com/svn/trunk/repo/vcredist_x86.exe"
static

Windows Visual C++ redistributable downloadable file. This is not used as we include the proper dependencies in CASUAL. Windows Visual C++ redist not always required.


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