Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Protected Member Functions | Protected Attributes | Private Member Functions
nsRegistryValue Struct Reference
Inheritance diagram for nsRegistryValue:
Inheritance graph
[legend]
Collaboration diagram for nsRegistryValue:
Collaboration graph
[legend]

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIREGISTRYVALUE 
nsRegistryValue (HREG hReg, RKEY key, REGENUM slot)

Public Attributes

readonly attribute wstring name
readonly attribute string nameUTF8
readonly attribute unsigned long type
readonly attribute PRUint32 length

Protected Member Functions

nsresult getInfo ()

Protected Attributes

HREG mReg
RKEY mKey
REGENUM mEnum
REGINFO mInfo
char mName [MAXREGNAMELEN]
REGERR mErr

Private Member Functions

 ~nsRegistryValue ()

Detailed Description

Definition at line 219 of file nsRegistry.cpp.


Constructor & Destructor Documentation

nsRegistryValue::nsRegistryValue ( HREG  hReg,
RKEY  key,
REGENUM  slot 
)

Definition at line 1828 of file nsRegistry.cpp.

    : mReg( hReg ), mKey( key ), mEnum( slot ), mErr( -1 ) {
#ifdef EXTRA_THREADSAFE
    mregLock = PR_NewLock();
#endif
    mInfo.size = sizeof(REGINFO);
}

Here is the call graph for this function:

Definition at line 1836 of file nsRegistry.cpp.

{
#ifdef EXTRA_THREADSAFE
    if (mregLock) {
        PR_DestroyLock(mregLock);
    }
#endif
}

Here is the call graph for this function:


Member Function Documentation

Definition at line 1940 of file nsRegistry.cpp.

                                  {
    nsresult rv = NS_OK;
    // Test whether we haven't tried to get it yet.
    if( mErr == -1 ) {
        REGENUM temp = mEnum;
        // Get name and info.
        PR_Lock(mregLock);
        mErr = NR_RegEnumEntries( mReg, mKey, &temp, mName, sizeof mName, &mInfo );
        // Convert result.
        rv = regerr2nsresult( mErr );            
        PR_Unlock(mregLock);
    }
    return rv;
}

Here is the call graph for this function:


Member Data Documentation

Definition at line 140 of file nsIRegistry.idl.

Definition at line 236 of file nsRegistry.cpp.

Definition at line 239 of file nsRegistry.cpp.

Definition at line 237 of file nsRegistry.cpp.

Definition at line 235 of file nsRegistry.cpp.

Definition at line 238 of file nsRegistry.cpp.

Definition at line 234 of file nsRegistry.cpp.

readonly attribute wstring nsIRegistryValue::name [inherited]

Definition at line 137 of file nsIRegistry.idl.

Definition at line 138 of file nsIRegistry.idl.

readonly attribute unsigned long nsIRegistryValue::type [inherited]

Definition at line 139 of file nsIRegistry.idl.


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