Back to index

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

List of all members.

Public Member Functions

NS_DECL_ISUPPORTS
NS_DECL_NSIENUMERATOR 
nsListAddressEnumerator (nsAddrDatabase *db, mdb_id rowID)
virtual ~nsListAddressEnumerator ()
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

nsCOMPtr< nsAddrDatabasemDB
nsCOMPtr< nsIAbCardmResultCard
nsIMdbTablemDbTable
nsIMdbRowmListRow
nsIMdbRowmCurrentRow
mdb_id mListRowID
PRBool mDone
PRUint32 mAddressTotal
PRUint16 mAddressPos

Detailed Description

Definition at line 3280 of file nsAddrDatabase.cpp.


Constructor & Destructor Documentation

Definition at line 3305 of file nsAddrDatabase.cpp.

    : mDB(db), mCurrentRow(nsnull), mListRowID(rowID), mDone(PR_FALSE)
{
    mDbTable = mDB->GetPabTable();
    mDB->GetListRowByRowID(mListRowID, &mListRow);
    mAddressTotal = mDB->GetListAddressTotal(mListRow);
    mAddressPos = 0;
}

Definition at line 3314 of file nsAddrDatabase.cpp.


Member Function Documentation

nsISupports nsIEnumerator::currentItem ( ) [inherited]

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

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

Definition at line 3302 of file nsAddrDatabase.cpp.

Definition at line 3301 of file nsAddrDatabase.cpp.

Definition at line 3298 of file nsAddrDatabase.cpp.

Definition at line 3294 of file nsAddrDatabase.cpp.

Definition at line 3296 of file nsAddrDatabase.cpp.

Definition at line 3300 of file nsAddrDatabase.cpp.

Definition at line 3297 of file nsAddrDatabase.cpp.

Definition at line 3299 of file nsAddrDatabase.cpp.

Definition at line 3295 of file nsAddrDatabase.cpp.


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