Halyri - Häke  0.9.1
 All Classes Namespaces Functions Variables Enumerations Properties
Settings Class Reference

User can store object that they specifie with key. User can add, update, get and remove those objects using the key. More...

Public Member Functions

 Settings ()
 initializes settings. Reads settings.cfg. More...
 
void AddOrUpdate (String key, object obj)
 Adds or update object with given key. More...
 
void Remove (String key)
 Removed object with given key. More...
 
object Get (String key)
 Returns object from settings that is stored using given key. More...
 
bool Save ()
 Save the settings to settings.cfg if its not in use. More...
 

Public Attributes

const String ENDPOINTADDRESS = "endpointAddress"
 
const String NEWURGENTSTATECOLOR = "newUrgentStateColor"
 
const String GRAPHLINECOLOR = "graphLineColor"
 
const String GRAPHBACKGROUNDCOLOR = "graphBackgroundColor"
 

Detailed Description

User can store object that they specifie with key. User can add, update, get and remove those objects using the key.

<author>Atte Söderlund</author>

Constructor & Destructor Documentation

Settings ( )

initializes settings. Reads settings.cfg.

Member Function Documentation

void AddOrUpdate ( String  key,
object  obj 
)

Adds or update object with given key.

Parameters
keyString that specifies the object
objwhat you want to store
object Get ( String  key)

Returns object from settings that is stored using given key.

Parameters
keyKey string
Returns
Object that is stored
void Remove ( String  key)

Removed object with given key.

Parameters
key
bool Save ( )

Save the settings to settings.cfg if its not in use.

Returns
True if no exceptions catched

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