Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Private Attributes
nsImapSearchResultIterator Class Reference

#include <nsImapSearchResults.h>

Collaboration diagram for nsImapSearchResultIterator:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsImapSearchResultIterator (nsImapSearchResultSequence &sequence)
virtual ~nsImapSearchResultIterator ()
void ResetIterator ()
PRInt32 GetNextMessageNumber ()

Private Attributes

nsImapSearchResultSequencefSequence
PRInt32 fSequenceIndex
char * fCurrentLine
char * fPositionInCurrentLine

Detailed Description

Definition at line 57 of file nsImapSearchResults.h.


Constructor & Destructor Documentation

Definition at line 88 of file nsImapSearchResults.cpp.

                                                                                           :
fSequence(sequence)
{
  ResetIterator();
}

Here is the call graph for this function:

Definition at line 94 of file nsImapSearchResults.cpp.

{
}

Member Function Documentation

Definition at line 105 of file nsImapSearchResults.cpp.

{
  int32 returnValue = 0;
  if (fPositionInCurrentLine)
  {    
    returnValue = atoi(fPositionInCurrentLine);
    
    // eat the current number
    while (isdigit(*++fPositionInCurrentLine))
      ;
    
    if (*fPositionInCurrentLine == 0xD)   // found CR, no more digits on line
    {
      fCurrentLine = (char *) fSequence.SafeElementAt(++fSequenceIndex);
      fPositionInCurrentLine = fCurrentLine;
    }
    else      // eat the space
      fPositionInCurrentLine++;
  }
  
  return returnValue;
}

Here is the caller graph for this function:

Definition at line 98 of file nsImapSearchResults.cpp.

Here is the caller graph for this function:


Member Data Documentation

Definition at line 67 of file nsImapSearchResults.h.

Definition at line 68 of file nsImapSearchResults.h.

Definition at line 65 of file nsImapSearchResults.h.

Definition at line 66 of file nsImapSearchResults.h.


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