Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
nsIRegistry Interface Reference

import "nsIRegistry.idl";

Inheritance diagram for nsIRegistry:
Inheritance graph
[legend]
Collaboration diagram for nsIRegistry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

void open (in nsIFile regFile)
void openWellKnownRegistry (in nsWellKnownRegistry regid)
void flush ()
boolean isOpen ()
nsRegistryKey addKey (in nsRegistryKey baseKey, in wstring keyname)
nsRegistryKey getKey (in nsRegistryKey baseKey, in wstring keyname)
void removeKey (in nsRegistryKey baseKey, in wstring keyname)
wstring getString (in nsRegistryKey baseKey, in wstring valname)
void setString (in nsRegistryKey baseKey, in wstring valname, in wstring value)
string getStringUTF8 (in nsRegistryKey baseKey, in string path)
void setStringUTF8 (in nsRegistryKey baseKey, in string path, in string value)
void getBytesUTF8 (in nsRegistryKey baseKey, in string path, out PRUint32 length,[retval, array, size_is(length)] out PRUint8 valueArray)
void setBytesUTF8 (in nsRegistryKey baseKey, in string path, in PRUint32 length,[array, size_is(length)] in PRUint8 valueArray)
PRInt32 getInt (in nsRegistryKey baseKey, in string path)
void setInt (in nsRegistryKey baseKey, in string path, in PRInt32 value)
PRInt64 getLongLong (in nsRegistryKey baseKey, in string path)
void setLongLong (in nsRegistryKey baseKey, in string path, inout PRInt64 value)
nsRegistryKey addSubtree (in nsRegistryKey baseKey, in string path)
 addSubtree() and friends need to be renamed to addKeyUTF8().
void removeSubtree (in nsRegistryKey baseKey, in string path)
nsRegistryKey getSubtree (in nsRegistryKey baseKey, in string path)
nsRegistryKey addSubtreeRaw (in nsRegistryKey baseKey, in string path)
void removeSubtreeRaw (in nsRegistryKey baseKey, in string path)
nsRegistryKey getSubtreeRaw (in nsRegistryKey baseKey, in string path)
nsIEnumerator enumerateSubtrees (in nsRegistryKey baseKey)
nsIEnumerator enumerateAllSubtrees (in nsRegistryKey baseKey)
nsIEnumerator enumerateValues (in nsRegistryKey baseKey)
unsigned long getValueType (in nsRegistryKey baseKey, in string path)
PRUint32 getValueLength (in nsRegistryKey baseKey, in string path)
void deleteValue (in nsRegistryKey baseKey, in string path)
void escapeKey ([array, size_is(length)] in PRUint8 key, in PRUint32 terminator, inout PRUint32 length,[retval, array, size_is(length)] out PRUint8 escaped)
 escapeKey() takes arbitrary binary data and converts it into valid ASCII which can be used as registry key or value names
void unescapeKey ([array, size_is(length)] in PRUint8 escaped, in PRUint32 terminator, inout PRUint32 length,[retval, array, size_is(length)] out PRUint8 key)
void pack ()

Public Attributes

const long None = 0
const long Users = 1
const long Common = 2
const long CurrentUser = 3
const long ApplicationComponentRegistry = 1
const long ApplicationRegistry = 2
const long ApplicationCustomRegistry = -1
const unsigned long String = 1
const unsigned long Int32 = 2
const unsigned long Bytes = 3
const unsigned long File = 4
attribute string currentUserName

Detailed Description

Definition at line 46 of file nsIRegistry.idl.


Member Function Documentation

nsRegistryKey nsIRegistry::addKey ( in nsRegistryKey  baseKey,
in wstring  keyname 
)

addSubtree() and friends need to be renamed to addKeyUTF8().

If you are using these forms make sure you pass UTF8 data

void nsIRegistry::escapeKey ( [array, size_is(length)] in PRUint8  key,
in PRUint32  terminator,
inout PRUint32  length,
[retval, array, size_is(length)] out PRUint8  escaped 
)

escapeKey() takes arbitrary binary data and converts it into valid ASCII which can be used as registry key or value names

void nsIRegistry::getBytesUTF8 ( in nsRegistryKey  baseKey,
in string  path,
out PRUint32  length,
[retval, array, size_is(length)] out PRUint8  valueArray 
)
nsRegistryKey nsIRegistry::getKey ( in nsRegistryKey  baseKey,
in wstring  keyname 
)
wstring nsIRegistry::getString ( in nsRegistryKey  baseKey,
in wstring  valname 
)
unsigned long nsIRegistry::getValueType ( in nsRegistryKey  baseKey,
in string  path 
)
void nsIRegistry::removeKey ( in nsRegistryKey  baseKey,
in wstring  keyname 
)
void nsIRegistry::setBytesUTF8 ( in nsRegistryKey  baseKey,
in string  path,
in PRUint32  length,
[array, size_is(length)] in PRUint8  valueArray 
)
void nsIRegistry::setInt ( in nsRegistryKey  baseKey,
in string  path,
in PRInt32  value 
)
void nsIRegistry::setLongLong ( in nsRegistryKey  baseKey,
in string  path,
inout PRInt64  value 
)
void nsIRegistry::setString ( in nsRegistryKey  baseKey,
in wstring  valname,
in wstring  value 
)
void nsIRegistry::setStringUTF8 ( in nsRegistryKey  baseKey,
in string  path,
in string  value 
)
void nsIRegistry::unescapeKey ( [array, size_is(length)] in PRUint8  escaped,
in PRUint32  terminator,
inout PRUint32  length,
[retval, array, size_is(length)] out PRUint8  key 
)

Member Data Documentation

Definition at line 53 of file nsIRegistry.idl.

Definition at line 57 of file nsIRegistry.idl.

Definition at line 54 of file nsIRegistry.idl.

Definition at line 100 of file nsIRegistry.idl.

Definition at line 50 of file nsIRegistry.idl.

Definition at line 51 of file nsIRegistry.idl.

Definition at line 114 of file nsIRegistry.idl.

Definition at line 101 of file nsIRegistry.idl.

Definition at line 99 of file nsIRegistry.idl.

Definition at line 48 of file nsIRegistry.idl.

Definition at line 98 of file nsIRegistry.idl.

Definition at line 49 of file nsIRegistry.idl.


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