Packagecom.hippohx
Classpublic class Registry
InheritanceRegistry Inheritance HaxeBackendListener Inheritance flash.events.EventDispatcher

The Registry class provides access to system's registry.

This class is experimental and hasn't been thoroughly tested so expect some problems or weird behaviours. If you find them, please tell us about it.



Protected Properties
 PropertyDefined by
 InheritedHAXE_BACKEND : String = ""
HAXE_BACKEND defines the ID that a Neko backend needs to use to call methods on this class (or the class extending this one).
HaxeBackendListener
Public Methods
 MethodDefined by
  
Do NOT call this constructor, please use getInstance method instead.
Registry
  
deleteKey(key:Number, subKey:String):void
Deletes the value of the specified key/subkey.
Registry
 Inherited
Returns HAXE_BACKEND API identifier.
HaxeBackendListener
  
[static] Use this method to retrieve an instance of the class, do NOT call the constructor directly.
Registry
  
getValue(key:Number, subKey:String, valuename:String):String
Returns the value of the specified key/subkey.
Registry
  
setValue(key:Number, subKey:String, valuename:String, value:String):void
Sets the value of the specified key/subkey.
Registry
Public Constants
 ConstantDefined by
  HKEY_CLASSES_ROOT : int = 0
[static]
Registry
  HKEY_CURRENT_CONFIG : int = 5
[static]
Registry
  HKEY_CURRENT_USER : int = 1
[static]
Registry
  HKEY_DYN_DATA : int = 6
[static]
Registry
  HKEY_LOCAL_MACHINE : int = 2
[static]
Registry
  HKEY_PERFORMANCE_DATA : int = 4
[static]
Registry
  HKEY_USERS : int = 3
[static]
Registry
Constructor detail
Registry()constructor
public function Registry()

Do NOT call this constructor, please use getInstance method instead.

See also

Method detail
deleteKey()method
public function deleteKey(key:Number, subKey:String):void

Deletes the value of the specified key/subkey.

Neko call is systools.Registry.deleteKey(key,subKey) Parameters

key:Number
 
subKey:String
getInstance()method 
public static function getInstance():Registry

Use this method to retrieve an instance of the class, do NOT call the constructor directly. Note that you don't need to store the instance to access its methods, you can simply do this:

Registry.getInstance().setValue(key,subkey,valuename,value);

Returns
Registry
getValue()method 
public function getValue(key:Number, subKey:String, valuename:String):String

Returns the value of the specified key/subkey.

Neko call is systools.Registry.getValue(key,subKey,valuename) Parameters

key:Number
 
subKey:String
 
valuename:String

Returns
String — A String with the value of the specified key/subkey.
setValue()method 
public function setValue(key:Number, subKey:String, valuename:String, value:String):void

Sets the value of the specified key/subkey. If it does not exist, it is created first.

Neko call is systools.Registry.setValue(key,subKey,valuename,value) Parameters

key:Number
 
subKey:String
 
valuename:String
 
value:String
Constant detail
HKEY_CLASSES_ROOTconstant
public static const HKEY_CLASSES_ROOT:int = 0
HKEY_CURRENT_CONFIGconstant 
public static const HKEY_CURRENT_CONFIG:int = 5
HKEY_CURRENT_USERconstant 
public static const HKEY_CURRENT_USER:int = 1
HKEY_DYN_DATAconstant 
public static const HKEY_DYN_DATA:int = 6
HKEY_LOCAL_MACHINEconstant 
public static const HKEY_LOCAL_MACHINE:int = 2
HKEY_PERFORMANCE_DATAconstant 
public static const HKEY_PERFORMANCE_DATA:int = 4
HKEY_USERSconstant 
public static const HKEY_USERS:int = 3