Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsRegValueEnumerator Struct Reference
Inheritance diagram for nsRegValueEnumerator:
Inheritance graph
Collaboration diagram for nsRegValueEnumerator:
Collaboration graph

List of all members.

Public Member Functions

NS_IMETHOD CurrentItem (nsISupports **result)
NS_IMETHOD advance ()
 nsRegValueEnumerator (HREG hReg, RKEY rKey)
void currentItemInPlaceUTF8 (out nsRegistryKey key,[shared, retval] out string item)
void first ()
 First will reset the list.
void next ()
 Next will advance the list.
nsISupports currentItem ()
 CurrentItem will return the CurrentItem item it will fail if the list is empty.
void isDone ()
 return if the collection is at the end.

Protected Attributes

PRUint32 mStyle
PRBool mDone

Detailed Description

Definition at line 177 of file nsRegistry.cpp.

Constructor & Destructor Documentation

Definition at line 1711 of file nsRegistry.cpp.

    : nsRegSubtreeEnumerator( hReg, rKey, PR_FALSE ) {

Member Function Documentation

Reimplemented from nsRegSubtreeEnumerator.

Definition at line 1742 of file nsRegistry.cpp.

    char name[MAXREGNAMELEN];
    PRUint32 len = sizeof name;
    REGINFO info = { sizeof info, 0, 0 };
    err = NR_RegEnumEntries( mReg, mKey, &mNext, name, len, &info );
    // See if we ran off end.
    if( err == REGERR_NOMORE ) {
        // Remember we've run off end.
        mDone = PR_TRUE;
    // Convert result.
    nsresult rv = regerr2nsresult( err );
    return rv;

Here is the call graph for this function:

nsISupports nsIEnumerator::currentItem ( ) [inherited]

CurrentItem will return the CurrentItem item it will fail if the list is empty.

Definition at line 1722 of file nsRegistry.cpp.

    nsresult rv = NS_OK;
    // Make sure there is a place to put the result.
    if( result ) {
        *result = new nsRegistryValue( mReg, mKey, mEnum );
        if( *result ) {
        } else {
            rv = NS_ERROR_OUT_OF_MEMORY;
    } else {
    return rv;

Here is the call graph for this function:

void nsIRegistryEnumerator::currentItemInPlaceUTF8 ( out nsRegistryKey  key,
[shared, retval] out string  item 
) [inherited]
void nsIEnumerator::first ( ) [inherited]

First will reset the list.

will return NS_FAILED if no items

void nsIEnumerator::isDone ( ) [inherited]

return if the collection is at the end.

that is the beginning following a call to Prev and it is the end of the list following a call to next

void nsIEnumerator::next ( ) [inherited]

Next will advance the list.

will return failed if already at end

Member Data Documentation

PRBool nsRegSubtreeEnumerator::mDone [protected, inherited]

Definition at line 164 of file nsRegistry.cpp.

REGENUM nsRegSubtreeEnumerator::mEnum [protected, inherited]

Definition at line 161 of file nsRegistry.cpp.

RKEY nsRegSubtreeEnumerator::mKey [protected, inherited]

Definition at line 159 of file nsRegistry.cpp.

char nsRegSubtreeEnumerator::mName[MAXREGPATHLEN] [protected, inherited]

Definition at line 160 of file nsRegistry.cpp.

REGENUM nsRegSubtreeEnumerator::mNext [protected, inherited]

Definition at line 162 of file nsRegistry.cpp.

HREG nsRegSubtreeEnumerator::mReg [protected, inherited]

Definition at line 158 of file nsRegistry.cpp.

PRUint32 nsRegSubtreeEnumerator::mStyle [protected, inherited]

Definition at line 163 of file nsRegistry.cpp.

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